Public API Document

Overview

This API allows users to perform Matilda RAG searches and extract specific text results from the search page. It is designed to fetch search results based on a query provided by the user.

Base URL

https://team.matilda.vn/team/public/rag.php

HTTP Method

GET

Parameters

Parameter Type Description
query string The search term to query Matilda.

Example Request

GET https://team.matilda.vn/team/public/rag.php?query=your_search_term

Response Format

The response will be a plain text output of the extracted results from Matilda RAG search. Each text result is separated by a newline.

Example Response

Result 1 text
Result 2 text
Result 3 text

Error Handling

In case of an error, the API will return an HTTP status code along with an error message.

Example Error Response

HTTP/1.1 400 Bad Request
Error: Invalid query parameter

Notes