MCPcopy Create free account
hub / github.com/Stylsheets/TaskEaseGPT / Query

Method Query

golang/internal/memory/memory/memory.go:74–94  ·  view source on GitHub ↗
(options *QueryOptions)

Source from the content-addressed store, hash-verified

72}
73
74func (pa *PineconeAdapter) Query(options *QueryOptions) (*QueryOutput, error) {
75 res, err := pa.Client.Query(&pinecone.QueryRequest{
76 Namespace: options.Namespace,
77 TopK: options.TopK,
78 Filter: options.Filter,
79 IncludeValues: options.IncludeValues,
80 IncludeMetadata: options.IncludeMetadata,
81 Vector: options.Vector,
82 SparseVector: options.SparseVector,
83 ID: options.ID,
84 })
85
86 if err != nil {
87 return nil, err
88 }
89
90 return &QueryOutput{
91 Matches: res.Matches,
92 Namespace: res.Namespace,
93 }, nil
94}
95
96// Delete
97

Callers

nothing calls this directly

Calls 1

QueryMethod · 0.65

Tested by

no test coverage detected