You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community
Noah Stapp 34e6f3ff72
community[patch]: Implement similarity_score_threshold for MongoDB Vector Store (#14740)
Adds the option for `similarity_score_threshold` when using
`MongoDBAtlasVectorSearch` as a vector store retriever.

Example use:

```
vector_search = MongoDBAtlasVectorSearch.from_documents(...)

qa_retriever = vector_search.as_retriever(
    search_type="similarity_score_threshold",
    search_kwargs={
        "score_threshold": 0.5,
    }
)

qa = RetrievalQA.from_chain_type(
	llm=OpenAI(), 
	chain_type="stuff", 
	retriever=qa_retriever,
)

docs = qa({"query": "..."})
```

I've tested this feature locally, using a MongoDB Atlas Cluster with a
vector search index.
9 months ago
..
adapters Fix OAI Tool Message (#14746) 9 months ago
agent_toolkits infra: import CI fix (#14562) 10 months ago
callbacks community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
chat_loaders community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
chat_message_histories community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
chat_models community[patch]: Update YandexGPT API (#14773) 9 months ago
docstore community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
document_loaders community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
document_transformers community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
embeddings community[patch]: Correct type annotation for azure_ad_token_provider Closed: #14402 (#14432) 9 months ago
graphs community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
indexes community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
llms community[patch]: Update YandexGPT API (#14773) 9 months ago
retrievers community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
storage community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
tools community[patch]: Release 0.0.2 (#14610) 9 months ago
utilities Update Vertex AI to include Gemini (#14670) 9 months ago
utils community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
vectorstores community[patch]: Implement similarity_score_threshold for MongoDB Vector Store (#14740) 9 months ago
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
cache.py community[patch]: Fixed issue with importing Row from sqlalchemy (#14488) 9 months ago
py.typed community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago