-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add support for VectorStoreRetrieverMemory #54
Comments
@dileep9490 here you have some resources that should help you to implement it: Dependencies:
Sample code that we should be able to run when it's implemented: final embeddings = OpenAIEmbeddings(apiKey: openaiApiKey);
final vectorStore = MemoryVectorStore(embeddings: embeddings);
final memory = VectorStoreRetrieverMemory(retriever: vectorStore.asRetriever());
memory.saveContext(
inputValues: {
'foo': 'bar2',
'bar': 'foo2',
},
outputValues: {
'foo': 'bar',
},
);
final memories = await memory.loadMemoryVariables();
print(memories); |
@davidmigloz can you assign me this issue |
@davidmigloz how can i get the test data? the type script tests are using TensorFlow embeddings |
You can use |
@davidmigloz that requires my OpenAI API key right if so i'm having some issues with it? or is there any data available? |
yes, it requires your OpenAI API key. To add data to the Then when you call Another option if you don't want to use OpenAI API is to use a local embedding model using https://www.premai.io/#PremApp. You can still use |
Co-authored-by: David Miguel <[email protected]>
https://python.langchain.com/docs/modules/memory/how_to/vectorstore_retriever_memory
The text was updated successfully, but these errors were encountered: