Skip to main content

AI-powered documentation generation and vector indexing tool

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prometheous-0.1.0.tar.gz (405.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prometheous-0.1.0-py2.py3-none-any.whl (81.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file prometheous-0.1.0.tar.gz.

File metadata

  • Download URL: prometheous-0.1.0.tar.gz
  • Upload date:
  • Size: 405.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for prometheous-0.1.0.tar.gz
Algorithm Hash digest
SHA256 29c9cee31be43b277f12027cd01191f8e30428543624cbf566048ba882a8df03
MD5 abf813a2e638835c08b09dd9aa1d6243
BLAKE2b-256 19b642fee4b84b70bff7aed5c3b2d7e464c3ecacdda75d1b2593fb67c4d3edd6

See more details on using hashes here.

File details

Details for the file prometheous-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: prometheous-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 81.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for prometheous-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7f40ff7814a0c9657d51adf1276067721fb85d99a737c3d72820044f6e8174a8
MD5 e8f25f74b9aa98e13550457ead553d60
BLAKE2b-256 b6d22d10418ec6149ecf4e6f6b632eec9356d1a2e9896b4ac666edbee3ef2fab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page