UNPKG

giga-code

Version:

A personal AI CLI assistant powered by Grok for local development.

34 lines (33 loc) 1.35 kB
export interface RAGConfig { enabled: boolean; embeddingProvider: 'gemini' | 'openai'; embeddingModel: string; searchThreshold: number; maxResults: number; chunkingStrategy: 'logical' | 'fixed'; includePatterns: string[]; excludePatterns: string[]; maxFileSizeKB?: number; maxDirectorySizeMB?: number; maxFiles?: number; } export declare class RAGConfigManager { static getConfigPath(projectPath?: string): string; static getGigaDirPath(projectPath?: string): string; static ensureGigaDirectory(projectPath?: string): void; static loadConfig(projectPath?: string): RAGConfig; static saveConfig(config: RAGConfig, projectPath?: string): void; static updateConfig(updates: Partial<RAGConfig>, projectPath?: string): RAGConfig; static getDefaultConfig(): RAGConfig; static isRAGEnabled(projectPath?: string): boolean; static enableRAG(projectPath?: string): void; static disableRAG(projectPath?: string): void; static hasGigaDirectory(projectPath?: string): boolean; static hasRAGConfig(projectPath?: string): boolean; static initializeProject(projectPath?: string): RAGConfig; static validateConfig(config: Partial<RAGConfig>): { valid: boolean; errors: string[]; }; static getConfigSummary(projectPath?: string): string; }