Closed mcnewcp closed 12 months ago
@907Resident FYI see above for a working summary of techniques to trial for question answering with context.
Nice, I will try some of these ideas out locally. I should be able to get at least one looked at today
Thanks for sharing
Summary
Add a vectorized database for context to the chat bot. This can be done using a similarity search and appending context to the prompt, or by using a more direct QA retrieval chain from
langchain
.Dataset
Some dataset idea resources:
Technique
Trial the following Retrieval Augmented Generation (RAG) techniques:
RetrievalQA
(example 1, example 2, streamlit example) will execute one for one questions and answers on the embedded data source.ConversationalRetrievalQA
example, manual example).ConversationalRetrievalQA
by more efficiently using chat history and also choosing when to query the data source and when not to.