In the file chroma-qa-chat/app.py, all the block with the system_template/messages/prompt/chain_type_kwargs are not used in RetrievalQAWithSourcesChain.from_chain_type
# Create a chain that uses the Chroma vector store
chain = RetrievalQAWithSourcesChain.from_chain_type(
ChatOpenAI(temperature=0, streaming=True),
chain_type="stuff",
retriever=docsearch.as_retriever(),
)
Needs to change to :
# Create a chain that uses the Chroma vector store
chain = RetrievalQAWithSourcesChain.from_chain_type(
ChatOpenAI(temperature=0, streaming=True),
chain_type="stuff",
retriever=docsearch.as_retriever(),
chain_type_kwargs=chain_type_kwargs,
)
Else it is taking the default prompts with no history messages.
Hello,
In the file
chroma-qa-chat/app.py
, all the block with the system_template/messages/prompt/chain_type_kwargs are not used inRetrievalQAWithSourcesChain.from_chain_type
Needs to change to :
Else it is taking the default prompts with no history messages.