@@ -64,7 +64,7 @@ async function searchQdrant(embedding, { topK, minScore, maxContextDocs } = CONF
|
||||
with_payload: true,
|
||||
score_threshold: minScore,
|
||||
});
|
||||
|
||||
console.log(`Qdrant returned ${results.length} results (threshold: ${minScore})`);
|
||||
return results
|
||||
.sort((a, b) => b.score - a.score)
|
||||
.slice(0, maxContextDocs);
|
||||
|
||||
Reference in New Issue
Block a user