Open
Description
I am trying to create a chatbot using Next.js and Javascript. I firstly upload some context to a namespace in my Vector database. Then, when I try to ask questions, I receive an answer which indicates that I have provided no previous context. the program work correctly when I remove the namespace property.
Below is the code snippets I use for adding context and chatting.
await ragChat.context.add({
type: 'text',
data: chunk,
options: { namespace: namespace },
});
const reply = await ragChat.chat(
query, {
options: {namespace: namespace}
,},);
Metadata
Assignees
Labels
No labels