Kind: Class
Source: atloria-monorepo/libs/agent-core/src/semantic/semantic-index.ts
Methods
| Method | Signature | Returns |
|---|---|---|
index | index() | Promise<IndexStats> |
reindexFiles | reindexFiles(files: string[]) | Promise<void> |
search | search(query: string, topK: number) | Promise<SearchResult[]> |
isIndexed | isIndexed() | boolean |
Where it refuses work
SemanticIndexstops the work with an early return whenresults.length >= maxFiles, in 2 places.SemanticIndexstops the work with an early return whentoReindex.length === 0.SemanticIndexstops the work with an early return whengitFiles.SemanticIndexstops the work with an early return when!includeExtensions.includes(ext).SemanticIndexstops the work with an early return when!fs.existsSync(gitDir).
When something fails
SemanticIndexhandles failure in 8 places: it discards it silently in 5, turns it into a return value in 2, and logs it and continues in 1.
Was this page helpful?