MCPcopy Create free account
hub / github.com/encoder-run/operator / CodeEmbeddingChunk

Struct CodeEmbeddingChunk

pkg/embedder/client.go:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23type CodeEmbeddingChunk struct {
24 ChunkID int `json:"chunk_id"`
25 FileHash string `json:"file_hash"`
26 Code string `json:"code"`
27 StartIndex int `json:"start_index"`
28 EndIndex int `json:"end_index"`
29 Embedding []float32 `json:"embedding"`
30}
31
32type CodeEmbeddings struct {
33 Embeddings []CodeEmbeddingChunk `json:"embeddings"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected