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

📝 User Guide

⚡ FastAPI Integration

🧩 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.1.tar.gz (57.7 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.1-py3-none-any.whl (51.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ragflow_async_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 57.7 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.1.tar.gz
Algorithm Hash digest
SHA256 e4f1146ffcbee16be0567c13d7588fabf3f54237cb867b005bec62108d157aac
MD5 7b65538eff4aae88ac5224738b976363
BLAKE2b-256 15601ff303b533585076cd032a1a6fc5a2ffda27939850b1fc40004e69eb6995

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ragflow_async_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42af25ef776786e2a0d2fc57325a18fdd2c5f14678471dbf138b860fd5eaf8cb
MD5 c3566df1d1da5ed8b195b4ae0a14f1dc
BLAKE2b-256 300a75ad3aa2290831c50b8a92c38a87d3fef5ec6593a83a379f1f8254d0a752

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