UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

14 lines • 1.01 kB
import type { ChromaAccessor } from '../../accessor/chroma.ts'; import type { PathSpec, SearchQuery } from '../../types.ts'; export declare function searchSegments(accessor: ChromaAccessor, query: string, paths: readonly PathSpec[], topK?: number, mountPrefix?: string, threshold?: number): Promise<[string, string][]>; export declare function searchMany(accessor: ChromaAccessor, paths: PathSpec[], query: SearchQuery): Promise<[string, string][]>; /** * The pages with a chunk holding `text`. * * A page is its chunks joined by line breaks, so a line, and so any match * grep makes, lies within one chunk, and Chroma's `$contains` over the chunks * answers exactly. It matches case, so -i reads every page. Below the mount's * root only the walked pages are asked. Mirrors Python's `files_containing`. */ export declare function filesContaining(accessor: ChromaAccessor, text: string, under: readonly PathSpec[], ignoreCase: boolean): Promise<PathSpec[] | null>; //# sourceMappingURL=search.d.ts.map