Parameters
query (str) – Query text for which to find similar documents.
k (int) – Number of documents to return. Defaults to 4.
filter (Optional[Dict[str, str]]) – Filter by metadata.
Defaults to None.
Returns
List of Documents most similar to the query
text and score for each.
Return type
List[Document]
Examples using Meilisearch¶
Meilisearch