langchain/libs/community/tests/integration_tests
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
..
adapters community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
agent community[patch]: Release 0.2.11 (#24989) 2024-08-02 20:08:44 +00:00
cache community: add SingleStoreDB semantic cache (#23218) 2024-07-05 09:26:06 -04:00
callbacks infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
chains infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
chat_message_histories infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
chat_models multiple: rely on asyncio_mode auto in tests (#27200) 2024-10-15 16:26:38 +00:00
cross_encoders langchain[minor], community[minor]: add CrossEncoderReranker with HuggingFaceCrossEncoder and SagemakerEndpointCrossEncoder (#13687) 2024-03-31 20:51:31 +00:00
document_compressors community[minor]: add Volcengine Rerank (#22700) 2024-06-10 13:41:05 -07:00
document_loaders community[patch]: add to pypdf tests and run in CI (#26663) 2024-09-19 14:45:49 +00:00
document_transformers infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
embeddings Bug-Fix[Community] Fix FastEmbedEmbeddings (#26764) 2024-09-30 21:23:08 -04:00
examples community: support advanced text extraction options for pdf documents (#20265) 2024-07-17 20:47:09 +00:00
graph_vectorstores community: Cassandra Vector Store: modernize implementation (#27253) 2024-10-22 18:11:11 +00:00
graphs Sanitize backticks from neo4j labels and types for import (#23367) 2024-06-24 19:05:31 +00:00
indexes multiple: rely on asyncio_mode auto in tests (#27200) 2024-10-15 16:26:38 +00:00
llms multiple: rely on asyncio_mode auto in tests (#27200) 2024-10-15 16:26:38 +00:00
memory infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
prompts multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
retrievers multiple: rely on asyncio_mode auto in tests (#27200) 2024-10-15 16:26:38 +00:00
smith/evaluation multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
storage multiple: rely on asyncio_mode auto in tests (#27200) 2024-10-15 16:26:38 +00:00
tools community[patch]: Add missing annotations (#24890) 2024-07-31 18:13:44 +00:00
utilities multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
vectorstores community: Cassandra Vector Store: modernize implementation (#27253) 2024-10-22 18:11:11 +00:00
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
.env.example community: add support for 'cloud' parameter in JiraAPIWrapper (#23057) 2024-07-05 15:11:10 +00:00
conftest.py infra: Use dotenv in langchain-community's integration tests (#16137) 2024-01-17 18:18:26 -08:00
test_compile.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_dalle.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
test_document_transformers.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_long_context_reorder.py community[patch]: deprecate langchain_community Chroma in favor of langchain_chroma (#24474) 2024-07-22 11:00:13 -04:00
test_nuclia_transformer.py multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
test_pdf_pagesplitter.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00