/** * RAG Engine - RAGシステムのファサード * * @requirement REQ-RAG-005 * @design DES-KATASHIRO-003-RAG §3.5 */ import type { Chunk, ChunkingConfig, Document, EmbeddingProvider, RAGEngineConfig, RetrieverConfig, SearchResult, VectorStore } from './types.js'; /** * RAGエンジン * ドキュメント処理、インデックス作成、検索を統合したファサード */ export declare class RAGEngine { private chunker; private retriever; constructor(embeddingProvider: EmbeddingProvider, vectorStore: VectorStore, config?: RAGEngineConfig); /** * ドキュメントをインデックスに追加 * チャンキング、埋め込み生成、インデックス追加を一括実行 */ ingest(document: Document): Promise; /** * 複数ドキュメントをバッチでインデックスに追加 */ ingestBatch(documents: Document[]): Promise; /** * クエリで関連チャンクを検索 */ query(query: string): Promise; /** * 複数クエリで検索 */ queryMultiple(queries: string[]): Promise; /** * チャンクを削除 */ deleteChunk(chunkId: string): Promise; /** * ドキュメントの全チャンクを削除 */ deleteDocument(documentId: string, chunkCount: number): Promise; /** * チャンキング設定を更新して新しいチャンカーを作成 */ updateChunkingConfig(config: ChunkingConfig): void; /** * 検索設定を更新 */ updateRetrieverConfig(config: Partial): void; /** * ドキュメントをチャンキングのみ実行(インデックス追加なし) */ chunk(document: Document): Chunk[]; /** * 複数ドキュメントをチャンキングのみ実行 */ chunkBatch(documents: Document[]): Chunk[]; } //# sourceMappingURL=RAGEngine.d.ts.map