Skip to main content

Python SDK for the Arabic API by RightNow — chat, embeddings, STT, TTS for Arabic

Project description

RightNow — Arabic AI SDK

Python SDK for the Arabic API by RightNow. Chat, embeddings, speech-to-text, and text-to-speech — all optimized for Arabic.

Install

pip install rightnow-ai

Quick Start

from rightnow import RightNow

client = RightNow(api_key="rn-...")

response = client.chat.completions.create(
    model="falcon-h1-arabic-7b",
    messages=[{"role": "user", "content": "ما هي عاصمة الأردن؟"}],
)
print(response.choices[0].message.content)

Streaming

stream = client.chat.completions.create(
    model="falcon-h1-arabic-7b",
    messages=[{"role": "user", "content": "مرحبا"}],
    stream=True,
)
for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")
stream.close()

Embeddings

response = client.embeddings.create(
    model="bge-m3-arabic",
    input="مرحبا بالعالم",
)
print(response.data[0].embedding[:5])

Async

from rightnow import AsyncRightNow

async with AsyncRightNow(api_key="rn-...") as client:
    response = await client.chat.completions.create(
        model="falcon-h1-arabic-7b",
        messages=[{"role": "user", "content": "مرحبا"}],
    )

Available Models

Model Type Size
falcon-h1-arabic-3b Chat 3B
falcon-h1-arabic-7b Chat 7B
falcon-h1-arabic-34b Chat 34B
bge-m3-arabic Embeddings 568M
whisper-v3-arabic Speech-to-Text 809M
chatterbox-arabic Text-to-Speech ~1B

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

rightnow_ai-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

rightnow_ai-0.1.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file rightnow_ai-0.1.0.tar.gz.

File metadata

  • Download URL: rightnow_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for rightnow_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f1deb66f1d2dccbaefa363cd4c69d1fa41eb1bda9416176ca789cff7bb4aa8ac
MD5 6d6d5a0590c11f6b495c1374ddd06415
BLAKE2b-256 88d9a4d30da794c38beab8d97cd154655e4f651d1acf54837ff0d8427f517d08

See more details on using hashes here.

File details

Details for the file rightnow_ai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rightnow_ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for rightnow_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf6ff279c588d8c8ec0cea5b9774c964cab967b9a0732346dfab74d6bc23a16c
MD5 5f344473755a62f95e096300df4e3d79
BLAKE2b-256 21f82acb032a251776676675254c5d03b00308c670bc290256b2f864a22fb9bc

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