Method
search
(
storeIds: string[],
query: string,
top_k?: number,
search_options?: SearchOptions,
filters?: SearchFilter,
)
Source from the content-addressed store, hash-verified
| 216 | } |
| 217 | |
| 218 | async search( |
| 219 | storeIds: string[], |
| 220 | query: string, |
| 221 | top_k?: number, |
| 222 | search_options?: SearchOptions, |
| 223 | filters?: SearchFilter, |
| 224 | ): Promise<SearchResponse> { |
| 225 | const response = await this.client.stores.search({ |
| 226 | query, |
| 227 | store_identifiers: storeIds, |
| 228 | top_k, |
| 229 | search_options, |
| 230 | filters, |
| 231 | }); |
| 232 | |
| 233 | return { |
| 234 | data: response.data as ChunkType[], |
| 235 | }; |
| 236 | } |
| 237 | |
| 238 | async retrieve(storeId: string): Promise<unknown> { |
| 239 | return await this.client.stores.retrieve(storeId); |
Callers
nothing calls this directly
Tested by
no test coverage detected