| 18 | const BATCH_SIZE = 100; |
| 19 | |
| 20 | interface 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 | |
| 34 | async function main() { |
| 35 | console.log('Loading items from database...'); |
nothing calls this directly
no outgoing calls
no test coverage detected