Search poems by meaning
gj_semantic_searchFind classical Persian poems by meaning or theme using embedding search; returns match scores, summaries, and opening couplets, and falls back to full-text search when the semantic index is unavailable.
Instructions
Find poems by meaning or theme (embedding search), with score, summary and first couplets.
Falls back to full-text search when the semantic index is down.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "gj_semantic_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What the poem is about, in Persian or English. | |
| top_k | No | How many poems to return. |