Versions in this module Expand all Collapse all v0 v0.1.10 Mar 27, 2026 v0.1.7 Mar 27, 2026 Changes in this version + const CacheDir + func BuildEmbeddingText(name, signature, summary, doc, file string) string + func FunctionCacheKey(filePath, funcName, receiver string) string + func PrintStats(index *SearchIndex) string + func SaveCacheManifest(outputDir string, manifest *CacheManifest) error + func WriteIndex(index *SearchIndex, outputDir string) error + type AWSConfig struct + Account string + Profiles []string + Region string + type BedrockCohereEmbedder struct + func NewBedrockEmbedder(ctx context.Context, model, region string) (*BedrockCohereEmbedder, error) + func (e *BedrockCohereEmbedder) EmbedDocument(ctx context.Context, text string) ([]float32, error) + func (e *BedrockCohereEmbedder) EmbedQuery(ctx context.Context, text string) ([]float32, error) + func (e *BedrockCohereEmbedder) Name() string + type BedrockLLMBackend struct + func NewBedrockLLMBackend(region string) (*BedrockLLMBackend, error) + func (b *BedrockLLMBackend) Call(model, prompt string) (string, error) + func (b *BedrockLLMBackend) Name() string + type CParser struct + func NewCParser(srcRoot string, excludes []string) *CParser + func (p *CParser) Parse(result *ParseResult) error + type CacheManifest struct + Commit string + Files map[string]*FileCache + Functions map[string]*FunctionCache + Packages map[string]*PackageCache + func LoadCacheManifest(outputDir string) (*CacheManifest, error) + func NewCacheManifest() *CacheManifest + type DiffResult struct + ChangedFiles map[string]*FileInfo + ChangedFunctions map[string]*FunctionInfo + ChangedPackages map[string]*PackageInfo + RemovedFiles []string + RemovedFunctions []string + RemovedPackages []string + func ComputeDiff(parsed *ParseResult, cache *CacheManifest) *DiffResult + func NewDiffResult() *DiffResult + type DocumentMetadata struct + Doc string + File string + Kind string + Line int + Name string + Package string + Receiver string + Signature string + Summary string + type EmbedCache struct + Items map[string]string + func LoadEmbedCache(outputDir string) (*EmbedCache, error) + func NewEmbedCache() *EmbedCache + func (c *EmbedCache) IsUpToDate(id, contentHash string) bool + func (c *EmbedCache) Remove(id string) + func (c *EmbedCache) Save(outputDir string) error + func (c *EmbedCache) Set(id, contentHash string) + type Embedder interface + EmbedDocument func(ctx context.Context, text string) ([]float32, error) + EmbedQuery func(ctx context.Context, text string) ([]float32, error) + Name func() string + func NewEmbedder(ctx context.Context, cfg EmbeddingsConfig, awsRegion string) (Embedder, error) + type EmbeddingsConfig struct + APIKeyEnv string + BaseURL string + Model string + Provider string + type FieldInfo struct + Doc string + Name string + Tag string + Type string + type FileCache struct + FuncDocHash string + LastGenerated time.Time + type FileEntry struct + Doc string + ImportPath string + Package string + Path string + Summary string + type FileInfo struct + ASTHash string + Doc string + Functions []FunctionInfo + ImportPath string + Package string + Path string + Types []TypeInfo + type FunctionCache struct + ASTHash string + DocHash string + LastGenerated time.Time + SigHash string + type FunctionEntry struct + Doc string + Exported bool + File string + Line int + Name string + Receiver string + Signature string + Summary string + type FunctionInfo struct + ASTHash string + Doc string + Exported bool + File string + Line int + Name string + Receiver string + SigHash string + Signature string + type GenerateStats struct + FilesGenerated int + FilesRemoved int + FilesSkipped int + FunctionsGenerated int + FunctionsRemoved int + FunctionsSkipped int + PackagesGenerated int + PackagesRemoved int + PackagesSkipped int + type Generator struct + func NewGenerator(outputDir string, config *IndexConfig, dryRun bool, opts ...GeneratorOption) (*Generator, error) + func (g *Generator) Generate(parsed *ParseResult, diff *DiffResult, cache *CacheManifest) (*GenerateStats, error) + type GeneratorOption func(*Generator) + func WithBackendOverride(backend string) GeneratorOption + func WithMaxFiles(n int) GeneratorOption + func WithVerbose(v bool) GeneratorOption + type IndexConfig struct + AWS AWSConfig + Embeddings EmbeddingsConfig + LLM LLMConfig + Project string + R RConfig + Sources []SourceConfig + Storage StorageConfig + func LoadConfig(repoRoot string) (*IndexConfig, error) + func (c *IndexConfig) FunctionModel() string + func (c *IndexConfig) SummaryModel() string + type LLMBackend interface + Call func(model, prompt string) (string, error) + Name func() string + type LLMConfig struct + APIKeyEnv string + BaseURL string + FunctionModel string + Provider string + SummaryModel string + type MarkdownParser struct + func NewMarkdownParser(srcRoot string, excludes []string) *MarkdownParser + func (p *MarkdownParser) Parse(result *ParseResult) error + type OpenAIEmbedder struct + func NewOpenAIEmbedder(model, baseURL, apiKeyEnv string) (*OpenAIEmbedder, error) + func (e *OpenAIEmbedder) EmbedDocument(ctx context.Context, text string) ([]float32, error) + func (e *OpenAIEmbedder) EmbedQuery(ctx context.Context, text string) ([]float32, error) + func (e *OpenAIEmbedder) Name() string + type OpenAILLMBackend struct + func NewOpenAILLMBackend(baseURL, apiKeyEnv string) (*OpenAILLMBackend, error) + func (b *OpenAILLMBackend) Call(model, prompt string) (string, error) + func (b *OpenAILLMBackend) Name() string + type PackageCache struct + FileDocHash string + LastGenerated time.Time + type PackageEntry struct + Dir string + Doc string + FileCount int + ImportPath string + Summary string + type PackageInfo struct + ASTHash string + Dir string + Doc string + Files []string + ImportPath string + type ParseResult struct + Files map[string]*FileInfo + Packages map[string]*PackageInfo + ParsedAt time.Time + func NewParseResult() *ParseResult + type Parser struct + func NewParser(srcRoot, modulePrefix string) *Parser + func NewParserWithConfig(srcRoot, modulePrefix string, excludes, vendorIncludes []string) *Parser + func (p *Parser) Parse() (*ParseResult, error) + func (p *Parser) ParseInto(result *ParseResult) error + type PythonParser struct + func NewPythonParser(srcRoot string, excludes []string) *PythonParser + func (p *PythonParser) Parse(result *ParseResult) error + type RConfig struct + Executable string + type RParser struct + func NewRParser(srcRoot string, excludes []string) *RParser + func NewRParserWithConfig(srcRoot string, excludes []string, rscriptBin, repoRoot string) *RParser + func (p *RParser) Parse(result *ParseResult) error + type SearchIndex struct + Files []FileEntry + Functions []FunctionEntry + Packages []PackageEntry + Types []TypeEntry + func BuildIndex(parsed *ParseResult, outputDir string) (*SearchIndex, error) + type SearchResult struct + Content string + ID string + Metadata map[string]string + Similarity float32 + type SourceConfig struct + Exclude []string + ImportPrefix string + Language string + Path string + VendorInclude []string + type StorageConfig struct + AuthTokenEnv string + S3Bucket string + S3Prefix string + URL string + type TSParser struct + func NewTSParser(srcRoot string, excludes []string) *TSParser + func (p *TSParser) Parse(result *ParseResult) error + type TypeEntry struct + Doc string + Exported bool + Fields []FieldInfo + File string + Kind string + Line int + Name string + Summary string + type TypeInfo struct + ASTHash string + Doc string + Exported bool + Fields []FieldInfo + File string + Kind string + Line int + Methods []FunctionInfo + Name string + type VectorStore struct + func OpenVectorStore(outputDir string, dimensions int) (*VectorStore, error) + func (vs *VectorStore) AddDocument(ctx context.Context, id, content string, embedding []float32, ...) error + func (vs *VectorStore) Close() error + func (vs *VectorStore) Count() int + func (vs *VectorStore) Dimensions() int + func (vs *VectorStore) Reset(ctx context.Context) error + func (vs *VectorStore) Search(ctx context.Context, queryEmbedding []float32, maxResults int) ([]SearchResult, error)