Hybrid Search
search_hybridRetrieve suttas about a concept even when different vocabulary is used. Combines keyword and semantic search to find relevant discourses, ideal for topic exploration.
Instructions
Hybrid search — combines keyword + semantic search via RRF.
Uses Reciprocal Rank Fusion (RRF) to merge exact-word results with
meaning-based results. This is the recommended tool for "discourses
about X" / concept queries, because the semantic side catches suttas
that discuss a concept using different vocabulary (e.g. some
mindfulness-of-breathing suttas use assasati/passasati/dīghaṁ
instead of ānāpānassati).
💡 Hints for the AI client:
English queries usually work best (e.g.
mindfulness of breathing) because the embedding model is multilingual but EN-primary.Thai stop-word handling is weak. If a Thai query underperforms, the AI client should translate to Pāli/English first (see server instructions).
The default
limit=5is often too small for a topic survey — uselimit=15-20(max 20) for good coverage.Ranking is by similarity, NOT canonical importance — locus classicus suttas (e.g. MN118, DN22) may rank below smaller suttas that happen to use the exact vocabulary. Treat results as a starting point, then call
get_suttafor the canonical references.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Query text (Thai, Pāli, or English — English works best). | |
| language | No | Output language — "pali", "thai", "english", or "all". | pali |
| limit | No | Maximum results (default: 5, max: 20). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |