RetrievalQAWithSourcesChain Implementation #188
Replies: 3 comments 1 reply
-
there is! #116 but need to understand what is the use cases there? are you looking to return something like this?: or are you looking to connect/route the document chunks returned by |
Beta Was this translation helpful? Give feedback.
-
Ah, ok. Great! I was looking to use to display where the answer to a question was sourced from when using Langchain doc loaders. Here is the example that Langchain uses for RetrievalQAWithSourceChain. from langchain.chains import RetrievalQAWithSourcesChain qa_with_sources = RetrievalQAWithSourcesChain.from_chain_type( |
Beta Was this translation helpful? Give feedback.
-
Or perhaps is there a way to get the source of answer from the response metadata and present to user? |
Beta Was this translation helpful? Give feedback.
-
I got to say this blows LangFlow away! Are there future plans to implement RetrievalQAWithSourcesChain in the near future by chance??
Beta Was this translation helpful? Give feedback.
All reactions