Skip to main content

This package contains basejump-core as well as basejump[dev]. It's a convenience package to quickly import all basejump packages.

Basejump indexes a database and connects it with an AI data agent to chat with your data.

Key Features

  • ✅ Accuracy: Uses SQLglot to parse and validate queries, preventing hallucinated tables, columns, or filters
  • 🔒 Security: Role-based access control ensures users and AI agents only access provisioned data
  • ⚡ Fast Indexing: Redis vector database integration for rapid semantic search
  • 🗄️ Full Tracking: Pre-configured schema tracks chat history, clients, teams, users, and query results
  • 💾 Smart Caching: Support semantic caching for retrieval of datasets based on similar questions
  • 📦 Result Storage: Saves data results for later reference and auditing

Installation

Create a virtual environment and then install from PYPI:

pip install basejump

Example usage

A complete working example can be found in the basejump repo under basejump-demo/main.py. Here's the core functionality in just 10 lines:

async with service.run_session() as (core_session, db):
    service_context = service.create_service_context(core_session)
    user_info = await service.create_internal_user_info(db, service_context)
    connection = await service.setup_database(db, service_context, user_info, client_conn_params)
    await service.chat(
        db,
        "Provide a report of all clients.",
        service_context,
        user_info,
        connection,
    )

Next steps

Index your own database

Modify the client_conn_params in basejump-demo/settings to your own test database to explore how Basejump AI responds to your data.

Try Basejump Cloud

If you want to see the basejump open source project in action, you can check out https://basejump.ai/ to see how we implemented it. Docs on using the web interface can be found here: https://docs.basejump.ai/

The Basejump API docs can be found here: https://docs.basejump.ai/api/api-reference

Basejump would not be possible without all of the open source projects it is built on. The following are vital to the success of Basejump 👏

  • Llama Index: For AI data agents
  • SQLAlchemy: For database inspection and connections
  • SQLGlot: SQL query parsing
  • sql-ground: Checks the SQL the AI writes (tables, columns and filter values) before it runs

Supported Databases

The following databases are currently supported. If you don't see one, submit a PR to get yours added:

  • Postgres
  • Snowflake
  • Athena
  • MySQL
  • Redshift
  • SQL Server

Supported AI Models

Basejump is built on Llama Index and can theoretically support any AI models Llama Index supports. Adding support for a new model is relatively straightforward, so please request one if you don't see it.

Most of the LLMS from OpenAI and Anthropic are available via Azure and AWS respectively. Supported Claude models can be found here. Supported OpenAI models can be found here.

To add a new model to Basejump, just update the AIModelSchema in basejump.core.models.schemas and submit a PR.

Metadata

Release files for basejump 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for basejump 0.7.0
File Size Uploaded Provenance Actions
basejump-0.7.0.tar.gz 14.1 kB Without provenance Details for basejump-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for basejump 0.7.0
File Interpreter ABI Platform Actions
basejump-0.7.0-py3-none-any.whl Python 3 none any Details for basejump-0.7.0-py3-none-any.whl

Total release size: 28.4 kB

Release files / basejump-0.7.0.tar.gz

Download URL basejump-0.7.0.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7cbd483636be7e57da2418a4a200971326720ecad209f757b80330b761d01f3f
BLAKE2b-256 checksum
How to use checksums
ee4cda4cc074eb613bea0814b23b4337d61629ea502153188953786c5d57046d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.3

Release files / basejump-0.7.0-py3-none-any.whl

Download URL basejump-0.7.0-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0dbebb2f119a8bfcb9ee6f997babf41e1e22101aa18700f0d656ef01f56fa455
BLAKE2b-256 checksum
How to use checksums
15daf578104e5948f5f2c0efeb60b2bc295ca3aa4767b804cc5a6b4b6c5343f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.3

Security for basejump 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page