Skip to content
Snippets Groups Projects
Commit 978ab1d3 authored by echicken's avatar echicken :chicken:
Browse files

Accept lower-scored vector search results

parent 25986be7
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ async function getAnswer(query: string, response: EngineResponse, nodes: NodeWit
if (!Array.isArray(nodes) || nodes.length < 1) return answer;
for (const node of nodes) {
if (node.score === undefined || node.score < .5) continue;
if (node.score === undefined || node.score < .4) continue;
if (node.node.relationships.SOURCE === undefined) continue;
const source = node.node.relationships.SOURCE as RelatedNodeInfo;
if (source.nodeId === undefined) continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment