(options *FetchOptions)
| 132 | } |
| 133 | |
| 134 | func (pa *PineconeAdapter) Fetch(options *FetchOptions) (*FetchOutput, error) { |
| 135 | res, err := pa.Client.Fetch(&pinecone.FetchRequest{ |
| 136 | IDs: options.IDs, |
| 137 | Namespace: options.Namespace, |
| 138 | }) |
| 139 | |
| 140 | if err != nil { |
| 141 | return nil, err |
| 142 | } |
| 143 | |
| 144 | return &FetchOutput{ |
| 145 | Vectors: res.Vectors, |
| 146 | Namespace: res.Namespace, |
| 147 | }, nil |
| 148 | } |
| 149 | |
| 150 | // Update |
| 151 |