RAGFlow Async SDK Documentation๏ƒ

The RAGFlow Async SDK provides a Pythonic, asynchronous interface to interact with RAGFlow services. All operations are designed to be asynchronous and easy to integrate into modern Python workflows.

Quick Start๏ƒ

๐Ÿ’ฟ Installation

Requires Python 3.10+.

pip install ragflow-async-sdk

๐Ÿš€ Getting Started

All operations in the RAGFlow Async 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())