@dooor-ai/toolkit
Version:
Guards, Evals & Observability for AI applications - works seamlessly with LangChain/LangGraph
22 lines • 758 B
TypeScript
/**
* RAGContext class for DOOOR AI Toolkit
* Allows users to pass ephemeral documents, files, or embeddings for RAG
*/
import { RAGContextConfig, RAGStrategy, RAGFile, RAGDocument, RAGEmbedding } from "./types";
export declare class RAGContext {
readonly files: RAGFile[];
readonly documents: RAGDocument[];
readonly embeddings: RAGEmbedding[];
readonly embeddingProvider: string;
readonly strategy: RAGStrategy;
readonly topK: number;
readonly chunkSize: number;
readonly chunkOverlap: number;
readonly similarityThreshold: number;
constructor(config: RAGContextConfig);
/**
* Serialize RAGContext to JSON for API request
*/
toJSON(): Record<string, any>;
}
//# sourceMappingURL=context.d.ts.map