在小白x 的监控里看到的,Rerank API 的输入 Token 数(8194)超出了模型允许的最大上下文长度(8192),相同的错误日志连报了三次
原日志:
Error: Rerank API 400: {"code":20015,"message":"Query is too long. Please provide a shorter query.","data":null}
at rerank (http://127.0.0.1:8765/scripts/extensions/third-party/LittleWhiteBox/modules/story-summary/vector/llm/reranker.js:125:19)
at async runBatch (http://127.0.0.1:8765/scripts/extensions/third-party/LittleWhiteBox/modules/story-summary/vector/llm/reranker.js:216:37)
at async worker (http://127.0.0.1:8765/scripts/extensions/third-party/LittleWhiteBox/modules/story-summary/vector/llm/reranker.js:243:13)
at async Promise.all (index 0)
at async rerankChunks (http://127.0.0.1:8765/scripts/extensions/third-party/LittleWhiteBox/modules/story-summary/vector/llm/reranker.js:246:5)
at async locateAndPullEvidence (http://127.0.0.1:8765/scripts/extensions/third-party/LittleWhiteBox/modules/story-summary/vector/retrieval/recall.js:821:22)
at async recallMemory (http://127.0.0.1:8765/scripts/extensions/third-party/LittleWhiteBox/modules/story-summary/vector/retrieval/recall.js:1492:61)
at async buildVectorPromptText (http://127.0.0.1:8765/scripts/extensions/third-party/LittleWhiteBox/modules/story-summary/generate/prompt.js:1390:24)
at async EventEmitter.handleGenerationStarted (http://127.0.0.1:8765/scripts/extensions/third-party/LittleWhiteBox/modules/story-summary/story-summary.js:2958:19)
at async EventEmitter.emit (http://127.0.0.1:8765/lib/eventemitter.js:306:17)
截图:

在小白x 的监控里看到的,Rerank API 的输入 Token 数(8194)超出了模型允许的最大上下文长度(8192),相同的错误日志连报了三次
原日志:
截图:
