Skip to content

opf/openproject-haystack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

60 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OpenProject Haystack

AI-Powered Project Management

OpenProject AI Docker GDPR


Table of Contents


🎯 Executive Summary

OpenProject Haystack is an AI-powered project management enhancement system that delivers automated compliance, proactive risk management, and data-driven decision support. The system transforms traditional project management workflows into intelligent, automated processes that ensure PMFlex compliance while significantly reducing manual overhead.

Key Business Benefits

Capability Traditional Approach Our AI Solution Business Impact
Status Reports 4-8 hours manual work 2 minutes automated 80% time savings
Issue Detection Reactive (after problems occur) Predictive (2-4 weeks early) 40% reduction in overruns
Compliance Manual review and correction Automatic PMFlex adherence 95% reduction in audit issues
Quality Inconsistent, human error prone AI-powered, standardized 90% reduction in review time

Strategic Value Propositions

  • 🎯 100% PMFlex Compliance: Automatic adherence to German federal project management standards
  • πŸ“ˆ Proactive Risk Management: Early detection of project health issues before they become critical
  • πŸ’Ό Data-Driven Decision Support: Real-time project health analytics and predictive insights
  • ⚑ Operational Efficiency: 80% time savings through automated report generation and workflows

πŸ“ˆ View Complete Executive Summary - Full business case, ROI analysis, and strategic benefits


πŸ”’ Responsible AI Principles

OpenProject Haystack follows strict ethical AI guidelines to ensure responsible deployment in government environments:

Core Principles

🏠 Self-Hosting & Data Sovereignty

  • All AI models run locally on your infrastructure
  • Complete control over data processing and storage
  • No external data transmission or cloud dependencies
  • Minimizes security risks and ensures compliance

πŸ‘€ Human Decision Authority

  • AI serves as decision support, never autonomous decision-making
  • Transparent recommendations with clear explanations
  • Human oversight required for all critical decisions
  • Clear accountability chains maintained

πŸ” Privacy & GDPR Compliance

  • Strict data isolation between projects and tenants
  • Minimal data collection principles
  • Automated data deletion routines
  • Complete audit trails and documentation

🌱 Sustainability & Ethics

  • Energy-efficient model selection
  • Ethical training data sourcing
  • Regular bias testing and mitigation
  • Cultural fairness and inclusivity

πŸ”’ Read Full AI Governance Guidelines - Comprehensive AI governance and compliance framework


πŸ—οΈ System Architecture

Complete System Overview

graph TB
    %% External Systems
    OP[🏒 OpenProject Instance<br/>Project Data Source]
    USER[πŸ‘€ Project Manager<br/>End User]
    
    %% PMFlex Knowledge Base
    PM[πŸ“š PMFlex.one<br/>German Federal Standards<br/>β€’ Handbooks<br/>β€’ Templates<br/>β€’ Guidelines]
    
    %% Haystack System Core
    subgraph "πŸ€– OpenProject Haystack System"
        API[πŸ”Œ API Layer<br/>FastAPI Application<br/>β€’ OpenAI Compatible<br/>β€’ Project Endpoints]
        
        subgraph "🧠 AI Intelligence Core"
            RAG[πŸ” RAG Pipeline<br/>Document Retrieval<br/>β€’ Vector Store<br/>β€’ Context Enhancement]
            LLM[⚑ Ollama LLM<br/>German Language<br/>β€’ Report Generation<br/>β€’ Hint Creation]
        end
        
        subgraph "πŸ“Š Analysis Engine"
            ANALYZER[πŸ”¬ Project Analyzer<br/>β€’ 10 Health Checks<br/>β€’ Risk Assessment<br/>β€’ Performance Metrics]
        end
    end
    
    %% Data Flow
    USER --> API
    API --> OP
    OP --> ANALYZER
    ANALYZER --> RAG
    PM --> RAG
    RAG --> LLM
    LLM --> API
    API --> USER
    
    %% Styling
    classDef external fill:#e3f2fd,stroke:#1976d2,stroke-width:2px
    classDef knowledge fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px
    classDef core fill:#e8f5e8,stroke:#388e3c,stroke-width:2px
    classDef ai fill:#fff3e0,stroke:#f57c00,stroke-width:2px
    classDef analysis fill:#fce4ec,stroke:#c2185b,stroke-width:2px
    
    class OP,USER external
    class PM knowledge
    class API core
    class RAG,LLM ai
    class ANALYZER analysis
Loading

Key Components

