Skip to content

About

Offline-first AI knowledge and research platform for document intelligence, retrieval, and personal knowledge management.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

227 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ¦‰ Project Athena

Your Private Knowledge. Your Local AI. Your Second Brain.

Capture β€’ Understand β€’ Connect β€’ Retrieve β€’ Create

Project Athena is an offline-first, privacy-first personal knowledge and AI workspace designed to turn documents, research, notes, and ideas into a connected, searchable body of knowledge.

Knowledge Before Intelligence.

Athena builds a reliable knowledge layer first, then adds retrieval, citations, workspace intelligence, and local AI assistance.


✨ What Is Athena?

Athena is a long-term software engineering project for building a private local knowledge system that can:

  • πŸ“š Import and organize documents
  • πŸ”Ž Search knowledge semantically
  • 🧠 Retrieve relevant information with context
  • πŸ”— Connect related knowledge
  • πŸ“ Preserve citations and references
  • πŸ€– Integrate local AI providers
  • πŸ–₯️ Expose intelligence through a desktop workspace
  • πŸ“Š Evaluate retrieval quality and performance
  • πŸ” Keep personal research and knowledge local

The goal is not simply to build another chatbot.

The goal is to build personal knowledge infrastructure that can grow for years.


πŸ›οΈ Engineering Philosophy

Principle Meaning
🧠 Knowledge Before Intelligence Build reliable knowledge infrastructure before adding more intelligence.
πŸ”Œ Integrate Before Innovate Prefer proven local tools and providers before reinventing them.
πŸ›‘οΈ Zero Regression Existing functionality must remain stable as the system grows.
❄️ Freeze Before Expansion Stabilize and validate a milestone before starting the next layer.
πŸ” Audit Before Action Understand repository and architecture state before changing it.
πŸ—ΊοΈ Roadmap Discipline Develop features through explicit engineering milestones.
πŸ”’ Privacy First Local-first architecture is a core design objective.

πŸš€ Core Capabilities

πŸ“„ Document Intelligence

Designed for PDF, DOC/DOCX, TXT, EPUB, images, OCR, structured extraction, chunking, metadata, and source tracking.

πŸ”Ž Retrieval Intelligence

Application-level retrieval orchestration with query planning, semantic retrieval, ranking, context assembly, and RAG answers.

πŸ“š Citations & Traceability

A dedicated citation architecture covering citation creation, resolution, presentation, validation, and source traceability.

🧠 Workspace Intelligence

A knowledge workspace for context-aware queries, connected knowledge, research workflows, and intelligent responses.

πŸ€– Local AI

Provider-independent integration with local AI tools such as Ollama and LM Studio, plus local embedding models.


🧩 Architecture

                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚       Athena UI         β”‚
                    β”‚   Knowledge Workspace   β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚   Workspace Services    β”‚
                    β”‚ Context β€’ Queries β€’ UX  β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚ Retrieval Intelligence  β”‚
                    β”‚ Planner β€’ Search β€’ RAG  β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
             β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
             β”‚                   β”‚                   β”‚
      β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”
      β”‚  Documents  β”‚     β”‚ Knowledge / β”‚     β”‚  Citations  β”‚
      β”‚ Intelligenceβ”‚     β”‚ Vector Layerβ”‚     β”‚   Services  β”‚
      β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
             β”‚                   β”‚                   β”‚
             β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚      Local Data         β”‚
                    β”‚ SQLite β€’ Files β€’ Index  β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚    Local AI Providers   β”‚
                    β”‚ Ollama β€’ LM Studio β€’ …  β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ› οΈ Technology Stack

Area Technologies
Language Python
Desktop UI PySide6 / Qt
Database SQLite
Vector / Retrieval Qdrant and retrieval services
Local LLM Ollama / LM Studio
Document Processing Docling and related tools
OCR RapidOCR / compatible tooling
Retrieval Semantic retrieval, query planning, RAG
Evaluation Benchmark runner, metrics engine, reporting
Architecture Service-oriented, provider-independent, local-first

πŸ“Š Retrieval Benchmark

A development baseline used:

Metric Result
Questions 25
Indexed documents 78
Chunks 147
Top-1 Accuracy 60%
Top-3 Accuracy 88%
Top-5 Accuracy 96%
MRR 0.731
Average latency 145.10 ms

These are development benchmark results for a specific corpus and configuration, not universal performance claims.


πŸ§ͺ Engineering & Quality

Athena follows an explicit engineering lifecycle:

Constitution Check
       ↓
Repository Truth
       ↓
Sprint Review
       ↓
Risk Analysis
       ↓
One-Sprint Execution Plan
       ↓
Implementation
       ↓
