Dynamic chunk selection based on tocken limits #1997
Unanswered
oceans2892
asked this question in
Q&A
Replies: 1 comment
-
Because Flowise has different LLM integrations so it's impossible for us to dynamically calculate the topK according to LLM context window and user prompt. You'll have to implement the logic on your side, then you can call the API and override the topK config |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Y'all,
Is there a way to select only the top k chunks that fit into the token window for the input? Example with made up numbers:
I understand that you can fix it manually to be a low number of tokens to give enough space, there's also the ability to rerank retrievals. But is there a way to actually make it dynamic so depending on the input, a specific number of chunks will be selected to be included?
Beta Was this translation helpful? Give feedback.
All reactions