Ragflow API Client
Universal client for Ragflow API enabling dataset management, document upload, and running chat queries against self-hosted RAG knowledge bases.
angusthefuzz
@angusthefuzz
What This Skill Does
Command-line client for Ragflow's REST API to manage datasets, upload documents, and run chat queries against self-hosted RAG knowledge bases.
Replaces building custom API integrations for Ragflow by providing a ready-to-use CLI for dataset management, document ingestion, and retrieval queries.
When to Use It
- Create a new knowledge base dataset for a project
- Upload a PDF or markdown document to a dataset
- Run a RAG query against a dataset to retrieve relevant answers
- List all existing datasets in your Ragflow instance
- Trigger document parsing to make uploaded content searchable
- Delete an outdated dataset from the knowledge base
Install
$ openclaw skills install @angusthefuzz/ragflowRagflow API Client
Universal client for Ragflow — self-hosted RAG (Retrieval-Augmented Generation) platform.
Features
- Dataset management — Create, list, delete knowledge bases
- Document upload — Upload files or text content
- Chat queries — Run RAG queries against datasets
- Chunk management — Trigger parsing, list chunks
Usage
# List datasets
node {baseDir}/scripts/ragflow.js datasets
# Create dataset
node {baseDir}/scripts/ragflow.js create-dataset --name "My Knowledge Base"
# Upload document
node {baseDir}/scripts/ragflow.js upload --dataset DATASET_ID --file article.md
# Chat query
node {baseDir}/scripts/ragflow.js chat --dataset DATASET_ID --query "What is stroke?"
# List documents in dataset
node {baseDir}/scripts/ragflow.js documents --dataset DATASET_ID
Configuration
Set environment variables in your .env:
RAGFLOW_URL=https://your-ragflow-instance.com
RAGFLOW_API_KEY=your-api-key
API
This skill wraps Ragflow's REST API:
GET /api/v1/datasets— List datasetsPOST /api/v1/datasets— Create datasetDELETE /api/v1/datasets/{id}— Delete datasetPOST /api/v1/datasets/{id}/documents— Upload documentPOST /api/v1/datasets/{id}/chunks— Trigger parsingPOST /api/v1/datasets/{id}/retrieval— RAG query
Full API docs: https://ragflow.io/docs
Examples
// Programmatic usage
const ragflow = require('{baseDir}/lib/api.js');
// Upload and parse
await ragflow.uploadDocument(datasetId, './article.md', { filename: 'article.md' });
await ragflow.triggerParsing(datasetId, [documentId]);
// Query
const answer = await ragflow.chat(datasetId, 'What are the stroke guidelines?');
Top skills in this category
Self-Improving + Proactive Agent
@ivangdavilaSelf-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when...
ontology
@oswalpalashTyped knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linkin...
Humanizer
@biostartechnologyRemove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
Obsidian
@steipeteWork with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
YouTube Watcher
@michaelgatharaFetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.