MCPcopy Create free account
hub / github.com/continuedev/continue / createChunk

Function createChunk

core/indexing/docs/article.ts:44–60  ·  view source on GitHub ↗
(
    chunkContent: string,
    chunkStartLine: number,
    chunkEndLine: number,
  )

Source from the content-addressed store, hash-verified

42 ).toString();
43
44 const createChunk = (
45 chunkContent: string,
46 chunkStartLine: number,
47 chunkEndLine: number,
48 ) => {
49 chunks.push({
50 content: chunkContent.trim(),
51 startLine: chunkStartLine,
52 endLine: chunkEndLine,
53 otherMetadata: {
54 title: cleanHeader(article.title),
55 },
56 index: index++,
57 filepath: fullUrl,
58 digest: fullUrl,
59 });
60 };
61
62 for (let i = 0; i < lines.length; i++) {
63 const line = lines[i];

Callers 1

Calls 2

cleanHeaderFunction · 0.90
pushMethod · 0.65

Tested by

no test coverage detected