node-llama-cpp throws a hard error when any document + query + template overhead exceeds the ranking context size. Truncate oversized documents using the rerank model's tokenizer before passing them to rankAll(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| bench-rerank.ts | ||
| collections.ts | ||
| db.ts | ||
| formatter.ts | ||
| llm.ts | ||
| mcp.ts | ||
| qmd.ts | ||
| store.ts | ||
| test-preload.ts | ||