MCPcopy
hub / github.com/mixedbread-ai/mgrep / search

Method search

src/lib/store.ts:218–236  ·  view source on GitHub ↗
(
    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

Calls 1

searchMethod · 0.65

Tested by

no test coverage detected