RAGfly Python SDK — retrieval infrastructure for your AI agents
Project description
RAGfly Python SDK
Official Python client for RAGfly — retrieval infrastructure for your AI agents.
Install
pip install ragfly
Quick start
from ragfly import RAGfly
client = RAGfly(api_key="rfly_...")
# Ask a question (RAG end-to-end)
resp = client.ask("What are the Q1 sales figures?")
print(resp.answer)
# Streaming
for chunk in client.ask("Summarize active contracts", stream=True):
print(chunk.delta, end="", flush=True)
# Semantic search (retrieval only)
results = client.search("maintenance contracts", limit=5)
for doc in results.documents:
print(doc.nombre, doc.similitud_max)
API Keys
Generate an API key from app.ragfly.ai → Settings → API Keys.
Methods
| Method | Description |
|---|---|
client.ask(question, *, stream=False, conversation_id=None) |
RAG end-to-end: retrieve + generate |
client.search(query, *, limit=10, min_similitud=0.0) |
Hybrid retrieval (vector + lexical + rerank) |
client.list_documents(*, page=1, page_size=20) |
List corpus documents |
Links
- Docs: https://api.ragfly.ai/docs
- Site: https://ragfly.ai
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ragfly-0.1.0.tar.gz
(4.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ragfly-0.1.0.tar.gz.
File metadata
- Download URL: ragfly-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f78a7a284dd6301f31ac371a78b14806ef06ee8cecf8587b524c8aadd606993
|
|
| MD5 |
8ee2eabd782bd2ec12b306a9e9039210
|
|
| BLAKE2b-256 |
4c35b101186073e6f63688bf96af3a751fc973a3983156e8e9e37a52b62f2967
|
File details
Details for the file ragfly-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ragfly-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5714bbe830d8d5106b6662965ee9a6ce278ffbf996410de1a5e453d044687f58
|
|
| MD5 |
139154718469d6b19c92b391025b69a1
|
|
| BLAKE2b-256 |
7b999e60ccc4ea318e0e8b040087917aea0af60761559f91859df135f6f32e0c
|