按语义相似性搜索文档

Initiate a search operation with a query text of up to 400 words and receive the most semantically similar responses from the stored knowledge. For question-answering, convert your question into an ideal answer and submit it to receive similar real answers.

Query parameters
qstringoptional

Up to 400 words sentence for which you wish to find semantically similar chunks of knowledge.

nintegeroptional

Number of semantically similar chunks of text to return. Use 'n=3' for up to 5, and 'n=10' for more information. If you do not receive enough information, consider trying again with a larger 'n' value.

fromstring · date-timeoptional

Start of the time range for documents to be searched, in ISO 8601 format.

tostring · date-timeoptional

End of the time range for documents to be searched, in ISO 8601 format.

Responses
curl -L \
  --url 'https://api.rememberizer.ai/api/v1/documents/search/'
{
  "data_sources": [
    {
      "name": "text",
      "documents": 1
    }
  ],
  "matched_chunks": [
    {
      "document": {
        "id": 18,
        "document_id": "text",
        "name": "text",
        "type": "text",
        "path": "text",
        "url": "text",
        "size": 1,
        "created_time": "2025-04-05T12:59:31.324Z",
        "modified_time": "2025-04-05T12:59:31.324Z",
        "indexed_on": "2025-04-05T12:59:31.324Z",
        "integration": {
          "id": 1,
          "integration_type": "text"
        }
      },
      "matched_content": "text",
      "distance": 1
    }
  ]
}

Last updated