Zero-darkbox query updates and tokenizer improvements
This commit is contained in:
@@ -78,7 +78,8 @@ export async function rerank(query, documents, options = {}) {
|
||||
},
|
||||
body: JSON.stringify({
|
||||
model: RERANK_MODEL,
|
||||
query: query.slice(0, 1000), // 限制 query 长度
|
||||
// Zero-darkbox: do not silently truncate query.
|
||||
query,
|
||||
documents: validDocs,
|
||||
top_n: Math.min(topN, validDocs.length),
|
||||
return_documents: false,
|
||||
|
||||
Reference in New Issue
Block a user