Skip to content

bagofwords1/bagofwords

Repository files navigation

Bag of words

Build and share smart data apps using AI

GitHub Docker Docs

Bag of words enables users to create comprehensive dashboards with a single prompt and refine them iteratively. It integrates seamlessly with various data sources, including databases, APIs, and business systems, allowing for effective data utilization.

Bag of words
Dashboard Split Product Dashboard Revenue Churn List Cloud Spend

Key Features:

• Data Source Integration: Connect to databases, APIs, files, and business systems.

• Natural Language Queries: Formulate complex queries using natural language.

• Dashboard Management: Schedule and share beautiful dashboards effortlessly.

• LLM Compatibility: Use your preferred LLM (OpenAI, Anthropic, etc.).

Quick Start

Docker (Recommended)

# Run with SQLite (default)
docker run -p 3000:3000 bagofwords/bagofwords

Run with PostgreSQL

docker run -p 3000:3000 \
  -e BOW_DATABASE_URL=postgresql://user:password@localhost:5432/dbname \
  bagofwords/bagofwords

Custom deployments

For more advanced deployments, see the docs.



Local Development

Prerequisites

  • Python 3.12+
  • Node.js 18+
  • Yarn

Backend Setup

# Setup Python environment
cd backend
python3 -m venv venv
source venv/bin/activate  # or `venv\Scripts\activate` on Windows
pip install -r requirements_versioned.txt

# Run migrations
alembic upgrade head

# Start server
python main.py  # Available at http://localhost:8000

Frontend Setup

cd frontend
yarn install
yarn dev      # Regular mode

API Documentation

License

AGPL-3.0