/** * RAG Query Engine (v2.0.0) * * Performs multi-vector retrieval across raw Codebase Chunks, PR History, * and extracted Architectural Decisions to answer engineering questions. */ import type { StorageBackend } from '../storage/interface.js'; import type { EmbeddingPipeline } from '../embeddingPipeline.js'; import type { CodeChunk } from './astChunker.js'; import type { ArchitecturalDecision } from '../edm/comments.js'; import type { PRRecord } from '../storage/interface.js'; export interface RAGQueryContext { codeChunks: Array; decisions: ArchitecturalDecision[]; prs: PRRecord[]; } export interface RAGResponse { answer?: string; context: RAGQueryContext; } export interface QueryOptions { limitCode?: number; limitDecisions?: number; limitPRs?: number; } /** * Interface for connecting an LLM to synthesize the final answer. */ export interface LLMProvider { generate(prompt: string): Promise; } export declare class RAGQueryEngine { private storage; private pipeline; private llmProvider?; constructor(storage: StorageBackend, pipeline: EmbeddingPipeline, llmProvider?: LLMProvider | undefined); /** * Query the engineering intelligence system. */ query(question: string, opts?: QueryOptions): Promise; private buildPrompt; } //# sourceMappingURL=queryEngine.d.ts.map