MCPcopy Create free account
hub / github.com/braintrustdata/bash-agent-evals / EmbeddingIndex

Interface EmbeddingIndex

src/data/embed.ts:20–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18const BATCH_SIZE = 100;
19
20interface EmbeddingIndex {
21 items: Array<{
22 id: number;
23 type: 'issue' | 'pull';
24 repo: string;
25 number: number;
26 title: string;
27 body_preview: string | null;
28 offset: number; // Byte offset in binary file
29 }>;
30 dimension: number;
31 count: number;
32}
33
34async function main() {
35 console.log('Loading items from database...');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected