Ask a question to get started
Enter to sendā¢Shift+Enter new line
similarity_search( self, query: str, k: int = 4, *, filter: Optional
query
str
Input text.
k
int
4
Number of Documents to return. Defaults to 4.
filter
Optional[dict]
None
Metadata filter to apply during the query. See: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors-metadata-filtering.html
**kwargs
Any
{}
Return docs most similar to query.
Arguments to pass to the search method.