Kind: Class
Source: atloria-monorepo/libs/agent-core/src/semantic/vector-store.ts
Methods
| Method | Signature | Returns |
|---|---|---|
load | load() | void |
save | save() | void |
upsert | upsert(chunks: CodeChunk[]) | void |
remove | remove(chunkIds: string[]) | void |
removeByFile | removeByFile(files: string[]) | void |
getAll | getAll() | CodeChunk[] |
getByFile | getByFile(file: string) | CodeChunk[] |
vectorSearch | vectorSearch(queryEmbedding: number[], topK: number) | Array<{ chunk: CodeChunk; score: number }> |
getMerkle | getMerkle() | Map<string, string> |
setMerkle | setMerkle(merkle: Map<string, string>) | void |
Where it refuses work
VectorStorestops the work with an early return whenqueryEmbedding.length === 0.
When something fails
VectorStorehandles failure in 3 places: it logs it and continues in 1, turns it into a return value in 1, and discards it silently in 1. A failure discarded silently leaves no trace for whoever debugs this later.
Was this page helpful?