Skip to main content

Chatbot Framework

A production-grade Python framework for building embeddable AI chatbots with optional capabilities for SQL databases, web access, RAG (Retrieval-Augmented Generation), validation, and memory management.

Status: 232 tests passing | Type-safe (Pyright strict mode) | Production-ready

Quick Start

Prerequisites

  • Python 3.9+

  • pip or poetry

Installation

  1. Clone the repository

    git clone <repo-url>
    
    cd chatbot-builder
    
  2. Install dependencies

    # Using pip
    
    pip install -e .
    
    # Or using poetry
    
    poetry install
    
  3. Verify installation

    pytest tests/ -q
    

Build & Run

Run all tests:

pytest tests/ -q

Run specific test suite:

pytest tests/unit/ -v

pytest tests/integration/ -v

Type checking:

pyright src/

Code formatting & linting:

ruff check src/

ruff format src/

Features

  • Agentic Loop: Plan → Execute → Observe → Replan

  • Multi-Capability: SQL, Web, RAG integration

  • Quality Control: Built-in validators and reflection

  • Memory Management: Conversation history and context

  • Security: Credential filtering, authorization checks

  • Observability: Structured event tracking

  • Modular Design: Use only what you need

Project Structure


src/chatbot_framework/

├── core/              # Core chatbot engine

├── adapters/          # LLM, DB, and RAG providers

├── planning/          # Query planning engine

├── rag/               # Retrieval-Augmented Generation

├── sql/               # Database query handling

├── tools/             # Built-in tools

├── validation/        # Quality control

├── reflection/        # Self-evaluation

├── memory/            # Conversation memory

├── observability/     # Event tracking

└── web/               # Web capabilities

examples/              # Sample implementations

tests/                 # Test suites

Examples

See the examples/ directory for sample implementations:

  • 01_minimal_chatbot.py - Basic setup

  • 02_knowledge_chatbot.py - With RAG

  • 03_enterprise_chatbot.py - Full features

  • 06_sql_and_rag_chatbot.py - SQL + RAG

  • 07_fastapi_integration.py - API integration

  • 11_local_llm_ollama.py - Local LLM support

Configuration

Configure the framework via environment variables or config files:

  • API keys for LLM providers

  • Database connections

  • Vector store settings

  • Security policies

See SIMPLIFIED_API.md for detailed API documentation and INTEGRATION_GUIDE.md for integration examples.

Testing

The project includes comprehensive test coverage:

# All tests

pytest tests/

# Specific module

pytest tests/unit/test_config.py -v

# With coverage

pytest tests/ --cov=src/

Type Safety

The project uses Pyright strict mode for type safety:

pyright src/

Development

Install development dependencies:

pip install -e ".[dev]"

This includes:

  • pytest & pytest plugins

  • pyright

  • ruff

  • type stubs

  • Modular design

  • Composable capabilities

License

See LICENSE file for details.

Metadata

Release files for chatlie 0.8.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chatlie 0.8.8
File Size Uploaded Provenance Actions
chatlie-0.8.8.tar.gz 109.8 kB Without provenance Details for chatlie-0.8.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chatlie 0.8.8
File Interpreter ABI Platform Actions
chatlie-0.8.8-py3-none-any.whl Python 3 none any Details for chatlie-0.8.8-py3-none-any.whl

Total release size: 204.4 kB

Release files / chatlie-0.8.8.tar.gz

Download URL chatlie-0.8.8.tar.gz
Size 109.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7ca6d964c290523faa4a3c0d43b25085cc2fce8a90f4e0014e3a23225afba5b9
BLAKE2b-256 checksum
How to use checksums
eabef25559def64e4c080a0eaa6210f4aadb21fe0ad16b1cab0e418a55380a42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / chatlie-0.8.8-py3-none-any.whl

Download URL chatlie-0.8.8-py3-none-any.whl
Size 94.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
394fcc6e650a09496e9d9daa27e967a42eb3decc554d52c0ac2cc8661ba4ad14
BLAKE2b-256 checksum
How to use checksums
79b6e5b3f8c93b976e3f365ea8cac25d02257d8253d6fece8744e4ac4676effc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Security for chatlie 0.8.8

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.

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