Sovereign Synthesis Engine
2026-05-192 turns11,179 charsgpt-5-3-mini
Summary
The user is requesting information about the Sovereign Synthesis Engine, a local-first AI system designed to eliminate cloud dependency.
Messages
write about # Sovereign Synthesis Engine (SSE)
> A local-first, privacy-focused Sovereign Intelligence Layer that eliminates dependency on cloud-based AI services.
The SSE ingests multi-source data (RSS, Markdown, Reddit), maps it into an Agentic Knowledge Graph, and synthesizes content through Quantified Personas—all running entirely on your local infrastructure. **No cloud. No APIs. No data exfiltration.**
## Core Philosophy
We are moving away from "renting cognition" toward **owned intelligence infrastructure**. The SSE embodies two foundational principles:
1. **Immutable Infrastructure** — All components defined as code, deployed as immutable containers
2. **Data Gravity** — Computation moves to data, never the reverse
## Architecture
The SSE uses a **three-layer sovereign stack**:
```
┌─────────────────────────────────────────────────────┐
│ Next.js 14/15 Frontend │
├─────────────────────────────────────────────────────┤
│ Layer 1: Bridge (FastAPI) │
│ ├── REST API + WebSocket │
│ ├── Async task orchestration │
│ └── Request validation (Pydantic) │
├─────────────────────────────────────────────────────┤
│ Layer 2: Memory & Graph (ChromaDB + Neo4j) │
│ ├── Vector similarity search │
│ ├── Knowledge graph traversal │
│ └── Hybrid retrieval (GraphRAG) │
├─────────────────────────────────────────────────────┤
│ Layer 3: Reasoning Core (Ollama / llama.cpp) │
│ ├── Local LLM inference │
│ ├── Persona-conditioned prompts │
│ └── Zero cloud dependencies │
└─────────────────────────────────────────────────────┘
```
## Tech Stack
| Layer | Technology | Purpose |
|-------|------------|---------|
| Frontend | Next.js 14/15 (App Router) | React UI, Server Components |
| API | FastAPI | Async REST API, WebSocket |
| Validation | Pydantic v2 | Schema validation |
| Vector DB | ChromaDB | Semantic search, embeddings |
| Graph DB | Neo4j 5.x | Knowledge graph |
| Graph Lib | NetworkX 3.x | In-memory graph ops |
| LLM Runtime | Ollama | Local model serving |
| Embeddings | nomic-embed-text | Local embedding generation |
| Container | Docker + Compose | Service orchestration |
## Quick Start
### Prerequisites
- Docker and Docker Compose
- Ollama (for local LLM serving)
- Python 3.11+ (for local development)
- Node.js 20+ (for frontend development)
### Docker Deployment (Recommended)
1. **Clone the repository:**
```bash
git clone https://github.com/your-org/sse.git
cd sse
```
2. **Pull required models:**
```bash
ollama pull llama3
ollama pull nomic-embed-text
```
3. **Configure environment:**
```bash
cp .env.example .env
# Edit .env with your preferences
```
4. **Start all services:**
```bash
docker compose up -d
```
5. **Access the application:**
- Frontend: http://localhost:3000
- API: http://localhost:8000/docs
- Neo4j Browser: http://localhost:7474
### Local Development
**Backend:**
```bash
cd app
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload --port 8000
```
**Frontend:**
```bash
cd web
npm install
npm run dev
```
**Services (via Docker):**
```bash
docker compose up -d chromadb neo4j
```
## Project Structure
```
sse/
├── app/ # FastAPI backend
│ ├── main.py # Application entry point
│ ├── api/ # API routes
│ ├── models/ # Pydantic models
│ ├── services/ # Business logic
│ └── core/ # Configuration, dependencies
├── web/ # Next.js frontend
│ ├── app/ # App Router pages
│ ├── components/ # React components
│ └── lib/ # Utilities, API client
├── data/ # Local data storage
│ ├── chroma/ # ChromaDB vectors
│ ├── neo4j/ # Neo4j graph data
│ └── personas/ # Persona definitions
├── docs/ # Documentation
│ ├── ARCHITECTURE.md # System architecture
│ ├── API_SPEC.md # API specification
│ ├── PERSONA_SCHEMA.md # Persona trait schema
│ ├── KNOWLEDGE_GRAPH_SPEC.md # Graph specification
│ ├── SECURITY_SOVEREIGNTY.md # Security principles
│ └── CHECKLIST.md # Development checklist
├── docker-compose.yml # Service orchestration
└── README.md # This file
```
## Key Features
### Multi-Source Ingestion
- RSS feeds with automatic polling
- Markdown files with frontmatter support
- Reddit posts and comments
- Web scraping with JavaScript rendering
### Agentic Knowledge Graph
- Automatic entity extraction and relationship mapping
- Hybrid retrieval combining vector + graph search
- Graph neighborhood expansion for context enrichment
- Full-text and vector search capabilities
### Quantified Personas
- 50-trait behavioral vectors (0.0–1.0 scale)
- Dynamic system prompt conditioning via f-strings
- Persona similarity and blending operations
- Pre-built templates (Analyst, Creative, Diplomat)
### Complete Sovereignty
- 100% offline operation capability
- Zero cloud AI dependencies
- Local model inference via Ollama
- User-controlled data retention and deletion
## API Overview
| Endpoint | Method | Description |
|----------|--------|-------------|
| `/api/v1/health` | GET | System health check |
| `/api/v1/ingest` | POST | Ingest content from source |
| `/api/v1/ingest/{job_id}` | GET | Check ingestion job status |
| `/api/v1/persona/generate` | POST | Create new persona |
| `/api/v1/persona` | GET | List all personas |
| `/api/v1/synthesize` | POST | Synthesize content with persona |
| `/api/v1/graph/neighborhood` | POST | Query entity neighborhood |
| `/api/v1/graph/stats` | GET | Graph statistics |
| `/ws/synthesize/{id}` | WebSocket | Real-time synthesis streaming |
See [API Specification](docs/API_SPEC.md) for complete documentation.
## Documentation
| Document | Description |
|----------|-------------|
| [Architecture](docs/ARCHITECTURE.md) | System architecture, data flow, design patterns |
| [API Spec](docs/API_SPEC.md) | REST endpoints, request/response schemas |
| [Persona Schema](docs/PERSONA_SCHEMA.md) | 50-trait vector definition, prompt conditioning |
| [Knowledge Graph](docs/KNOWLEDGE_GRAPH_SPEC.md) | Node labels, relationships, hybrid retrieval |
| [Security](docs/SECURITY_SOVEREIGNTY.md) | Privacy principles, offline operation, threat model |
| [Checklist](docs/CHECKLIST.md) | Development phases, progress ledger |
## Development Phases
1. **Scaffolding** — Project setup, Docker configuration
2. **Ingestion** — Multi-source data pipeline
3. **RAG** — Retrieval-Augmented Generation pipeline
4. **Graph** — Knowledge graph construction
5. **Persona** — Quantified persona integration
6. **UI** — Next.js frontend development
7. **Integration** — End-to-end testing and polish
See [CHECKLIST.md](docs/CHECKLIST.md) for detailed task breakdown.
## Contributing
1. Review the [Architecture](docs/ARCHITECTURE.md) document
2. Check the [Development Checklist](docs/CHECKLIST.md) for current status
3. Fork the repository and create a feature branch
4. Run tests before submitting PR: `pytest tests/`
5. Ensure linting passes: `ruff check app/` and `npm run lint`
## License
[Specify License]
## Acknowledgments
The Sovereign Synthesis Engine is built on the principle that intelligence infrastructure should be owned, not rented. Special thanks to the open-source communities behind FastAPI, ChromaDB, Neo4j, Ollama, and Next.js.
The Sovereign Synthesis Engine (SSE) is a local-first, privacy-preserving intelligence layer built around a simple but aggressive premise: cognition should not be rented from centralized APIs. It should be owned, deployed, and controlled as infrastructure. SSE eliminates dependency on cloud-based AI services entirely and replaces them with a fully self-contained system that runs on local hardware with zero data exfiltration, zero external APIs, and zero reliance on third-party inference endpoints.
At its core, SSE ingests heterogeneous data streams like RSS feeds, Markdown documents, Reddit content, and optionally scraped web sources, then transforms them into a structured Agentic Knowledge Graph. This graph becomes the system’s memory substrate, enabling both semantic retrieval and relational reasoning. Instead of treating information as flat documents, SSE encodes it as interconnected entities, allowing context to emerge through traversal rather than static lookup.
The architecture is intentionally split into three sovereign layers. The frontend is built in Next.js 14/15, acting as a reactive interface for exploration, synthesis, and control. The bridge layer is powered by FastAPI, which handles async orchestration, validation through Pydantic, and real-time communication via WebSockets. Beneath that sits the memory and reasoning substrate, combining ChromaDB for vector similarity search, Neo4j for persistent graph structure, and NetworkX for in-memory graph operations. At the lowest layer, local inference is handled entirely through Ollama or llama.cpp, ensuring that all reasoning happens on-device with no external dependencies.
This stack is unified through a hybrid retrieval model that blends vector search with graph traversal, often referred to as GraphRAG-style reasoning. The result is not just retrieval-augmented generation, but context-augmented synthesis grounded in both semantic proximity and relational structure.
A defining feature of SSE is its use of Quantified Personas. Instead of static system prompts, personas are represented as 50-dimensional behavioral vectors that can be tuned, blended, and composed. Each persona influences synthesis behavior by conditioning prompts dynamically, allowing the same underlying system to produce radically different outputs depending on cognitive framing. This turns prompt engineering into a structured system rather than ad hoc instruction writing.
The entire system is built around two foundational principles: immutable infrastructure and data gravity. Immutable infrastructure means every component is defined as code and deployed as reproducible containers, eliminating drift and configuration entropy. Data gravity means computation is always moved toward the data, never the reverse, ensuring that all reasoning happens where the information already lives.
Practically, this enables a fully offline-capable system that can ingest, reason, and generate content without any cloud dependency. It can operate in isolated environments, on personal machines, or in air-gapped deployments while still maintaining full RAG capabilities, graph reasoning, and persona-conditioned synthesis.
SSE is not positioned as a chatbot framework or an LLM wrapper. It is an attempt to redefine AI systems as owned cognitive infrastructure. A system where memory is structured, reasoning is local, and intelligence is something you deploy rather than access.
gpt-5-3-mini