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 | Description |
|---|---|---|---|
falcon-h1-arabic-7b |
Chat | 7B | Best price/quality (default) |
falcon-h1-arabic-34b |
Chat | 34B | Complex reasoning |
jais-2-8b |
Chat | 8B | Strong dialect understanding |
allam-7b |
Chat | 7B | Saudi Arabic, MSA |
bge-m3-arabic |
Embeddings | 568M | 1024-dim, 8192 context |
whisper-v3-arabic |
STT | 809M | Arabic speech recognition |
chatterbox-arabic |
TTS | ~1B | Arabic text-to-speech |
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.2.1.tar.gz
(8.2 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 rightnow_ai-0.2.1.tar.gz.
File metadata
- Download URL: rightnow_ai-0.2.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fb1709a39499f075997e8069bd1f0ebcdcf008ccac15b81caafb7b29cb67023
|
|
| MD5 |
07d9e14be3218e4b8f4fc4c98b44f763
|
|
| BLAKE2b-256 |
03d80b3b83dc0ec9609ab010f1c8bece34eaa2cd4d4c1e5ce555945ea848cc12
|
File details
Details for the file rightnow_ai-0.2.1-py3-none-any.whl.
File metadata
- Download URL: rightnow_ai-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e38e40d1423ab04c2a89cbdb0977b2b10cc4198c98e19f529491936909d9666
|
|
| MD5 |
88668fa103db86aa0a4008a306428411
|
|
| BLAKE2b-256 |
7f181935fb7c36aaddf42ae1e1a6f08f9caf8126fa354f3fadfa7f7514fc60be
|