MCPcopy Create free account
hub / github.com/idosal/git-mcp / getVectorId

Function getVectorId

src/api/utils/vectorStore.ts:62–70  ·  view source on GitHub ↗
(
  owner: string,
  repo: string,
  chunkIndex: number,
)

Source from the content-addressed store, hash-verified

60 * @returns Unique ID for the vector
61 */
62export 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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected