Skip to main content

Error dict shape

Stage methods do not raise on per-item failures. Instead they collect failures in the result’s errors list. Each error is a dict:
FieldDescription
sourceSource identifier (URL, file path, or chunk ID)
source_kind"url", "file", "chunk", etc.
stagePipeline stage where the failure occurred
errorError message
isRetryableWhether the failure is safe to retry
attemptsNumber of attempts made

Common setup errors

MessageCauseFix
... requires optional dependenciesA provider or URL extra is not installedInstall the matching extra, e.g. pip install "ragrails[url]" or "ragrails[voyage]"
VOYAGE_API_KEY environment variable not setMissing embedding credentialsSet the provider environment variable
URL ingestion requires ...Browser support not installedRun rag.setup_url() or ragrails setup-url
Collection requiredVector DB needs a collection/index/classPass collection
Connection refusedVector DB not running or wrong URLStart the database and check url

Retrying scrape failures

URL scrape failures with isRetryable: true are captured in a dead-letter queue and can be retried by passing result.dlq or a saved file path back to scrape().