Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

Update README.md to include runnable python SDK example

David Jones-Gilardi573b151c2f39
diff --git a/README.md b/README.md
index 737544caf..5bed979ed 100644
--- a/README.md
+++ b/README.md
@@ -106,11 +106,18 @@ pip install openrag-sdk
**Quick Example:**
```python
+import asyncio
from openrag_sdk import OpenRAGClient
-async with OpenRAGClient() as client:
- response = await client.chat.create(message="What is RAG?")
- print(response.response)
+
+async def main():
+ async with OpenRAGClient() as client:
+ response = await client.chat.create(message="What is RAG?")
+ print(response.response)
+
+
+if __name__ == "__main__":
+ asyncio.run(main())
```
📖 [Full Python SDK Documentation](https://pypi.org/project/openrag-sdk/)