Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantic cache for InMemory Vector store #218

Merged
merged 7 commits into from
Oct 9, 2024

Conversation

LakshmiPeri23
Copy link
Contributor

Added cache.py which provide Semantic Caching functionality to store question and answers in MemoryDB. Inlucded an example SemanticCache.ipynb jupyter notebook for test

Copy link
Collaborator

@3coins 3coins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LakshmiPeri23
Thanks for submitting this change. Should this be part of caches module, rather than root?

libs/aws/langchain_aws/cache.py Outdated Show resolved Hide resolved
libs/aws/langchain_aws/cache.py Outdated Show resolved Hide resolved
libs/aws/langchain_aws/cache.py Outdated Show resolved Hide resolved
libs/aws/langchain_aws/cache.py Outdated Show resolved Hide resolved
samples/inmemory/Semanticcache.ipynb Outdated Show resolved Hide resolved
samples/inmemory/Semanticcache.ipynb Outdated Show resolved Hide resolved
samples/inmemory/Semanticcache.ipynb Outdated Show resolved Hide resolved
@LakshmiPeri23
Copy link
Contributor Author

ange. Should this be part of caches module,

I saw even tn elangchain code cache is in root and not moved to a seperate module so left the same format.

@LakshmiPeri23
Copy link
Contributor Author

i will work on addressing remaining feedback and submit the changes

@3coins
Copy link
Collaborator

3coins commented Oct 4, 2024

I saw even tn elangchain code cache is in root and not moved to a seperate module so left the same format.

Let's add it inside the cache module. We can add an export inside the root, so users can import from root.

@3coins 3coins merged commit 176d907 into langchain-ai:main Oct 9, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants