Skip to main content

RAGfly Python SDK

Official Python client for RAGfly — retrieval infrastructure for your AI agents.

Using TypeScript/JavaScript? See the TypeScript SDK (npm install @ragfly/sdk) — same surface.

Install

pip install ragfly

Quick start

from ragfly import RAGfly

client = RAGfly(api_key="slm_live_...")

# 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

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.2.tar.gz (4.6 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.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file ragfly-0.1.2.tar.gz.

File metadata

  • Download URL: ragfly-0.1.2.tar.gz
  • Upload date:
  • Size: 4.6 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.2.tar.gz
Algorithm Hash digest
SHA256 c77bf53d6aff0f0284927b02b623a53fb6b3d0b81df6374de3383f1d89cb67fd
MD5 b4d8fce42041d6486a5133a606c8a9ab
BLAKE2b-256 a093108e84ee764d77d3e6a2c4e796f14b52cf65cd006c3c360f17bf0b8de095

See more details on using hashes here.

File details

Details for the file ragfly-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ragfly-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 200feaa0c07c0d276fd9b4895b8ba3783e1a746079e5a2734276b3405165d6fb
MD5 829dff98613431e81ba3bc0b1ff2c5a0
BLAKE2b-256 dfdb93dadba02a1767501cf5757e8dcda835077e5e6e7432c8fd4ebac3511fbc

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 Sentry Error logging StatusPage Status page