We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b05a0a commit 0367ddfCopy full SHA for 0367ddf
packages/backend/server/src/plugins/copilot/tools/doc-semantic-search.ts
@@ -25,6 +25,9 @@ function clearEmbeddingChunk(chunk: ChunkSimilarity): ChunkSimilarity {
25
if (FILTER_PREFIX.some(prefix => lines[0].startsWith(prefix))) {
26
lines.shift();
27
maxLines--;
28
+ } else {
29
+ // only process consecutive metadata rows
30
+ break;
31
}
32
33
return { ...chunk, content: lines.join('\n') };
0 commit comments