Skip to content

feat(semantic): native vectorization pipeline + brain import/export#4

Merged
mdheller merged 1 commit into
mainfrom
feat/semantic-vector-module
Jun 20, 2026
Merged

feat(semantic): native vectorization pipeline + brain import/export#4
mdheller merged 1 commit into
mainfrom
feat/semantic-vector-module

Conversation

@mdheller

Copy link
Copy Markdown
Member

Adds a native semantic module to HellGraph: embed → vector store on DocumentChunk atoms → cosine semantic search, plus precomputed-vector brain import/export (the offline-embed → inject product edge). Embed-agnostic (inject any EmbedFn). 6 unit tests pass. Built dist included.

…semantic search, brain import/export

Adds ts/src/semantic.ts: the vector pipeline as a first-class HellGraph capability.
- embedText / cosineSim / chunkText primitives (embed-agnostic via EmbedFn)
- putChunk + vectorizeDocument: store vectors on DocumentChunk atoms (canonical shape)
- semanticSearch(query, k, embed, {scope}): cosine over chunk vectors, lexical fallback
- importBrainShard / exportBrainShard: load/dump precomputed base64-float32 'brain'
- 6 unit tests (incl. idempotency, scope, injected-embedder)
@mdheller mdheller merged commit 08e7c0f into main Jun 20, 2026
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant