Skip to main content

Error reference


Common scenarios

Search results are irrelevant

  • Try hybrid search: lower alpha for more keyword matching (default is 0.8):
  • Check document chunking: very long documents dilute embedding signal. Aim for 200-500 tokens per chunk.
  • Switch models: try moss-mediumlm for higher accuracy.

SDK error behaviour

  • Most methods throw if the target index does not exist.
  • createIndex() throws if the index already exists.
  • loadIndex() throws if the index does not exist in cloud storage or loading fails. With a cachePath (cache_path in Python) and a snapshot already on disk, it serves that snapshot instead when the cloud is unreachable or answers with a temporary error, while a 401, 403 or 404 still throws. (Python moss 1.14.0+, @moss-js/moss 1.15.0+)
If a job reaches "failed", its JobStatusResponse.error will be non-null. The job’s currentPhase (see JobPhase) can hint at where it failed - a job stuck on downloading usually means a network issue.

Still stuck?