langchain/libs/community/langchain_community/vectorstores
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.
2023-12-15 16:49:21 -08:00
..
docarray
redis
__init__.py community[minor]: Add SurrealDB vectorstore (#13331) 2023-12-15 13:34:51 -08:00
alibabacloud_opensearch.py
analyticdb.py
annoy.py
astradb.py
atlas.py
awadb.py
azure_cosmos_db.py
azuresearch.py
bageldb.py
baiducloud_vector_search.py
cassandra.py
chroma.py
clarifai.py
clickhouse.py
dashvector.py community[patch]: fix dashvector endpoint params error (#14484) 2023-12-13 14:38:27 -08:00
databricks_vector_search.py docs: Add Databricks Vector Search example notebook (#14158) 2023-12-12 17:40:29 -08:00
deeplake.py
dingo.py
elastic_vector_search.py
elasticsearch.py
epsilla.py
faiss.py
hippo.py
hologres.py
lancedb.py
llm_rails.py
marqo.py
matching_engine.py
meilisearch.py
milvus.py
momento_vector_index.py
mongodb_atlas.py community[patch]: Implement similarity_score_threshold for MongoDB Vector Store (#14740) 2023-12-15 16:49:21 -08:00
myscale.py
neo4j_vector.py Fix RRF and lucene escape characters for neo4j vector store (#14646) 2023-12-13 09:09:50 -08:00
nucliadb.py
opensearch_vector_search.py
pgembedding.py
pgvecto_rs.py
pgvector.py community[patch]: fix pgvector sqlalchemy (#14726) 2023-12-14 13:27:30 -08:00
pinecone.py
qdrant.py
rocksetdb.py
scann.py
semadb.py
singlestoredb.py
sklearn.py
sqlitevss.py
starrocks.py
supabase.py
surrealdb.py community[minor]: Add SurrealDB vectorstore (#13331) 2023-12-15 13:34:51 -08:00
tair.py
tencentvectordb.py
tigris.py
tiledb.py
timescalevector.py
typesense.py
usearch.py
utils.py
vald.py
vearch.py
vectara.py
vespa.py
weaviate.py
xata.py
yellowbrick.py
zep.py
zilliz.py