Skip to main content

Overview

Combines vector (semantic) search with graph-structural scoring into a single ranked result set. The final score is a weighted blend:
If no graph index exists, hybrid_search degrades gracefully to pure vector search — identical to search_code.

Parameters

Example

Returns:

When to use

Notes

  • Index the graph first with index_graph to unlock the graph component; without it, results are identical to search_code
  • Average ~3,324 tokens per result set (~87% reduction vs raw file reads)
  • Average latency ~76ms
  • Tune alpha toward 0.0 to weight structural connectivity more heavily; toward 1.0 for pure semantic relevance