Skip to main content

Async Python SDK for RAGFlow

Project description

RAGFlow Async SDK

Overview

An async-first Python SDK for interacting with the RAGFlow API.

Provides clean, typed, and production-ready access to RAGFlow features such as:

  • Dataset & document management
  • Document chunking & ingestion
  • File & folder management
  • Knowledge Graph (GraphRAG)
  • Background tasks (parsing, knowledge construction)
  • Chat & Agent sessions with streaming (SSE) support

⚡ Quick Start

💿 Installation

Requires Python 3.10+.

pip install ragflow-async-sdk

🚀 Getting Started

All operations in the RAGFlow SDK are asynchronous. To use the SDK, first initialize the client and then run async calls inside Python's asyncio event loop.

🛠 Initialization

from ragflow_async_sdk import AsyncRAGFlowClient

client = AsyncRAGFlowClient(
    server_url="http://your-ragflow-address",
    api_key="YOUR_API_KEY",
)

⏩ Run with asyncio

import asyncio

async def main():
    # Example: Health check
    system_health = await client.systems.healthz()
    print(system_health.status)

# Run the async main function
asyncio.run(main())

Notes:

All SDK calls are async; use await and async for as needed.


📚 Documentation

See the quick usage guide here:

👉 User Guide

🧩 Main Modules

📖 Full API Reference

💡 Error Reference

🧬 Entities Reference

🧪 Testing


License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ragflow_async_sdk-0.1.0.tar.gz (55.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ragflow_async_sdk-0.1.0-py3-none-any.whl (51.3 kB view details)

Uploaded Python 3

File details

Details for the file ragflow_async_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: ragflow_async_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 55.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for ragflow_async_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b96e05701920c5b5857c0146dc645ea04b6be0b25f55baa736c18c3353cde336
MD5 8e551e3ad8af2aae5e384945046f5896
BLAKE2b-256 fc208c47289bff732cb3e2be2c62b751ab1c303d9e532536cd24ea932bd00d06

See more details on using hashes here.

File details

Details for the file ragflow_async_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ragflow_async_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f71a4ec3ff89c28a0e7d69569bd9e83737788736eb6e118b9aed3209472cee
MD5 bf0eeb396e516913b44db9ee97a61274
BLAKE2b-256 9014b6cd2b98edd64f1757a46c6d7017c53c05f22cd731f07268883578d7c5e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page