POST /api/v1/query/semantic embeds your question and returns code ranked by vector cosine similarity, enabling intent-based search across indexed repositories.
Semantic search lets you describe what you are looking for in plain English rather than knowing the exact identifier. BugViper passes your question through the same embedding model used during ingestion, then queries the Neo4j vector indexes to find code nodes whose embeddings are closest to your query vector. No large language model is involved — results are pure vector cosine similarity rankings. This means results reflect structural and semantic similarity to your question, not an AI-generated interpretation of it.
Natural language description of what you are looking for. For example: "function that calculates cyclomatic complexity" or "class responsible for embedding model configuration".
Semantic search requires embeddings to be generated for the repository. If you get zero results, run POST /api/v1/ingest/{owner}/{repo_name}/embed first to generate embeddings. See the ingest endpoints for details.