googleapis / langchain-google-cloud-sql-pg-python

Apache License 2.0
29 stars 11 forks source link

feat: Add similarity search score threshold select function #157

Closed duwenxin99 closed 4 months ago

duwenxin99 commented 4 months ago

Implements LangChain _select_relevance_score_fn function to support similarity search with score threshold: https://github.com/langchain-ai/langchain/blob/cb95198398a66737f1a7f7e0f63417802e03190c/libs/core/langchain_core/vectorstores/base.py#L611

averikitsch commented 4 months ago

Same comments as AlloyDB PR