Skip to main content

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-core

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 👏

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-core 0.33.1

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-core 0.33.1
File Size Uploaded
basejump_core-0.33.1.tar.gz 135.8 kB Details

Built distribution (wheel)

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

Total release size: 319.4 kB

Release files / basejump_core-0.33.1.tar.gz

Download URL basejump_core-0.33.1.tar.gz
Size 135.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6a966b2c30e8987f9c5484a3d1c00f49798890692372966c2c7d91e4c288f647
BLAKE2b-256 checksum
How to use checksums
3121a7f46e3376a5d0fa1f6b14d1d58df21c49dd2bad1cabcfca9ba216d54386
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / basejump_core-0.33.1-py3-none-any.whl

Download URL basejump_core-0.33.1-py3-none-any.whl
Size 183.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f03795041e2fe0958b452cae3336743a56034deb8b6ba804c95a4e0331bf4db0
BLAKE2b-256 checksum
How to use checksums
e8161b5ba0f8f7b61aa21817f21c1d71634466848258d03740585d1f0ea63c47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.33.1 This release

2 release files

0.33.0

2 release files

0.32.3

2 release files

0.32.2

2 release files

0.32.1

2 release files

0.32.0

2 release files

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