Skip to main content

Python SDK for the Ziqara citation-backed RAG API

Project description

Ziqara Python SDK

Python SDK for the Ziqara v1 API.

pip install ziqara
from ziqara import Ziqara

client = Ziqara(api_key="zq_live_...")
response = client.answers.create(query="What is our refund policy?", model="ziqara-1.0")
print(response["answer"])

chunks = client.search.create(query="refund policy", top_k=5)
print(chunks["results"][0]["content"])

You can also set ZIQARA_API_KEY and optionally ZIQARA_BASE_URL.

Publish

Use a PyPI API token or Trusted Publishing. Do not commit tokens.

python -m build
python -m twine upload dist/*

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

ziqara-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

ziqara-0.1.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ziqara-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ziqara-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c38606a73354981b2c0c3d3f840b992930879d29d20653d9bd01abc6d227211d
MD5 4817e9e313b4eee5a2450feac218bf7c
BLAKE2b-256 f7be8ad9c49b3a44eb758b7db2aac431cb0b1ead0d6787c9b2acdf796362baed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ziqara-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ziqara-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9791078a98e6e476451dc83980cec06f0f602e29845a43b0ed15ba682e342b53
MD5 96906c263a977dd3ccb9a22f1088d818
BLAKE2b-256 c16d0da8a03eaac7c557c1685301fc81d79192a7a1c8dd6604594942d5b2fcca

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