Skip to main content

The Deep Knowledge Engine — Turn anything into a searchable knowledge brain

Project description

Solari

Solari

Give your AI a brain, not just hands.

Persistent memory, grounded knowledge, and safe automation for any LLM.
Works with Claude, GPT, Codex, Ollama, or any provider you already use.

License Python 3.10+ Stars

Quick StartWhat It DoesBring Your Own AIDream EngineSafe by DesignEnterprise


The Problem

Your AI forgets everything between sessions. It hallucinates about your domain. And if you give it the ability to act, it might get your accounts banned.

Solari fixes all three.

What It Does

Solari is persistent memory and grounded knowledge for any AI you already use. It's not a replacement for Claude, GPT, or Codex — it's what makes them actually useful.

# Install
git clone https://github.com/SolariResearch/solari.git
cd solari && pip install -e .

# Feed it your knowledge
solari ingest --pdf research_paper.pdf --mind physics
solari ingest --url "https://docs.your-project.com" --mind my_project
solari ingest --youtube "https://youtube.com/watch?v=..." --mind lectures

# Ask questions grounded in YOUR knowledge
solari query "explain the key findings" --mind physics

Your AI now has expert-level knowledge in whatever you fed it. It persists forever. It never hallucinates on covered domains. And it works with any LLM you point it at.

Try it right now with the included starter minds (1,767 entries across programming, biology, and physics):

solari query "how does a hash table handle collisions" --minds-dir starter-minds
solari query "how does the immune system fight infection" --minds-dir starter-minds
solari query "what is entropy in thermodynamics" --minds-dir starter-minds

Bring Your Own AI

Solari is not another AI provider. It extends the one you already pay for.

# Works with your Claude subscription
solari agent --provider anthropic --model claude-sonnet-4-20250514

# Works with OpenAI / Codex
solari agent --provider openai --model gpt-4o

# Works with local models (Ollama)
solari agent --provider ollama --model qwen2.5:7b

# Works with any OpenAI-compatible endpoint
solari agent --provider custom --base-url http://localhost:8080/v1

Set your API key once:

export ANTHROPIC_API_KEY="your-key-here"
# or
export OPENAI_API_KEY="your-key-here"

Solari handles the memory. Your provider handles the intelligence. Together they're unstoppable.


Quick Start

1. Install

git clone https://github.com/SolariResearch/solari.git
cd solari
pip install -e .

2. Build Your First Mind

# Ingest a Wikipedia article
solari ingest --wikipedia "Machine learning" --mind ml

# Or a PDF
solari ingest --pdf paper.pdf --mind research

# Or a YouTube lecture
solari ingest --youtube "https://youtube.com/watch?v=..." --mind lectures

3. Query It

solari query "how do neural networks learn" --mind ml

Grounded, sourced answers from the knowledge you ingested. No hallucination.

4. Run the Dream Engine

solari dream --minds ml,research --cycles 3

Watch Solari find connections between your knowledge domains that you didn't know existed.


Features

Ingest Anything

Source Command
Web page solari ingest --url URL --mind NAME
PDF solari ingest --pdf PATH --mind NAME
YouTube solari ingest --youtube URL --mind NAME
arXiv paper solari ingest --arxiv 2301.00001 --mind NAME
Wikipedia solari ingest --wikipedia "Topic" --mind NAME
Local file solari ingest --file notes.txt --mind NAME
Batch URLs solari ingest --batch urls.txt --mind NAME
Directory solari ingest --dir ./docs/ --mind NAME

Each "mind" is a local vector index. Stack them. Query across them. They persist forever.

Query with Precision

# Search all minds
solari query "your question"

# Search specific minds
solari query "your question" --minds physics,chemistry

# JSON output for pipelines
solari query "your question" --json --top 10

# List available minds
solari minds

Measured improvement: A 7B model grounded by Solari scored 60% on domain questions vs 40% without. Same model, same questions. The knowledge layer is the difference.

The Dream Engine

This is what nobody else has.

The Dream Engine takes separate knowledge bases and finds cross-domain connections that no single expert would see.

solari dream --minds physics,economics,biology --cycles 5

How it works:

  1. NREM phase — probes pairs of knowledge bases with shared questions, finds hidden structural bridges
  2. REM phase — feeds bridges into your LLM to generate novel hypotheses
  3. Parliament mode — expert viewpoints debate, dissent is measured, synthesis emerges

In production testing: 1,400+ genuine cross-domain insights generated — connections between immunology and cybersecurity, physics and economics, game theory and software architecture.

