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.1.0.tar.gz
.
File metadata
- Download URL: jamaibase-0.1.0.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 | 0dda02a9188758180517de6c6cf381f3cc1b55f740388ac78a58ac4bdbcb8eef |
|
MD5 | 072dd511adb473b7f2a0a62a5f1f3756 |
|
BLAKE2b-256 | 67216c28720243b82fd1fcd439eb06c6a47ecb73570fda732e50bc72f66af5b4 |
File details
Details for the file jamaibase-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: jamaibase-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.5 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 | dea0b6837c9c5d3625b9247c21e0ec108ff9432b7e63ca809036f1fd7b6f9700 |
|
MD5 | a79f7149a240b0fdc98fea212b44b6d0 |
|
BLAKE2b-256 | b0547dce58ad368dc4d7f663583f220048fc151ff2a7cc2c1b5d08debb051b22 |