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
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.
I checked the code and everything seems to be ok. You might want to wait for the db to finish indexing first which takes a few seconds sometimes.
You can check from the vector databrowser the namespace is empty or not. Also you can use debug: true when creating the RAGChat, it can help when debugging.
I was already checking the data browser in my previous trials and it was filled with the correct data each time. However, while chatting I cannot get answers related to the context I have uploaded
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}
,},);
The text was updated successfully, but these errors were encountered: