Back to Registry
View Author Profile
Official Verified
Ragie Rag
Skill by hatim-be
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/hatim-be/ragie-ragOr
name: ragie-rag description: | Execute Retrieval-Augmented Generation (RAG) using Ragie.ai. Use this skill whenever the user wants to:
- Search their knowledge base
- Ask questions about uploaded documents
- Upload documents to Ragie
- Retrieve context from Ragie
- Perform grounded answering using stored documents
- List, check status, or delete Ragie documents
This skill manages the full Ragie.ai API lifecycle including ingestion, retrieval, and grounded answer construction. metadata: { "openclaw": { "requires": { "bins": ["python3"], "env": ["RAGIE_API_KEY"], "python": ["requests", "python-dotenv"] }, "credentials": { "primary": "RAGIE_API_KEY", "description": "API key from https://app.ragie.ai" } } }
Ragie.ai RAG Skill (OpenClaw Optimized)
This skill enables grounded question answering using Ragie.ai as a RAG backend.
Ragie handles:
- Document chunking
- Embedding
- Vector indexing
- Retrieval
- Optional reranking
The agent handles:
- Deciding when to ingest
- Triggering retrieval
- Constructing grounded prompts
- Producing final answers
Core Principles
- Never answer without retrieval.
- Never hallucinate information not present in retrieved chunks.
- Always cite the
document_namewhen referencing specific facts. - If retrieval returns zero relevant chunks, explicitly say:
"I don't have that information in the current knowledge base."
- Do not expose API keys or raw API payloads in final answers.
Deterministic Workflow
Case A — User Provides a File or URL
IF the user provides:
- A file
- A document path
- A PDF/URL to ingest
THEN:
-
Execute ingestion:
python `skills/scripts/ingest.py` --file <path> --name "<document_name>"OR
python `skills/scripts/ingest.py` --url "<url>" --name "<document_name>" -
Capture returned
document_id. -
Poll document status:
python `skills/scripts/manage.py` status --id <document_id>Repeat until status ==
ready. -
Proceed to Retrieval (Case C).
Case B — User Requests Document Management
List documents
python `skills/scripts/manage.py` list
Check document status
python `skills/scripts/manage.py` status --id <document_id>
Delete a document
python `skills/scripts/manage.py` delete --id <document_id>
Return structured results to the user.
Case C — Retrieval (Grounded Question Answering)
Execute:
python `skills/scripts/retrieve.py` \
--query "<user_question>" \
--top-k 6 \
--rerank
Optional flags:
--partition <name>--filter '{"key":"value"}'
Retrieval Output Format
Expected output:
[
{
"text": "...",
"score": 0.87,
"document_name": "Policy Handbook",
"document_id": "doc_abc123"
}
]
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-hatim-be-ragie-rag": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.