Quality Gate
       ↓
Freeze

This helps control architectural drift and prevent feature growth from destabilizing the system.


πŸ”¬ AEAF β€” Athena Engineering Audit Framework

Athena includes an engineering audit framework for understanding a growing Python codebase.

Capabilities include:

  • Source parsing
  • Repository scanning
  • Module analysis
  • Class and function analysis
  • Method analysis
  • Import analysis
  • Dependency graph analysis
  • Architecture-oriented reporting

Recorded audit baseline:

Source Files : 392
Modules      : 385
Classes      : 236
Functions    : 197
Methods      : 573
Imports      : 1247

The goal is to make the system observable, auditable, and maintainable.


πŸ—ΊοΈ Roadmap

Athena follows a staged roadmap rather than uncontrolled feature expansion.

A15  Stabilization
 β”‚
 β–Ό
A16  AI Provider Platform
 β”‚
 β–Ό
A17  AI Control Center
 β”‚
 β–Ό
A18  Document Intelligence
 β”‚
 β–Ό
A19  Retrieval Intelligence
 β”‚
 β–Ό
A20  Workspace Intelligence
 β”‚
 β–Ό
A21  Plugin Ecosystem
 β”‚
 β–Ό
A22  Assistant Engine
 β”‚
 β–Ό
A23  Offline AI Worker

Each stage is subject to architecture review and quality gates before expansion.


πŸ–₯️ Workspace Intelligence

Athena is evolving from:

Question β†’ Search β†’ Answer

toward:

Knowledge
    ↓
Context
    ↓
Retrieval
    ↓
Workspace
    ↓
Reasoning
    ↓
Action

The workspace layer provides the foundation for a future personal assistant without making the assistant the center of the architecture.


πŸ” Privacy & Local-First Design

Your knowledge should remain yours.

Athena prioritizes:

  • Local storage
  • Local document processing
  • Local embeddings
  • Local LLM providers
  • Provider abstraction
  • Explicit integration boundaries
  • Minimal external dependencies

Cloud services can be integrated where useful, but the core architecture is designed to remain meaningful without requiring a cloud AI service.


🎯 What Makes Athena Different?

Athena is not intended to be:

  • ❌ Just another chatbot
  • ❌ A thin wrapper around an LLM API
  • ❌ A collection of disconnected AI experiments
  • ❌ A cloud-dependent knowledge service

Athena is being engineered as:

  • βœ… Personal knowledge infrastructure
  • βœ… Retrieval and evidence system
  • βœ… Document intelligence platform
  • βœ… Local AI integration layer
  • βœ… Workspace intelligence system
  • βœ… Foundation for a future personal assistant

🌟 Long-Term Vision

Documents + Research + Notes + Data + Conversations
                         β”‚
                         β–Ό
                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚    ATHENA     β”‚
                  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
                  β”‚ Understand    β”‚
                  β”‚ Retrieve      β”‚
                  β”‚ Connect       β”‚
                  β”‚ Cite          β”‚
                  β”‚ Reason        β”‚
                  β”‚ Assist        β”‚
                  β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
                          β”‚
                          β–Ό
                Better Research
                Better Decisions
                Better Work

The objective is not to make AI replace thinking.

It is to make thinking with your own knowledge dramatically more powerful.


πŸ“ Repository Structure

athena/
β”œβ”€β”€ athena_core/
β”‚   β”œβ”€β”€ retrieval/
β”‚   β”œβ”€β”€ workspace/
β”‚   β”œβ”€β”€ citations/
β”‚   β”œβ”€β”€ documents/
β”‚   β”œβ”€β”€ providers/
β”‚   └── services/
β”œβ”€β”€ tools/
β”‚   └── aeaf/
β”œβ”€β”€ benchmarks/
β”œβ”€β”€ tests/
β”œβ”€β”€ docs/
β”œβ”€β”€ scripts/
└── README.md

The structure may evolve as the architecture develops.


πŸ“Œ Keywords

Python Β· PySide6 Β· AI Β· RAG Β· Retrieval Β· Knowledge Management Β· Document Intelligence Β· Semantic Search Β· Local AI Β· Ollama Β· LM Studio Β· Qdrant Β· SQLite Β· Docling Β· OCR Β· Citations Β· Workspace Intelligence Β· Offline AI Β· Privacy-First


πŸ¦‰ Project Athena

Your Private Knowledge. Your Local AI. Your Second Brain.

Knowledge Before Intelligence. Evidence Before Confidence. Architecture Before Features.

Think locally. Learn continuously. Build intelligently.

About

Offline-first AI knowledge and research platform for document intelligence, retrieval, and personal knowledge management.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages