MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / chunk

Function chunk

test/retrieval.test.ts:18–20  ·  view source on GitHub ↗
(file: string, startLine: number, embedding: number[])

Source from the content-addressed store, hash-verified

16});
17
18function chunk(file: string, startLine: number, embedding: number[]): Chunk {
19 return { file, startLine, endLine: startLine + 29, text: `code in ${file}`, embedding, hash: `${file}:${startLine}` };
20}
21
22describe('rankChunks', () => {
23 it('ranks by cosine similarity, best first, capped at topK', () => {

Callers 1

retrieval.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected