VoiceflowVVoiceflow
Powered by
JulienJ
Voiceflow•2y ago•
19 replies
Julien

What is the best way to summarize a document in the KB with RAG?

I have a word document in the KB with 12 chunks of 1000 tokens. I assigned a specific tag to that document.
The document contains the transcript of a discussion between 2 persons.
I use the query API to target that document when the user request a summary.
My reasoning is to send as many chunks of the document to the LLM (GPT 3.5 turbo) to get a complete summary.
Therefore I set the "chunkLimit" parameter (from the query API) to 10. In the query API response, I see that 10 chunks are selected with their corresponding similarity score but the output from the query API is "null".
The same is true is I set the "chunkLimit" parameter to 5.
If I I set the "chunkLimit" parameter to 2 or 3 or 4. It works but the summary is not complete. It does not include important parts of the document.
In the KB settings, the Chunk limit setting is set to 10. The max token setting is set to 1000 tokens.
Am I doing something wrong?
Is there another way to get a complete summary of a document?
Thanks for your help
Voiceflow banner
VoiceflowJoin
Voiceflow is your community to get help, stay up to date on product releases, and connect with builders, experts, and the Voiceflow team⚡
13,087Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
jacklyn

# Let your agents search the web 🔎 Hey everyone! We just released the web search tool for the agent step! Your agents can now automatically search the web for information, letting your agent supplement the LLM's knowledge and the data in its knowledge base with live, up-to-date information. Plus.... * You can restrict searches to specific domains, so your agent only searches sites that you own * This is a tool, so you remain in control of when the agent searches the web * Results are automatically summarized in a way that your agent can automatically understand Under the hood, we're using OpenAI's web search API. Give it a try, and let us know what you think! https://docs.voiceflow.com/changelog/native-web-search-tool

jacklyn · 3mo ago

jacklyn

jacklynbiggin's Thread

jacklyn · 3mo ago

hurt-tomato

connor_maclean's Thread

hurt-tomato · 3mo ago

Similar Threads

issue with KB not finding the info in the KB
hidden-sapphireHhidden-sapphire / ❓┃help
3y ago
What is the best way to create a webchat for my chatbots
broad-emeraldBbroad-emerald / ❓┃help
3y ago
Create new document in the document library
then-purpleTthen-purple / ❓┃help
3y ago
problem with KB
nursing-limeNnursing-lime / ❓┃help
2y ago