langchain
bfb27324 - [Matching Engine] Update the Matching Engine to include the distance and filters (#12555)

Commit
2 years ago
[Matching Engine] Update the Matching Engine to include the distance and filters (#12555) Hello 👋, This Pull Request adds more capability to the [MatchingEngine](https://api.python.langchain.com/en/latest/vectorstores/langchain.vectorstores.matching_engine.MatchingEngine.html) vectorstore of GCP. It includes the `similarity_search_by_vector_with_relevance_scores` function and also [filters](https://cloud.google.com/vertex-ai/docs/vector-search/filtering) to `filter` the namespaces when retrieving the results. - **Description:** Add [filter](https://cloud.google.com/python/docs/reference/aiplatform/latest/google.cloud.aiplatform.MatchingEngineIndexEndpoint#google_cloud_aiplatform_MatchingEngineIndexEndpoint_find_neighbors) in `similarity_search` and add `similarity_search_by_vector_with_relevance_scores` method - **Dependencies:** None - **Tag maintainer:** Unknown Thank you! --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
Author
Parents
Loading