Skip to main content

AI data agents to chat with your data

Project description

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

Related Projects

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 :clap:

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.

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

basejump-0.1.7.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

basejump-0.1.7-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file basejump-0.1.7.tar.gz.

File metadata

  • Download URL: basejump-0.1.7.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for basejump-0.1.7.tar.gz
Algorithm Hash digest
SHA256 3f7e04c8db160056bad69114f6f439c267ea9e452b989a406d3cd4ce5a0cb38b
MD5 66aea41889f4c522ff81502831ef4c26
BLAKE2b-256 24f8e0187dcade0d8d0556c30e0c0965aa365ed624f27ff8cd0f2fdce5c32b9a

See more details on using hashes here.

File details

Details for the file basejump-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: basejump-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for basejump-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 056547a7b5f24ae00c45830c2b0d1fc1c52893fc516abfb38ccb32d878412693
MD5 c71e3f9d4ad8277e30bbf7593ca30bcb
BLAKE2b-256 119c518712df41da203a08e5b7ab595ef55d67d33eaeaa2ce709fa7f503aebc1

See more details on using hashes here.

Supported by

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