Comments (6)
@beddows returnSourceDocuments
allows you to get back the different Document chunks like this:
sourceDocuments: [
Document {
pageContent: 'somedoc..',
metadata: [Object]
},
]
Is that what you are expecting?
from flowise.
@HenryHengZJ Yes, that looks correct. The metadata can be used by the LLM summarizer to identify the sources of the chunks that are contributing to the final answer (and will provide the sources when prompted to do so).
from flowise.
@beddows do you mind to have a quick test to see if that satisfy your use cases?
In the line under this can you add chain.returnSourceDocuments = true
?
My thought is that we'll have to use Output Parser if we want to see the specific source where the answer is from, not sure how to use the sourceDocuments
array returned from returnSourceDocuments
from flowise.
@beddows do you mind to have a quick test to see if that satisfy your use cases?
In the line under this can you add
chain.returnSourceDocuments = true
?
Hi Henry,
Langchain implementation of ectorDBQAWithSourcesChain is deprecated - It needed to be added in the RetrievalQA Chain
warnings.warn( "VectorDBQAWithSourcesChain
is deprecated - " "please use `from langchain.chains import RetrievalQAWithSourcesChain
from flowise.
Perfect, this line then - https://github.com/FlowiseAI/Flowise/blob/main/packages/components/nodes/chains/RetrievalQAChain/RetrievalQAChain.ts#L43
from flowise.
Its now supported using ConversationalRetrievalQAChain - #274
from flowise.
Related Issues (20)
- [BUG] - Pinecone upsert creates multiple identical records HOT 6
- Concern and clarity needed regarding restrictive language attached to the Apache 2.0 License HOT 2
- [FEATURE]: Enable Custom tool to use Streaming HOT 1
- [BUG] 502 Server Error - Long Running Chat Flow Causes Chat Session to Terminate Early HOT 11
- [BUG] multiple times loading .env HOT 2
- [BUG] When the output from the upstream node is JSON, the received value is [object Object]. HOT 4
- I can not create only embeddings bot HOT 3
- [BUG] Error executing tool ToolInputParsingException [Error]: Received tool input did not match expected schema HOT 1
- [BUG] Not Sending Full Chain Logs over to LangFuse HOT 5
- Request Timed Out [BUG] HOT 1
- Ctrl+S = Save
- [BUG] Credential zapierNLAApi icon when navigate to credentials page
- [FEATURE] Automation for Creating and Cloning Chatflows HOT 1
- [FEATURE] URL path prefix HOT 1
- DELETE /api/v1/chatmessage/ not working HOT 2
- [BUG] Azure Davinci 003 HOT 2
- User Isolation & SSO Integration HOT 1
- Can you add content generation moderation values changer option in google gemini to have more freedom over content generation
- [FEATURE] Pass Assistant Id Via Api
- [FEATURE] Please Add support for Google Gemini Pro vision in flowise HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowise.