( owner: string, repo: string, chunkIndex: number, )
| 60 | * @returns Unique ID for the vector |
| 61 | */ |
| 62 | export function getVectorId( |
| 63 | owner: string, |
| 64 | repo: string, |
| 65 | chunkIndex: number, |
| 66 | ): string { |
| 67 | // With namespaces, vector IDs only need to be unique within the namespace |
| 68 | // So we can use simpler IDs |
| 69 | return `chunk:${chunkIndex}`; |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Get simple embeddings for text with improved topical differentiation |
no outgoing calls
no test coverage detected