Skip to content

Semantic API

The Semantic surface searches the corpus by meaning rather than literal terms. It runs dense (PrIx-native μ embeddings) and sparse (TF-IDF) vectors over the same passages, then fuses them with Reciprocal Rank Fusion. Use it when the caller has a question or a fragment of plain text instead of a precise KWS query. Passage segmentation is exposed via the same surface because it shares the embedding store.

MethodPathSummaryKey paramsResponse
POST/semantic/explainPer-line evidence for a set of pagesbody: ExplainRequestExplainResponse
POST/semantic/searchSemantic search (dense embedding + optional sparse hybrid)body: SemanticSearchRequestSemanticSearchResponse
POST/semantic/search-with-linesSemantic search + per-line evidence in one callbody: SearchWithLinesRequestSearchWithLinesResponse

Semantic search by free text

Terminal window
curl -H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "plague outbreak measures", "limit": 20}' \
"$ARCHAIC/semantic/search"