Skip to main content

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 argument

    from 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 and JAMAI_API_BASE

  • Specifying it in .env file as JAMAI_API_KEY and JAMAI_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

jamaibase-0.0.1.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

jamaibase-0.0.1-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

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

Hashes for jamaibase-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5194c07f187d1b416fc2d598125b44349e26a30808f9daca5e8ce730d92eadff
MD5 b2135e532c2c0df815fd5a61716c09b2
BLAKE2b-256 eb60776cd2c6e26cbc17e73d21340dcb8f5de16bc78295e53e9ca5d2debd5059

See more details on using hashes here.

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

Hashes for jamaibase-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46f6c072db188225a88c48de81981d5588c5c07377c7184a1dd961a0e803d71f
MD5 414d86d7a29c6d1a1eef5daf1ee25c5f
BLAKE2b-256 aae5a755e06ff240e24839f4b82b92eb17c5cdf389039e6f92bd53823bc15d04

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page