MCPcopy
hub / github.com/mayneyao/eidos / add

Method add

packages/core/meta-table/embedding.ts:30–43  ·  view source on GitHub ↗
(data: IEmbedding)

Source from the content-addressed store, hash-verified

28);
29`
30 add(data: IEmbedding): Promise<IEmbedding> {
31 this.dataSpace.exec(
32 `INSERT INTO ${this.name} (id, embedding, model, raw_content, source_type, source) VALUES (?, ?, ?, ?, ?, ?)`,
33 [
34 data.id,
35 data.embedding,
36 data.model,
37 data.raw_content,
38 data.source_type,
39 data.source,
40 ]
41 )
42 return Promise.resolve(data)
43 }
44 get(id: string): Promise<IEmbedding | null> {
45 throw new Error("Method not implemented.")
46 }

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.80
execMethod · 0.65

Tested by

no test coverage detected