JamAI Base: Let Your Database Orchestrate LLMs and RAG
Project description
JamAI Base: Let Your Database Orchestrate LLMs and RAG
Usage
JamAI Client
You can use JamAI
to call into all of the APIs using Python. It has complete type-hinting for easy development in an IDE.
from jamaibase import JamAI
client = JamAI()
print(client.api_base)
API base
The main parameter to change is api_key
(and api_base
for OSS) when instantiating the client, which can be changed in 3 ways (from highest priority to least priority):
-
Passing it as
str
argumentfrom jamaibase import JamAI # Cloud client = JamAI(api_key="...") print(client.api_base) # OSS client = JamAI(api_key="...", api_base="...") print(client.api_base)
-
Specifying it as environment variable named
JAMAI_API_KEY
andJAMAI_API_BASE
-
Specifying it in
.env
file asJAMAI_API_KEY
andJAMAI_API_BASE
OSS Setup
Please refer to our GitHub repo for details.
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
Built Distribution
File details
Details for the file jamaibase-0.0.1.tar.gz
.
File metadata
- Download URL: jamaibase-0.0.1.tar.gz
- Upload date:
- Size: 3.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5194c07f187d1b416fc2d598125b44349e26a30808f9daca5e8ce730d92eadff |
|
MD5 | b2135e532c2c0df815fd5a61716c09b2 |
|
BLAKE2b-256 | eb60776cd2c6e26cbc17e73d21340dcb8f5de16bc78295e53e9ca5d2debd5059 |
File details
Details for the file jamaibase-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: jamaibase-0.0.1-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46f6c072db188225a88c48de81981d5588c5c07377c7184a1dd961a0e803d71f |
|
MD5 | 414d86d7a29c6d1a1eef5daf1ee25c5f |
|
BLAKE2b-256 | aae5a755e06ff240e24839f4b82b92eb17c5cdf389039e6f92bd53823bc15d04 |