Global Workspace

A production implementation of Global Workspace Theory for building cognitive agents.

from solari.workspace import GlobalWorkspace, Processor, WorkspaceItem

class ThreatDetector(Processor):
    name = "threat"
    def bid(self, context):
        return [WorkspaceItem(
            source=self.name,
            content="Anomalous login pattern detected",
            item_type="threat",
            urgency=0.9,
            novelty=0.8,
        )]

gw = GlobalWorkspace(capacity=7)
gw.register_processor(ThreatDetector())
result = gw.tick()

Attention competition, coherence scoring, narrative threading, meta-cognition, phenomenal state. Used in a system that has run 2,900+ autonomous cycles in production.


Safe by Design

Other agent tools give AI the ability to act first and understand later. That's how people get their Google accounts banned, their credentials stolen, and their inboxes spammed.

Solari is different:

  • Knowledge first, action second — the AI queries your minds before doing anything, so it actually understands the context
  • You approve actions — nothing happens without your confirmation
  • No marketplace of unvetted plugins — no supply chain attacks through malicious skills
  • Your data stays yours — knowledge is stored locally, not sent to third-party servers
  • No autonomous background processes — Solari responds when you ask, it doesn't act on its own

This isn't about limiting what AI can do. It's about making sure it knows what it's doing before it does it.


Architecture

                    ┌──────────────────┐
                    │  solari ingest   │ ← PDFs, URLs, YouTube, arXiv
                    └────────┬─────────┘
                             │
                    ┌────────▼─────────┐
                    │     Minds        │ ← Vector indices, <50ms lookup
                    │  (local storage) │
                    └──┬──────────┬────┘
                       │          │
              ┌────────▼──┐  ┌───▼────────┐
              │solari query│  │solari dream│
              │ (retrieve) │  │(synthesize)│
              └─────┬──────┘  └──────┬─────┘
                    │                │
              ┌─────▼────────────────▼─────┐
              │     Your AI Provider       │
              │ (Claude / GPT / Ollama)    │
              └────────────────────────────┘

Performance

Metric Value
Query latency <50ms warm
Ingest throughput ~1,000 chunks/sec
Mind storage ~4MB per 1,000 entries
Quality improvement +20% on domain questions (verified A/B)
Starter minds included 1,767 entries (programming, biology, physics)
Dream insights 1,400+ generated in production
Providers supported Claude, GPT, Codex, Ollama, any OpenAI-compatible API

Why Solari?

Problem Solari
AI forgets between sessions Minds persist forever — knowledge compounds
AI hallucinate on your domain Grounded responses from YOUR verified knowledge
Agent tools get accounts banned Safe by design — you approve every action
Locked into one AI provider Works with any LLM — bring your own API key
RAG needs infrastructure No Docker, no database, no server — just pip install
Knowledge stays siloed Dream Engine bridges domains automatically

Examples

See the examples/ directory:


About

Solari is built by Solari Systems, extracted from a production autonomous intelligence system with 15 months of R&D behind it.

These are real tools that run in production every day — not prototypes, not demos. Each module works independently. Together they form something greater.

Support

If Solari saves you time, consider supporting development:

Ko-fi

For enterprise deployments with managed hosting, team features, and priority support, visit solarisystems.net.

License

AGPL-3.0 — Free for open-source use. Commercial licensing available.


Built by Solari Systems
Give your AI a brain, not just hands.

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

solari_ai-0.2.0.tar.gz (55.2 kB view details)

Uploaded Source

Built Distribution

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

solari_ai-0.2.0-py3-none-any.whl (53.4 kB view details)

Uploaded Python 3

File details

Details for the file solari_ai-0.2.0.tar.gz.

File metadata

  • Download URL: solari_ai-0.2.0.tar.gz
  • Upload date:
  • Size: 55.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for solari_ai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 296f315cf01423fa96315887ac0b5125dd6774824598bc72fc0910de7a64f4b4
MD5 ab3105d9455953531b04e2fd363c268b
BLAKE2b-256 9dfd12bf2014b26a61ccafcb0fbae0bc602e5d89b5b9a45168c0a712614ce86a

See more details on using hashes here.

File details

Details for the file solari_ai-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: solari_ai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 53.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for solari_ai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9de7fee0ed24bec9982e6dc11bc5c4f1991e0270398c0e933e408e9d0e0f2195
MD5 578e3375e5c5bff9d53df448afa5f01e
BLAKE2b-256 c228c01094e5dea53bed80bf7e3ea928a11d2c3e6055ffab325623ef683147e5

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