Aita
AI Powered Data Agent, a comprehensive solution for data analysis, engineering, and visualization.
Tech Stack
Our platform leverages a combination of cutting-edge technologies and frameworks:
- Langchain: Facilitates the seamless integration of language models into application workflows, significantly enhancing AI interaction capabilities.
- Reflex: An open-source framework for quickly building beautiful, interactive web applications in pure Python
- Apache Arrow: A cross-language development platform for in-memory data that specifies a standardized language-independent columnar memory format for flat and hierarchical data, organized for efficient analytic operations on modern hardware like CPUs and GPUs.
- Jupyter Ai Magics: A JupyterLab extension that provides a set of magics for working with AI models.
Installation
Simply install the package using pip:
pip install aita
Or with extra dependencies:
pip install aita[snowflake]
Example
Below is an example of using SqlAgent to connect to a PostgreSQL database and ask a question. You can read more details in the documentation.
from aita.agent.sql import SqlAgent
from aita.datasource.postgresql import PostgreSqlDataSource
# Connect to a PostgreSQL database
datasource = PostgreSqlDataSource("postgresql://user:password@localhost:5432/dbname")
# Create a SQL agent
sql_agent = SqlAgent("gpt-3.5-turbo").add_datasource(datasource)
# ask question to the agent
sql_agent.stream("What is the total number of orders?")
Supported Models
Model provider are supported by jupyter ai magics. Ensure the corresponding environment variables are set before using the Aita agent.
| Provider | Provider ID | Environment variable(s) | Python package(s) |
|---|---|---|---|
| AI21 | ai21 |
AI21_API_KEY |
ai21 |
| Anthropic | anthropic |
ANTHROPIC_API_KEY |
langchain-anthropic |
| Anthropic (chat) | anthropic-chat |
ANTHROPIC_API_KEY |
langchain-anthropic |
| Bedrock | bedrock |
N/A | boto3 |
| Bedrock (chat) | bedrock-chat |
N/A | boto3 |
| Cohere | cohere |
COHERE_API_KEY |
cohere |
| ERNIE-Bot | qianfan |
QIANFAN_AK, QIANFAN_SK |
qianfan |
| Gemini | gemini |
GOOGLE_API_KEY |
langchain-google-genai |
| GPT4All | gpt4all |
N/A | gpt4all |
| Hugging Face Hub | huggingface_hub |
HUGGINGFACEHUB_API_TOKEN |
huggingface_hub, ipywidgets, pillow |
| NVIDIA | nvidia-chat |
NVIDIA_API_KEY |
langchain_nvidia_ai_endpoints |
| OpenAI | openai |
OPENAI_API_KEY |
langchain-openai |
| OpenAI (chat) | openai-chat |
OPENAI_API_KEY |
langchain-openai |
| SageMaker | sagemaker-endpoint |
N/A | boto3 |
Supported Data Sources
- Snowflake
- Sqlite
- BigQuery
- Postgres
- MySQL
- Redshift
- DynamoDB
- File (CSV, Excel, Parquet, etc.)
Supported Engines
- Apache Spark
- Apache Flink
- Presto
- Ray.io: A distributed computing framework that efficiently scales AI tasks and data processing across clusters, improving performance and resource utilization.
🛡 License
This project is licensed under the terms of the Apache Software License 2.0 license. See LICENSE for more details.
Metadata
Release files for aita 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aita-0.1.5.tar.gz | 64.8 kB | Without provenance | Details for aita-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aita-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for aita-0.1.5-py3-none-any.whl |
Total release size: 153.2 kB
Release files / aita-0.1.5.tar.gz
| Download URL | aita-0.1.5.tar.gz |
|---|---|
| Size | 64.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c3ce3b890d2534976643d81cf0f48e0463698392a123700d8c98a3ada481dcf
|
|
BLAKE2b-256 checksum How to use checksums |
c1188e4300b6bc60afd7918a432a515f99fd604617c19d378b9a4a8254c4f08a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Darwin/23.0.0
|
Release files / aita-0.1.5-py3-none-any.whl
| Download URL | aita-0.1.5-py3-none-any.whl |
|---|---|
| Size | 88.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5760d473c4243b74b1357ecfa0c31c08f0104bdc1adef7006346e8cf920f625
|
|
BLAKE2b-256 checksum How to use checksums |
269775135e1a192a0187359d68f1a76eb71b62d895dc4be6c6009a575132a075
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Darwin/23.0.0
|
Security for aita 0.1.5
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.