Versions in this module Expand all Collapse all v0 v0.3.9 Aug 4, 2026 v0.3.8 Aug 3, 2026 v0.3.7 Aug 2, 2026 Changes in this version + func CloseDirectory(directory string) error v0.3.6 Aug 2, 2026 v0.3.5 Aug 2, 2026 Changes in this version type DirStatus + TotalPushed int v0.3.4 Jul 30, 2026 Changes in this version + func CheckContentHash(directory, filePath, symbol, content string) (bool, error) v0.3.3 Jul 29, 2026 v0.3.2 Jul 28, 2026 Changes in this version + const DefaultDim + var VecDBs = make(map[string]*CodebaseDB) + var VecDBsLock sync.Mutex + func AddToQueue(directory string, task EmbedTask) error + func CancelIndex(directory string) error + func CleanDirectory(directory string) error + func CleanSymbols(directory, filePath string, activeSymbols []string) error + func GetDimFromCfg() int + func GetFilePaths(directory string) ([]string, error) + func Initialize() error + func IsEmbeddingConfigured() bool + func RemoveFile(directory, filePath string) error + func ResumeDirectory(directory string) error + func RunIndex(ctx context.Context, cwd string, broadcastFn func(IndexStatus)) error + func Shutdown() error + func StopDirectory(directory string) error + type BM25Result struct + EmbedText string + FilePath string + FullContent string + ID int64 + Score float64 + Symbol string + Tags string + type CodebaseDB struct + func (cdb *CodebaseDB) BM25Search(ctx context.Context, query string, limit int) ([]BM25Result, error) + func (cdb *CodebaseDB) Search(ctx context.Context, searchType SearchType, query string, limit int) ([]SearchResult, error) + func (cdb *CodebaseDB) VectorSearch(ctx context.Context, query string, limit int) ([]VectorSearchResult, error) + type DirStatus struct + Directory string + Paused bool + QueueLen int + WorkerActive bool + func DirectoryStatus(directory string) *DirStatus + type EmbedTask struct + Done chan<- struct{} + EmbedText string + FilePath string + FullContent string + Priority bool + Symbol string + Tags []string + type IndexStatus struct + CurrentFile string + Error string + Processed int + Remaining int + Status string + Total int + func GetIndexStatus(directory string) *IndexStatus + type QueueManager struct + func NewQueueManager() *QueueManager + func (qm *QueueManager) Clear() + func (qm *QueueManager) Close() + func (qm *QueueManager) Len() int + func (qm *QueueManager) Pause() + func (qm *QueueManager) Push(task *EmbedTask) + func (qm *QueueManager) Resume() + func (qm *QueueManager) WaitPop(ctx context.Context) *EmbedTask + type SearchResult struct + Distance float64 + EmbedText string + FilePath string + FullContent string + ID int64 + Score float64 + Symbol string + Tags string + func Search(ctx context.Context, directory string, searchType SearchType, query string, ...) ([]SearchResult, error) + type SearchType int + const SearchAuto + const SearchBM25 + const SearchVector + type VectorSearchResult struct + Distance float64 + EmbedText string + FilePath string + FullContent string + ID int64 + Symbol string + Tags string