langchain/docs/extras/integrations
Stefano Lottini 415d38ae62
Cassandra Vector Store, add metadata filtering + improvements (#9280)
This PR addresses a few minor issues with the Cassandra vector store
implementation and extends the store to support Metadata search.

Thanks to the latest cassIO library (>=0.1.0), metadata filtering is
available in the store.

Further,
- the "relevance" score is prevented from being flipped in the [0,1]
interval, thus ensuring that 1 corresponds to the closest vector (this
is related to how the underlying cassIO class returns the cosine
difference);
- bumped the cassIO package version both in the notebooks and the
pyproject.toml;
- adjusted the textfile location for the vector-store example after the
reshuffling of the Langchain repo dir structure;
- added demonstration of metadata filtering in the Cassandra vector
store notebook;
- better docstring for the Cassandra vector store class;
- fixed test flakiness and removed offending out-of-place escape chars
from a test module docstring;

To my knowledge all relevant tests pass and mypy+black+ruff don't
complain. (mypy gives unrelated errors in other modules, which clearly
don't depend on the content of this PR).

Thank you!
Stefano

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
2023-09-13 14:18:39 -07:00
..
callbacks Feature/add deepeval (#10349) 2023-09-09 13:28:17 -07:00
chat add konko chat_model files (#10267) 2023-09-08 10:00:55 -07:00
chat_loaders iMessage loader (#9832) 2023-08-28 13:43:59 -07:00
document_loaders ArcGISLoader: add keyword arguments, error handling, and better tests (#10558) 2023-09-13 14:12:42 -07:00
document_transformers Konko fix dependency 2023-09-08 10:06:37 -07:00
llms Latest version of HazyResearch/manifest doesn't support accessing "client" directly (#10389) 2023-09-11 14:22:53 -07:00
memory Cassandra Vector Store, add metadata filtering + improvements (#9280) 2023-09-13 14:18:39 -07:00
providers add vearch repository link (#10491) 2023-09-13 12:06:47 -07:00
retrievers Google drive integration (lite) (#9999) 2023-09-03 15:54:42 -07:00
text_embedding Konko fix dependency 2023-09-08 10:06:37 -07:00
toolkits Added gitlab toolkit and notebook (#10384) 2023-09-11 16:16:50 -07:00
tools Integration with ElevenLabs text to speech (#10181) 2023-09-12 22:56:53 -07:00
vectorstores Cassandra Vector Store, add metadata filtering + improvements (#9280) 2023-09-13 14:18:39 -07:00