RAGFlow is an open-source Retrieval-Augmented Generation engine that combines document retrieval, context management, and agent capabilities to help build AI applications. Developers use it to turn complex data into searchable, context-aware systems through workflows, datasets, and agent templates; the catalogue entries support working with RAGFlow.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add infiniflow/ragflow --skill ragflow-python-sdkgit clone --depth 1 https://github.com/infiniflow/ragflowWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/infiniflow/ragflow/ragflow-python-sdk)<a href="https://agentmods.dev/skills/infiniflow/ragflow/ragflow-python-sdk"><img src="https://agentmods.dev/badge/skills/infiniflow/ragflow/ragflow-python-sdk/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/infiniflow/ragflow/ragflow-python-sdk"><img src="https://agentmods.dev/badge/skills/infiniflow/ragflow/ragflow-python-sdk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00064 | $0.01004 |
| Opus 5.5 | $0.00026 | $0.00402 |
| Sonnet 5.5 | $0.00013 | $0.00201 |
| Haiku 4.5 | $0.00006 | $0.00100 |
Grade A, and why
ragflow-python-sdk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RAGFlow Python SDK
References: docs/references/python_api_reference.md,
docs/references/http_api_reference.md, sdk/python/ragflow_sdk/.
python3.13 -m pip install "ragflow-sdk>=1.0.0,<2" openai
The repository SDK is version 1.0.0 and requires Python 3.13.
import os
from ragflow_sdk import RAGFlow
rag = RAGFlow(api_key=os.environ["RAGFLOW_API_KEY"], base_url="http://localhost:9380")
Ingest
dataset = rag.create_dataset(name="handbook") # parser_id="table" etc. for other chunk methods
with open("policy.pdf", "rb") as f:
docs = dataset.upload_documents([{"display_name": "policy.pdf", "blob": f.read()}])
ids = [d.id for d in docs]
for doc_id, status, chunks, tokens in dataset.parse_documents(ids): # blocks until done
print(doc_id, status, chunks, tokens)
if status != "DONE":
raise RuntimeError(f"parse failed for {doc_id}: {status}")
parse_documents yields DONE, FAIL, or CANCEL as status rather than
raising on failure; stop or report unless the status is DONE.
Use dataset.async_parse_documents(ids) to start parsing without waiting.
Uploading alone does not make documents searchable; they must be parsed.
avatar/description are set afterwards with dataset.update(...).
Retrieve
chunks = rag.retrieve(
dataset_ids=[dataset.id],
question="How many vacation days do new hires get?",
page_size=10,
similarity_threshold=0.2,
vector_similarity_weight=0.3,
)
for c in chunks:
print(c.content)
All document_ids passed together must share an embedding model.
Chat
assistant = rag.create_chat("Handbook bot", dataset_ids=[dataset.id])
session = assistant.create_session()
# ask() always yields Message objects; consume with next() when stream=False.
answer = next(session.ask("How many vacation days do new hires get?", stream=False))
print(answer.content)
# Streaming yields intermediate content then a final full answer; take the last.
parts = list(session.ask("And after five years?", stream=True))
print(parts[-1].content)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 121 lines · 64 tokens per session scan A d2468d8c1f1f
ragflow-python-sdk is a skill published in the GitHub repository infiniflow/ragflow (95,209 stars, last pushed today), licensed Apache-2.0. It adds 64 tokens to every session and 1,004 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-03.
ragflow-python-sdk compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ragflow-python-sdkinfiniflow/ragflow | Skill | 95k | today | Apache-2.0 | A | 64 | Claude Code |
| ragericrisco/rsc-harness | Skill | 709 | 3d ago | MIT | A | 79 | Claude Code, Codex |
| pinecone-quickstartpinecone-io/pinecone-cursor-plugin | Skill | 3 | 23d ago | MIT | A | 94 | Cursor |
| pinecone-n8npinecone-io/pinecone-cursor-plugin | Skill | 3 | 23d ago | MIT | A | 67 | Cursor |
| pinecone-full-text-searchpinecone-io/pinecone-cursor-plugin | Skill | 3 | 23d ago | MIT | A | 179 | Cursor |
| pinecone-clipinecone-io/pinecone-cursor-plugin | Skill | 3 | 23d ago | MIT | A | 74 | Claude Code, Cursor |
| pinecone-helppinecone-io/pinecone-cursor-plugin | Skill | 3 | 23d ago | MIT | A | 52 | Cursor |