mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
fix: s dot jina
This commit is contained in:
parent
4fc4fa8fa9
commit
83673fe1fa
@ -8,10 +8,10 @@ export async function cherryPick(question: string, longContext: string, options:
|
||||
const {
|
||||
snippetLength = 3000,
|
||||
numSnippets = Math.max(2, Math.min(5, Math.floor(longContext.length / snippetLength))),
|
||||
chunkSize = 200,
|
||||
chunkSize = 300,
|
||||
maxTokensPerRequest = 8192, // Maximum tokens per embedding request
|
||||
// Rough estimate of tokens per character (can be adjusted based on your text)
|
||||
tokensPerCharacter = 0.5
|
||||
tokensPerCharacter = 0.4
|
||||
} = options;
|
||||
|
||||
if (longContext.length < snippetLength * 2) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user