@mastra/rag
Version:
The Retrieval-Augmented Generation (RAG) module contains document processing and embedding utilities.
26 lines • 815 B
TypeScript
import { z } from 'zod';
import type { RagTool } from '../utils/index.js';
import type { GraphRagToolOptions } from './types.js';
export declare const createGraphRAGTool: (options: GraphRagToolOptions) => RagTool<z.ZodObject<{
filter: z.ZodString;
queryText: z.ZodString;
topK: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
filter: string;
topK: number;
queryText: string;
}, {
filter: string;
topK: number;
queryText: string;
}> | z.ZodObject<{
queryText: z.ZodString;
topK: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
queryText: z.ZodString;
topK: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
queryText: z.ZodString;
topK: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, any>;
//# sourceMappingURL=graph-rag.d.ts.map