MCPcopy Create free account
hub / github.com/diillson/chatcli / BackfillFacts

Method BackfillFacts

cli/workspace/memory/vector_store.go:73–78  ·  view source on GitHub ↗

BackfillFacts embeds and stores the supplied (id,text) fact pairs.

(ctx context.Context, items map[string]string)

Source from the content-addressed store, hash-verified

71
72// BackfillFacts embeds and stores the supplied (id,text) fact pairs.
73func (v *VectorIndex) BackfillFacts(ctx context.Context, items map[string]string) error {
74 if v == nil {
75 return nil
76 }
77 return v.idx.Upsert(ctx, items)
78}
79
80// ScoredFact pairs a fact id with the cosine similarity that surfaced it.
81type ScoredFact struct {

Calls 1

UpsertMethod · 0.45