langchain/docs/extras/integrations/memory
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
..
cassandra_chat_message_history.ipynb Cassandra Vector Store, add metadata filtering + improvements (#9280) 2023-09-13 14:18:39 -07:00
dynamodb_chat_message_history.ipynb Extend DynamoDBChatMessageHistory to support composite keys (#9896) 2023-09-03 15:05:16 -07:00
entity_memory_with_sqlite.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
index.mdx mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
momento_chat_message_history.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
mongodb_chat_message_history.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
motorhead_memory_managed.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
motorhead_memory.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
postgres_chat_message_history.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
redis_chat_message_history.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
rockset_chat_message_history.ipynb Integrate Rockset as a chat history store (#8940) 2023-08-08 18:54:07 -07:00
sql_chat_message_history.ipynb Extend SQLChatMessageHistory (#9849) 2023-09-03 15:49:53 -07:00
streamlit_chat_message_history.ipynb Extend the StreamlitChatMessageHistory docs with a fuller example and… (#8774) 2023-08-04 14:27:46 -07:00
xata_chat_message_history.ipynb Pre-release Xata version no longer required (#9915) 2023-08-29 07:21:22 -07:00
zep_memory.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00