Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[FEATURE] Is there any chain for sumarizing large context ?

Open HuTsing opened this issue 3 years ago • 5 comments

Describe the feature you'd like I want to summarize a webpage, the webpage content resulted tokens exceed the maximum, langchain provide a load_summarize_chain for this situation, is there any component can i use

HuTsing avatar Jul 08 '23 14:07 HuTsing

Will need to dive deeper on how to solve max tokens limitation in Flowise, as it will hit the limit of OpenAI.

langchainjs reference on how to implement into Flowise

Reference: langchainjs #1827 Auto-GPT #2906

chungyau97 avatar Jul 10 '23 02:07 chungyau97

Will need to dive deeper on how to solve max tokens limitation in Flowise, as it will hit the limit of OpenAI.

langchainjs reference on how to implement into Flowise

Reference: langchainjs #1827 Auto-GPT #2906

I just want a loadSummarizationChain component, langchain has provided: loadSummarizationChain

HuTsing avatar Jul 10 '23 02:07 HuTsing

Alright, I can do that.

Once PR is opened I will update you here.

chungyau97 avatar Jul 10 '23 05:07 chungyau97

@LegendLeo have you tried using ConversationalRetrievalQAChain with different chain type? image

you can read more what are these for - https://js.langchain.com/docs/modules/chains/document/map_reduce , these chain types are used to summarize long context

HenryHengZJ avatar Jul 20 '23 00:07 HenryHengZJ

ConversationalRetrievalQAChain is used in conversation situation, but I just want to summarize a very long text, not a chat history.

HuTsing avatar Aug 13 '23 11:08 HuTsing