Component Primary Function Business Value
PMFlex.one German federal compliance standards Ensures 100% regulatory adherence
API Layer Interface for all system interactions Seamless integration with existing tools
RAG System Context-aware document retrieval Intelligent, compliance-driven responses
Ollama LLM German language AI generation Professional, accurate content creation
Analysis Engine Real-time project health monitoring Proactive risk identification and management

Smart Report Generation Workflow

flowchart LR
    A[Project Manager Request] --> B[πŸ”„ Automated Data Collection]
    B --> C[πŸ“Š AI Analysis & Insights]
    C --> D[πŸ“‹ PMFlex Standards Integration]
    D --> E[πŸ“„ Professional German Report]
    
    B1[⏱️ 15 minutes] --> B
    C1[🎯 100% Accuracy] --> C
    D1[βœ… Full Compliance] --> D
    E1[πŸ“ˆ Executive Ready] --> E
    
    style A fill:#e3f2fd
    style E fill:#c8e6c9
    style B fill:#fff3e0
    style C fill:#f3e5f5
    style D fill:#e8f5e8
Loading

πŸ”„ See Detailed Workflow Documentation - Complete technical workflows and system diagrams


⚑ Quick Start

Development with Docker Compose

# Clone the repository
git clone https://github.com/opf/openproject-haystack.git
cd openproject-haystack

# Start the services (models will be automatically installed)
docker compose up --build

# The API will be available at:
# - Health check: http://localhost:8000/health
# - API docs: http://localhost:8000/docs
# - OpenAI compatible: http://localhost:8000/v1/chat/completions

Core Capabilities

πŸ“Š Project Status Reports

curl -X POST "http://localhost:8000/generate-project-status-report" \
  -H "Content-Type: application/json" \
  -d '{
    "project": {"id": 1, "type": "agile"},
    "openproject": {
      "base_url": "https://your-openproject.com",
      "user_token": "your-api-key"
    }
  }'

πŸ’‘ Project Management Hints

curl -X POST "http://localhost:8000/project-management-hints" \
  -H "Content-Type: application/json" \
  -d '{
    "project": {"id": 1, "type": "agile"},
    "openproject": {
      "base_url": "https://your-openproject.com",
      "user_token": "your-api-key"
    }
  }'

πŸ€– OpenAI-Compatible Chat

curl -X POST "http://localhost:8000/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral:latest",
    "messages": [
      {"role": "user", "content": "Help me with project management"}
    ]
  }'

πŸ”§ Technical Documentation

Stack & Architecture

  • Python 3.11 - Modern Python with type hints
  • FastAPI - High-performance API framework
  • Haystack AI - Advanced NLP pipeline management
  • Ollama - Local LLM inference with German language support
  • Docker & Docker Compose - Reproducible deployment environments
  • RAG System - Context-aware document retrieval and enhancement

Project Structure

openproject-haystack/
β”œβ”€β”€ README.md                    # This comprehensive documentation
β”œβ”€β”€ EXECUTIVE_SUMMARY.md         # Business case and strategic benefits
β”œβ”€β”€ LEITFADEN_VERANTWORTUNGSVOLLE_KI_OPENPROJECT.md  # AI governance
β”œβ”€β”€ WORKFLOW_DIAGRAMS_AND_SUMMARIES.md  # Technical workflows
β”œβ”€β”€ requirements.txt             # Python dependencies
β”œβ”€β”€ Dockerfile                   # Container configuration
β”œβ”€β”€ docker-compose.yml          # Multi-service orchestration
β”œβ”€β”€ config/
β”‚   └── settings.py             # Environment configuration
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ main.py                 # FastAPI application entry point
β”‚   β”œβ”€β”€ api/
β”‚   β”‚   └── routes.py           # API endpoints (OpenAI + custom)
β”‚   β”œβ”€β”€ pipelines/
β”‚   β”‚   β”œβ”€β”€ generation.py       # LLM generation pipelines
β”‚   β”‚   └── rag_pipeline.py     # RAG system implementation
β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”œβ”€β”€ openproject_client.py  # OpenProject API integration
β”‚   β”‚   β”œβ”€β”€ document_processor.py  # Document processing
β”‚   β”‚   └── vector_store.py     # Vector database management
β”‚   β”œβ”€β”€ models/
β”‚   β”‚   └── schemas.py          # Pydantic models and schemas
β”‚   └── templates/
β”‚       └── report_templates.py # Report generation templates
β”œβ”€β”€ documents/
β”‚   └── pmflex/                 # PMFlex compliance documents
└── tests/                      # Test suite

