Business Copilot is a Python-based analytics toolkit designed to streamline business intelligence workflows, database interactions, and memory management for data-driven applications. The project is modular, extensible, and includes utilities for working with PostgreSQL, business analytics, and prompt engineering.
- Business Analytics Tools: Utilities for data analysis, business logic, and workflow automation.
- PostgreSQL Utilities: Simplified database connections, queries, and management.
- Memory Management: In-memory data handling for efficient analytics pipelines.
- Prompt Engineering: Tools for building and managing prompts for LLMs or AI agents.
- Jupyter Notebooks: Example notebooks for scoping and database testing.
src/
business_copilot/
biz_analytics/
db_tools.py # Database tools and helpers
main.py # Main analytics entry point
memory.py # In-memory data management
pgres_utils.py # PostgreSQL utilities
prompts.py # Prompt engineering utilities
schemas.py # Data schemas and models
utils.py # General utilities
notebooks/
1_scoping.ipynb # Scoping and project planning
2_postgres_test.ipynb # PostgreSQL integration tests
pyproject.toml # Project metadata and dependencies
uv.lock # Dependency lock file
README.md # Project documentation
-
Clone the repository:
git clone <your-repo-url> cd sql-chatbot
-
Install dependencies:
pip install -r requirements.txt
Or, if using Poetry or another tool, follow the instructions in
pyproject.toml
. -
(Optional) Set up your environment:
- Configure your database credentials and environment variables as needed.
-
Python Modules:
Import and use the modules in your own scripts:from business_copilot.biz_analytics import db_tools, main, memory
-
Jupyter Notebooks:
Explore thenotebooks/
directory for example workflows and database integration tests. -
Database Integration:
Usepgres_utils.py
anddb_tools.py
for connecting to and querying PostgreSQL databases.
Contributions are welcome! Please open issues or submit pull requests for improvements, bug fixes, or new features.
This project is licensed under the MIT License.
For questions or support, please open an issue in the repository.