mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 04:26:06 +08:00
Update reranker.ts
This commit is contained in:
parent
2c391b0105
commit
10133adcc6
@ -171,7 +171,7 @@ export type RerankerOptions = {
|
|||||||
|
|
||||||
export async function rerankLinksWithLLM(options: RerankerOptions): Promise<RerankerResult> {
|
export async function rerankLinksWithLLM(options: RerankerOptions): Promise<RerankerResult> {
|
||||||
const { links, searchQuery, urlTraces } = options;
|
const { links, searchQuery, urlTraces } = options;
|
||||||
const chunkSize = 20;
|
const chunkSize = 100;
|
||||||
const chunks: MapDocument[][] = [];
|
const chunks: MapDocument[][] = [];
|
||||||
const TIMEOUT_MS = 20000;
|
const TIMEOUT_MS = 20000;
|
||||||
const MAX_RETRIES = 2;
|
const MAX_RETRIES = 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user