langchain/libs/community/langchain_community/vectorstores
Eric Pinzur f636c83321
community: Cassandra Vector Store: modernize implementation (#27253)
**Description:** 

This PR updates `CassandraGraphVectorStore` to be based off
`CassandraVectorStore`, instead of using a custom CQL implementation.
This allows users using a `CassandraVectorStore` to upgrade to a
`GraphVectorStore` without having to change their database schema or
re-embed documents.

This PR also updates the documentation of the `GraphVectorStore` base
class and contains native async implementations for the standard graph
methods: `traversal_search` and `mmr_traversal_search` in
`CassandraVectorStore`.

**Issue:** No issue number.

**Dependencies:** https://github.com/langchain-ai/langchain/pull/27078
(already-merged)

**Lint and test**: 
- Lint and tests all pass, including existing
`CassandraGraphVectorStore` tests.
- Also added numerous additional tests based of the tests in
`langchain-astradb` which cover many more scenarios than the existing
tests for `Cassandra` and `CassandraGraphVectorStore`

** BREAKING CHANGE**

Note that this is a breaking change for existing users of
`CassandraGraphVectorStore`. They will need to wipe their database table
and restart.

However:
- The interfaces have not changed. Just the underlying storage
mechanism.
- Any one using `langchain_community.vectorstores.Cassandra` can instead
use `langchain_community.graph_vectorstores.CassandraGraphVectorStore`
and they will gain Graph capabilities without having to re-embed their
existing documents. This is the primary goal of this PR.

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2024-10-22 18:11:11 +00:00
..
docarray multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
redis multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
__init__.py community: add sqlite-vec vectorstore (#25003) 2024-09-26 17:37:10 +00:00
aerospike.py docs: fix kwargs docstring (#25010) 2024-08-02 19:54:54 -07:00
alibabacloud_opensearch.py
analyticdb.py
annoy.py
apache_doris.py community[patch]: Fix validation error in SettingsConfigDict across multiple Langchain modules (#26852) 2024-09-25 10:02:14 -04:00
aperturedb.py core[patch]: Deprecating beta upsert APIs in vectorstore (#25069) 2024-08-09 17:17:36 -04:00
astradb.py multiple: update removal targets (#25361) 2024-08-14 09:50:39 -04:00
atlas.py community[patch]: Add missing annotations (#24890) 2024-07-31 18:13:44 +00:00
awadb.py community[patch]: Add missing annotations (#24890) 2024-07-31 18:13:44 +00:00
azure_cosmos_db_no_sql.py LangChain Community: VectorStores: Azure Cosmos DB Filtered Vector Search (#24087) 2024-07-23 16:59:23 -07:00
azure_cosmos_db.py LangChain Community: VectorStores: Azure Cosmos DB Filtered Vector Search (#24087) 2024-07-23 16:59:23 -07:00
azuresearch.py community: AzureSearch: fix reranking for empty lists (#27104) 2024-10-07 15:27:09 -04:00
bagel.py community[patch]: Add missing annotations (#24890) 2024-07-31 18:13:44 +00:00
bageldb.py
baiducloud_vector_search.py
baiduvectordb.py
bigquery_vector_search.py multiple: update removal targets (#25361) 2024-08-14 09:50:39 -04:00
cassandra.py community: Cassandra Vector Store: modernize implementation (#27253) 2024-10-22 18:11:11 +00:00
chroma.py community: allow chroma DB delete() to use "where" argument (#19826) 2024-08-23 10:10:57 -04:00
clarifai.py docs: fix kwargs docstring (#25010) 2024-08-02 19:54:54 -07:00
clickhouse.py community: Problem with embeddings in new versions of clickhouse. (#26041) 2024-10-11 18:54:50 +00:00
couchbase.py multiple: update removal targets (#25361) 2024-08-14 09:50:39 -04:00
dashvector.py
databricks_vector_search.py community: Add deprecation notice for Databricks integration in langchain-community (#27355) 2024-10-16 02:20:40 +00:00
deeplake.py docs: fix kwargs docstring (#25010) 2024-08-02 19:54:54 -07:00
dingo.py
documentdb.py community: Fix AWS DocumentDB similarity_search when filter is None (#24777) 2024-07-29 15:32:05 +00:00
duckdb.py docs: fix kwargs docstring (#25010) 2024-08-02 19:54:54 -07:00
ecloud_vector_search.py
elastic_vector_search.py
elasticsearch.py
epsilla.py support epsilla cloud vector database in langchain (#26065) 2024-09-20 17:14:23 +00:00
faiss.py docs: integrations reference updates 13 (#25711) 2024-09-02 22:08:50 +00:00
hanavector.py community[patch]: Add missing annotations (#24890) 2024-07-31 18:13:44 +00:00
hippo.py
hologres.py
infinispanvs.py community[minor]: VectorStore Infinispan. Adding TLS and authentication (#23522) 2024-10-09 10:51:39 -04:00
inmemory.py core[minor],community[patch],standard-tests[patch]: Move InMemoryImplementation to langchain-core (#23986) 2024-07-08 14:11:51 -07:00
jaguar.py
kdbai.py docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
kinetica.py community[patch]: Fix validation error in SettingsConfigDict across multiple Langchain modules (#26852) 2024-09-25 10:02:14 -04:00
lancedb.py
lantern.py
llm_rails.py multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
manticore_search.py community[patch]: Fix validation error in SettingsConfigDict across multiple Langchain modules (#26852) 2024-09-25 10:02:14 -04:00
marqo.py
matching_engine.py multiple: update removal targets (#25361) 2024-08-14 09:50:39 -04:00
meilisearch.py
milvus.py multiple: update removal targets (#25361) 2024-08-14 09:50:39 -04:00
momento_vector_index.py
mongodb_atlas.py multiple: update removal targets (#25361) 2024-08-14 09:50:39 -04:00
myscale.py community: Problem with embeddings in new versions of clickhouse. (#26041) 2024-10-11 18:54:50 +00:00
neo4j_vector.py community: Fix database connections for neo4j (#27190) 2024-10-08 23:47:55 +00:00
nucliadb.py
opensearch_vector_search.py community: Opensearch - added score function for similarity_score_threshold (#23928) 2024-08-23 11:30:04 -04:00
oraclevs.py clob_bugfix... (#24813) 2024-07-30 12:44:04 -04:00
pathway.py
pgembedding.py
pgvecto_rs.py
pgvector.py docs: fix community pgvector deprecation warning formatting (#27094) 2024-10-15 15:45:53 +00:00
pinecone.py multiple: update removal targets (#25361) 2024-08-14 09:50:39 -04:00
qdrant.py multiple: update removal targets (#25361) 2024-08-14 09:50:39 -04:00
relyt.py
rocksetdb.py
scann.py community[patch]: update the default hf bge embeddings (#22627) 2024-09-02 22:10:21 +00:00
semadb.py community[patch]: Add missing annotations (#24890) 2024-07-31 18:13:44 +00:00
singlestoredb.py community: add SingleStoreDB semantic cache (#23218) 2024-07-05 09:26:06 -04:00
sklearn.py
sqlitevec.py community: add sqlite-vec vectorstore (#25003) 2024-09-26 17:37:10 +00:00
sqlitevss.py
starrocks.py community[patch]: Fix validation error in SettingsConfigDict across multiple Langchain modules (#26852) 2024-09-25 10:02:14 -04:00
supabase.py
surrealdb.py community[patch]: update the default hf bge embeddings (#22627) 2024-09-02 22:10:21 +00:00
tair.py
tencentvectordb.py community: modify document links for tencent vectordb (#26316) 2024-09-17 21:11:10 +00:00
thirdai_neuraldb.py multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
tidb_vector.py <Community>: tidb vector support vector index (#19984) 2024-08-23 13:59:23 -04:00
tigris.py
tiledb.py
timescalevector.py
typesense.py
upstash.py
usearch.py core[minor]: Improve support for id in VectorStore (#26660) 2024-10-07 15:01:08 -04:00
utils.py
vald.py community[patch]: update the default hf bge embeddings (#22627) 2024-09-02 22:10:21 +00:00
vdms.py community[patch]: update the default hf bge embeddings (#22627) 2024-09-02 22:10:21 +00:00
vearch.py
vectara.py core[patch]: Add kwargs to Runnable (#27008) 2024-09-30 16:45:29 -04:00
vespa.py
vikingdb.py
vlite.py
weaviate.py docs: fix kwargs docstring (#25010) 2024-08-02 19:54:54 -07:00
xata.py
yellowbrick.py
zep_cloud.py docs: fix kwargs docstring (#25010) 2024-08-02 19:54:54 -07:00
zep.py docs: fix kwargs docstring (#25010) 2024-08-02 19:54:54 -07:00
zilliz.py