How do I see the complete prompt (retrieved_relevant_context + question) after qa_chain is run?
qa_chain = RetrievalQA.from_chain_type(
llm,
retriever=vectordb.as_retriever(),
)
result = qa_chain({"query": question})
I am referring to the course from deeplearning.ai

You can see your complete prompt by setting the verbose parameter to TRUE as mentionned below.
qa_chain = RetrievalQA.from_chain_type(
llm=llm_model,
chain_type='stuff',
retriever=vectorsdb.as_retriever(search_kwargs={"k":6}),
verbose=True,
chain_type_kwargs={
"verbose": True,
"prompt": prompt
}
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With