remcode
Version:
Turn your AI assistant into a codebase expert. Intelligent code analysis, semantic search, and software engineering guidance through MCP integration.
44 lines (43 loc) • 1.37 kB
TypeScript
import { CodeChunk, VectorizationResult, VectorizationOptions } from './types';
/**
* Main vectorization pipeline that orchestrates chunking, embedding, and storage
*/
export declare class VectorizationPipeline {
private options;
private chunkingManager;
private embeddingManager;
private storage;
private initialized;
constructor(options: VectorizationOptions);
/**
* Initialize the vectorization pipeline
*/
initialize(): Promise<void>;
/**
* Process a single file and return its vectorized chunks
*/
processFile(filePath: string, relativePath?: string): Promise<CodeChunk[]>;
/**
* Search for similar code using vector similarity
*/
searchSimilarCode(query: string, topK?: number, filter?: Record<string, any>): Promise<any[]>;
/**
* Get storage statistics
*/
getStats(): Promise<any>;
/**
* Delete vectors for a specific file (useful for incremental updates)
*/
deleteFileVectors(filePath: string): Promise<number>;
private createFileInfo;
private determineChunkingStrategy;
private estimateComplexity;
/**
* Process all files in a directory recursively
*/
processDirectory(dirPath: string): Promise<VectorizationResult>;
/**
* Find all code files in a directory recursively
*/
private findCodeFiles;
}