mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
415d38ae62
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> |
||
---|---|---|
.. | ||
cassandra_chat_message_history.ipynb | ||
dynamodb_chat_message_history.ipynb | ||
entity_memory_with_sqlite.ipynb | ||
index.mdx | ||
momento_chat_message_history.ipynb | ||
mongodb_chat_message_history.ipynb | ||
motorhead_memory_managed.ipynb | ||
motorhead_memory.ipynb | ||
postgres_chat_message_history.ipynb | ||
redis_chat_message_history.ipynb | ||
rockset_chat_message_history.ipynb | ||
sql_chat_message_history.ipynb | ||
streamlit_chat_message_history.ipynb | ||
xata_chat_message_history.ipynb | ||
zep_memory.ipynb |