Skip to main content

Prometheous

AI-powered documentation generation and vector indexing tool for codebases.

Overview

Prometheous is a comprehensive tool that combines automated code documentation generation with advanced vector indexing capabilities for Retrieval-Augmented Generation (RAG). It helps developers create beautiful, searchable documentation and enables intelligent code exploration through semantic search.

Features

  • 🤖 AI-Powered Documentation: Generate comprehensive documentation from your codebase using advanced language models
  • 🔍 Vector Indexing: Create semantic search indexes for intelligent code exploration
  • 💬 RAG Chat Interface: Interactive chat with your codebase using natural language queries
  • 🌐 Beautiful Web UI: Modern, responsive documentation websites with search functionality
  • 🔧 Flexible Configuration: Support for multiple AI providers (OpenAI, Ollama, etc.)
  • 📦 Easy Integration: Simple CLI interface with sensible defaults

Installation

pip install prometheous

Quick Start

Generate Documentation

# Generate documentation for current directory
prom doc

# Generate documentation with custom paths
prom doc --project-root ./src --doc-root ./docs --project-url https://github.com/user/repo

Create Vector Index

# Create vector index for documentation
prom vec --source-path ./docs

# Create index with interactive chat
prom vec --source-path ./docs --interactive

Configuration

Environment Variables

# OpenAI Configuration
export OPENAI_API_KEY="your-api-key"
export OPENAI_API_BASE="https://api.openai.com/v1"  # or your custom endpoint

# Model Configuration
export PROMETHEOUS_MODEL_NAME="gpt-3.5-turbo"
export PROMETHEOUS_MAX_TOKENS=4096

# Embedding Configuration
export PROMETHEOUS_EMBEDDING_MODEL="text-embedding-ada-002"
export EMBEDDING_DIMENSION=1536

# Ollama Configuration (for local models)
export OLLAMA_BASE_URL="http://localhost:11434"

CLI Reference

prom doc - Generate Documentation

Option Description Default
--project-root, -p Project root directory .
--doc-root, -d Documentation output directory ./docs
--project-url, -u Project URL for links https://github.com/user/project
--model-name AI model to use gpt-3.5-turbo
--max-tokens Maximum tokens per request 4096
--headless Run without browser preview false

prom vec - Vector Indexing

Option Description Default
--source-path, -s Source directory to index Required
--cache-dir, -c Cache directory for index ./cache
--embedding-model Embedding model to use text-embedding-ada-002
--embedding-dimension Embedding vector dimension 1536
--interactive, -i Start interactive chat false

Examples

Complete Documentation Workflow

# 1. Generate documentation
prom doc --project-root ./my-project --doc-root ./documentation

# 2. Create vector index
prom vec --source-path ./documentation --cache-dir ./vector-cache

# 3. Start interactive chat
prom vec --source-path ./documentation --interactive

Using with Local Models (Ollama)

# Set up Ollama environment
export OLLAMA_BASE_URL="http://localhost:11434"
export OPENAI_API_BASE="http://localhost:11434/v1"
export PROMETHEOUS_MODEL_NAME="llama2"
export PROMETHEOUS_EMBEDDING_MODEL="llama2"

# Generate documentation
prom doc --project-root ./src

Development

For development setup and advanced usage, see:

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Metadata

Release files for prometheous 0.1.0

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

Source distribution (sdist)

Source distribution for prometheous 0.1.0
File Size Uploaded Provenance
prometheous-0.1.0.tar.gz 405.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for prometheous 0.1.0
File Interpreter ABI Platform
prometheous-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 486.6 kB

Release files / prometheous-0.1.0.tar.gz

Download URL prometheous-0.1.0.tar.gz
Size 405.2 kB
Tags Source
SHA-256 checksum
How to use checksums
29c9cee31be43b277f12027cd01191f8e30428543624cbf566048ba882a8df03
BLAKE2b-256 checksum
How to use checksums
19b642fee4b84b70bff7aed5c3b2d7e464c3ecacdda75d1b2593fb67c4d3edd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / prometheous-0.1.0-py2.py3-none-any.whl

Download URL prometheous-0.1.0-py2.py3-none-any.whl
Size 81.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7f40ff7814a0c9657d51adf1276067721fb85d99a737c3d72820044f6e8174a8
BLAKE2b-256 checksum
How to use checksums
b6d22d10418ec6149ecf4e6f6b632eec9356d1a2e9896b4ac666edbee3ef2fab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Security for prometheous 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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