API Endpoints

Project Management Endpoints

  • POST /generate-project-status-report - Generate comprehensive project status reports
  • POST /project-management-hints - Get AI-powered project management recommendations
  • GET /health - System health check

OpenAI-Compatible Endpoints

  • POST /v1/chat/completions - Chat completion (OpenAI-compatible)
  • GET /v1/models - List available models
  • GET /v1/models/{model_id} - Get specific model information

RAG System Management

  • POST /rag/initialize - Initialize RAG system with PMFlex documents
  • GET /rag/status - Get RAG system status and statistics
  • POST /rag/refresh - Refresh document index
  • POST /rag/search - Search PMFlex documents

Configuration

Environment variables for customization:

# Core Configuration
OLLAMA_URL=http://ollama:11434
OLLAMA_MODEL=mistral:latest
API_HOST=0.0.0.0
API_PORT=8000

# Model Management
MODELS_TO_PULL=mistral:latest,llama2:7b
REQUIRED_MODELS=mistral:latest

# Generation Parameters
GENERATION_NUM_PREDICT=1000
GENERATION_TEMPERATURE=0.7

# Logging
LOG_LEVEL=INFO
LOG_FORMAT=%(asctime)s - %(name)s - %(levelname)s - %(message)s

# RAG System
RAG_CHUNK_SIZE=500
RAG_CHUNK_OVERLAP=50
RAG_MAX_CHUNKS=5

Testing

# Test OpenAI API compatibility
python test_openai_api.py

# Test project status report generation
python test_project_status_report.py

# Test project management hints
python test_project_hints.py

# Test RAG system
python test_haystack_api.py

Integration Examples

With OpenAI Python Client

from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:8000/v1",
    api_key="dummy-key"
)

response = client.chat.completions.create(
    model="mistral:latest",
    messages=[
        {"role": "system", "content": "You are a project management assistant."},
        {"role": "user", "content": "How can I improve my project timeline?"}
    ]
)

With LangChain

from langchain.chat_models import ChatOpenAI

llm = ChatOpenAI(
    openai_api_base="http://localhost:8000/v1",
    openai_api_key="dummy-key",
    model_name="mistral:latest"
)

Features

  • βœ… AI-Powered Project Analysis: 10 automated health checks and risk assessments
  • βœ… PMFlex Compliance: Automatic adherence to German federal standards
  • βœ… German Language Support: Native German report generation and hints
  • βœ… OpenAI API Compatibility: Drop-in replacement for OpenAI services
  • βœ… Self-Hosted Security: Complete data sovereignty and privacy
  • βœ… RAG-Enhanced Context: Intelligent document retrieval and context enhancement
  • βœ… Real-Time Integration: Live OpenProject data analysis
  • βœ… Professional Reporting: Executive-ready status reports and insights
  • βœ… Predictive Analytics: Early warning system for project issues
  • βœ… Automated Workflows: Streamlined project management processes

πŸ“š Detailed Documentation

πŸ“‹ Core Documentation

πŸ”§ Technical Documentation

  • RAG System Documentation - RAG implementation details, document processing, and vector store management
  • Deployment Guide - Production deployment instructions, scaling, and infrastructure requirements
  • Project Hints API - API documentation for project management hints and recommendations

πŸ“Š Feature Documentation

πŸ§ͺ Testing & Development


πŸš€ Getting Started by Role

πŸ‘” For Executives

  1. Read the Executive Summary for business benefits and ROI
  2. Review the Responsible AI Guidelines for governance
  3. Understand the strategic value proposition and competitive advantages

πŸ”’ For Compliance Teams

  1. Study the Responsible AI Guidelines for GDPR compliance
  2. Review data sovereignty and self-hosting principles
  3. Understand audit trails and documentation requirements

πŸ‘¨β€πŸ’» For Developers

  1. Follow the Quick Start guide for immediate setup
  2. Explore the Technical Documentation for implementation details
  3. Review the API Endpoints for integration options

πŸ“Š For Project Managers

  1. Understand the core capabilities and business benefits
  2. Test the project status report and hints generation features
  3. Review the Project Hints API for practical usage

πŸ“ž Support & Community

  • GitHub Issues: Report bugs and request features
  • Documentation: Comprehensive guides and API documentation
  • Community: Join discussions and share experiences
  • Enterprise Support: Contact for enterprise deployment assistance

πŸ“œ License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.


OpenProject Haystack - Transforming project management through responsible AI innovation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •