You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this your first time submitting a feature request?
I have searched the existing issues, and I could not find an existing issue for this feature
I am requesting a straightforward extension of existing functionality
Describe the feature
add LLM memory to chat
const vectorStore = new MemoryVectorStore(new OpenAIEmbeddings());
const memory = new VectorStoreRetrieverMemory({
// 1 is how many documents to return, you might want to return more, eg. 4
vectorStoreRetriever: vectorStore.asRetriever(1),
memoryKey: "history",
});
// Build an LLM chain that will improve the user prompt
const inquiryChain = new LLMChain({
llm,
prompt: new PromptTemplate({
template: templates.inquiryTemplate,
inputVariables: ["userPrompt", "conversationHistory"],
}),
memory: memory,
});
Is this your first time submitting a feature request?
Describe the feature
add LLM memory to chat
Describe alternatives you've considered
No response
Who will this benefit?
everyone looking at the repository from coming from the article: https://www.pinecone.io/learn/javascript-chatbot/
Are you interested in contributing this feature?
yes would like to contribute :)
Anything else?
No response
The text was updated successfully, but these errors were encountered: