mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
perf: async parallel
This commit is contained in:
parent
30e5558bb8
commit
bbf3bb45c8
@ -6,9 +6,9 @@ import {Schemas} from "../utils/schemas";
|
||||
export async function cherryPick(question: string, longContext: string, options: any = {}, trackers: TrackerContext, schemaGen: Schemas, url: string) {
|
||||
|
||||
const {
|
||||
snippetLength = 3000, // char length of each snippet
|
||||
snippetLength = 5000, // char length of each snippet
|
||||
numSnippets = Math.max(2, Math.min(5, Math.floor(longContext.length / snippetLength))),
|
||||
chunkSize = 300, // char length of each chunk
|
||||
chunkSize = 500, // char length of each chunk
|
||||
} = options;
|
||||
|
||||
const maxTokensPerRequest = 8192 // Maximum tokens per embedding request
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user