In the current implementation we're returning all results from the database:
return [{"distance": qr.distance, "content": qr.content} for qr in results]
We should add a min_similarity to the configuration and then return all results that are >= the min_similarity. that way we can ensure only closest and most relevant items are returned.
In the current implementation we're returning all results from the database:
We should add a
min_similarityto the configuration and then return all results that are >= the min_similarity. that way we can ensure only closest and most relevant items are returned.