Semantic Search
All endpoints on this page require the operations bearer token:
They use two distinct stores. Hybrid and ontology search read FalkorDB. Embedding search reads the locally generated DuckDB embedding store and calls the configured embedding provider for the query vector.
Find functions by ontology
Resolve an ontology URI or a case-insensitive concept name, then return the Function exemplars mapped to it.
404 means the concept could not be resolved. 503 means FalkorDB is unavailable.
Hybrid code search
Search Function or Class nodes by full text (bm25), vector similarity (vector), or reciprocal-rank fusion (hybrid, the default). Function searches can be narrowed by enriched domain, ontology mapping, mapping confidence, and test coverage.
For Function results, score is the source relevance score plus half of the highest matching ontology confidence. ontology_matches is always present, including as an empty array.
Search generated embeddings
This endpoint compares the embedded query with rows in function_embeddings, sorted by descending cosine similarity. It does not require FalkorDB.
The checked-in Railway image does not ship data/enrichment.duckdb, and no
production data volume is currently configured. Use this endpoint locally,
or mount a populated enrichment.duckdb into $DATA_DIR before enabling it
in another environment. Without that database the endpoint returns 503.
503 means the local embedding database is unavailable. 500 means the query could not be embedded.