Using RAG
RAG is the standard way to make Eldric answer from your own documents instead of relying only on model training.
Upload documents#
Create or select a knowledge base, upload supported documents and wait until indexing finishes. For larger uploads, use the public upload and vector ingest endpoints.
curl
curl -X POST https://<your-eldric-host>/api/v1/vector/ingest \
-H "X-API-Key: $ELDRIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tenant":"acme","namespace":"policies","source":"uploaded-document"}'
Ask grounded questions#
Select the knowledge base in chat or call the API with the intended namespace. When retrieval finds relevant passages, the response should include citation context.
Troubleshooting#
- Confirm indexing is complete.
- Confirm the caller has access to the tenant and knowledge base.
- Try language that appears in the source document.
- Check known issues for current retrieval limitations.