You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 14, 2026. It is now read-only.
Repository navigation
Commit 387ffa4
Browse filesBrowse the repository at this point in the historyBrowse files
Tanase Butcaru
committed
fix(data-access): document the semantic-index helpers in the README (LLMO-7445)
See the package`CLAUDE.md` ("URL Index") for the canonicalization, single-writer, and site-scoping contracts.
142
142
143
+
## Semantic Index
144
+
145
+
For the topic vector index (`opportunity_semantic_embedding`) and the global query-embedding cache (`semantic_query_embedding`), use the shared helpers so the writer and reader share one text normalization and one storage path. They store and read pre-embedded vectors; embedding is the caller's job (e.g. `AzureEmbeddingClient` from `@adobe/spacecat-shared-gpt-client`).
The batched helpers group their calls internally (search in groups of up to 20 vectors, cache reads/touches in groups of 50 hashes), so callers pass whole lists rather than looping per item.
176
+
143
177
## Field Mapping Behavior
144
178
145
179
Public model API remains camelCase while Postgres/PostgREST tables are snake_case.
0 commit comments