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