rest

Verify a Rumi quote against the corpus (anti-hallucination)

Given a candidate quote attributed to Rumi's Masnavi, check whether it actually appears. Returns status='exact' (with citation), 'fuzzy' (with similar candidates), or 'not_found'. Call this BEFORE repeating any quote you're not certain about.

get/api/verify

Request

  • Base URL: https://masnavi.ai
  • URL: https://masnavi.ai/api/verify
  • Auth: none declared

Query parameters

textstring required

Candidate Rumi quote in Persian.

Example:بشنو این نی چون شکایت می‌کند
fuzzy_thresholdnumber

Minimum similarity for fuzzy match (0.5-1.0).

Response

Successful Response

statusstring required

'exact', 'fuzzy', or 'not_found'

notesstring
query_normalizedstring

Changes

No recorded changes to this operation across all 1 revision of this API.