Replies: 1 comment
-
Hi Mayooear, in the video, did you extend the ConversationalRetrievalQAChain to create CustomQAChain? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Mayooear, can you please share the function CustomQAChain. Saw in the demo video a call to the CustomQAChain, i tried to send the vecotorstore with multiple namespaces to the makeChain and it dosnet seem to like it (code below)
const sanitizedQuestion = question.trim().replaceAll('\n', ' ');
console.log('sanitizedQuestion', sanitizedQuestion);
const yearsArray = await extractYearsFromQuery(sanitizedQuestion);
console.log('yearsArray', yearsArray);
const namespaces =
yearsArray
?.map((year) => NAMESPACE_YEARS[year])
.filter((namespace) => namespace !== undefined) ?? [];
console.log('namespaces', namespaces);
try {
const index = pinecone.Index(PINECONE_INDEX_NAME);
Beta Was this translation helpful? Give feedback.
All reactions