Skip to main content

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

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

ragfly-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

ragfly-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for ragfly-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5f78a7a284dd6301f31ac371a78b14806ef06ee8cecf8587b524c8aadd606993
MD5 8ee2eabd782bd2ec12b306a9e9039210
BLAKE2b-256 4c35b101186073e6f63688bf96af3a751fc973a3983156e8e9e37a52b62f2967

See more details on using hashes here.

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

Hashes for ragfly-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5714bbe830d8d5106b6662965ee9a6ce278ffbf996410de1a5e453d044687f58
MD5 139154718469d6b19c92b391025b69a1
BLAKE2b-256 7b999e60ccc4ea318e0e8b040087917aea0af60761559f91859df135f6f32e0c

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