Skip to main content

Soliplex

An AI-powered Retrieval-Augmented Generation (RAG) system with a modern web interface.

Features

  • RAG-Powered Search: Semantic document retrieval using LanceDB vector database
  • Multi-Room Architecture: Independent chat environments (rooms) with separate configurations and knowledge bases
  • Multiple LLM Providers: OpenAI, Ollama, Google Gemini, Anthropic, Groq, and compatible APIs
  • AI Agent System: Function calling and tool integration for AI agents
  • OIDC Authentication: Enterprise SSO with Keycloak integration
  • Model Context Protocol (MCP): Extended AI capabilities through MCP client or exposing Room as MCP server
  • Real-time Communication: AG-UI streams over SSE
  • Quiz System: Custom quizzes with LLM-based evaluation
  • Observability: Logfire integration for monitoring

Architecture

Backend (/src/soliplex/)

Python 3.12+ / FastAPI

  • Core: FastAPI application with async support
  • RAG Engine: haiku.rag-slim with LanceDB vector storage
  • AI Integration: Pydantic AI for agent management
  • Authentication: Python-Keycloak with OIDC/JWT support
  • MCP: FastMCP server and client implementations
  • Configuration: YAML-based configuration system

Key modules:

  • views/ - API endpoints (auth, completions, conversations, rooms, quizzes)
  • agents.py - AI agent configuration and management
  • agui/ - AG-UI thread persistence and retrieval
  • tools/ - Tool definitions for AI agents
  • mcp_server.py / mcp_client.py - Model Context Protocol integration
  • tui/ - Terminal user interface

Frontend

The Flutter client lives in its own repository.

Flutter 3.35+ / Dart 3.10.0+

  • Framework: Flutter web with Material Design
  • State Management: Riverpod (2.6.1)
  • Navigation: Go Router (16.0.0)
  • Authentication: Flutter AppAuth (9.0.1) for OIDC
  • Real-time: WebSocket communication
  • Secure Storage: Flutter Secure Storage for credentials

TUI (src/soliplex/tui)

Quick-and-dirty client for room queries

  • Framework: Python textual

Quick Start

For detailed installation instructions, see the Prerequisites Guide.

Install Soliplex and dependencies

# Install (requires uv: https://docs.astral.sh/uv/)
uv sync

# Configure environment
cp .env.example .env
# Edit .env with your settings

Index Soliplex docs into RAG database

source venv/bin/activate
export OLLAMA_BASE_URL=<your Ollama server / port>
# Run docling-serve if you have not installed the full haiku.rag
docker run -p 5001:5001 -d -e DOCLING_SERVE_ENABLE_UI=1 \
  quay.io/docling-project/docling-serve
haiku-rag --config example/haiku.rag.yaml \
  init --db  db/rag/rag.lancedb
haiku-rag --config example/haiku.rag.yaml \
  add-src --db db/rag/rag.lancedb docs/
...
17 documents added successfully.

See: docs/rag.md for more options.

Backend Server CLI Commands

The soliplex-cli command provides several utilities for managing your Soliplex installation:

Check Configuration

Validate your configuration file and report any missing secrets or environment variables:

soliplex-cli check-config example/minimal.yaml

List Rooms

Show all configured chat rooms:

soliplex-cli list-rooms example/minimal.yaml

List Completions

Show all configured completion endpoints:

soliplex-cli list-completions example/minimal.yaml

List Secrets

Display all configured secrets and their status:

soliplex-cli list-secrets example/minimal.yaml

List Environment Variables

Show all environment variables and their values:

soliplex-cli list-environment example/minimal.yaml

List OIDC Providers

Display configured OIDC authentication providers:

soliplex-cli list-oidc-auth-providers example/minimal.yaml

Export Configuration

Export the installation configuration as YAML:

soliplex-cli config example/minimal.yaml

Export AG-UI Feature Schemas

Export AG-UI feature schemas as JSON:

soliplex-cli agui-feature-schemas example/minimal.yaml

Run Backend Server

Start the Soliplex backend server:

export OLLAMA_BASE_URL=<your Ollama server / port>
soliplex-cli serve example/minimal.yaml --no-auth-mode

Server options:

  • --no-auth-mode - Disable authentication (for development/testing)
  • --host HOST - Bind to specific host (default: 127.0.0.1)
  • --port PORT - Listen on specific port (default: 8000)
  • --reload {python,config,both} - Enable hot reload for python code, config, or both
  • --reload-dirs DIRS - Additional directories to watch for reload
  • --reload-includes PATTERNS - File patterns to include in reload watch
  • --proxy-headers - Enable proxy header parsing
  • --forwarded-allow-ips IPS - Trusted IP addresses for proxy headers

Frontend

cd src/flutter
flutter pub get
flutter run -d chrome --web-port 59001

TUI

The TUI does not yet support authentication, so run the back-end with --no-auth-mode when using the TUI.

Within the virtual environment where you installed soliplex:

soliplex-tui --help

 Usage: soliplex-tui [OPTIONS]

╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --version             -v                                                     │
│ --url                      TEXT  Base URL for Soliplex back-end              │
│                                  [default: http://127.0.0.1:8000]            │
│ --help                -h         Show this message and exit.                 │
╰──────────────────────────────────────────────────────────────────────────────╯
soliplex-tui

By default, the TUI connects to a Soliplex back-end server running on port 8000 on your local machine:

soliplex-tui --url http://127.0.0.1:8000

Development

This project uses PEP 735 Dependency Groups for managing development dependencies. This is the modern standard supported by uv and recent versions of pip.

Installing dev dependencies

# Using pip (requires pip 24.0+)
pip install -e . --group dev

# Using uv (recommended)
uv sync --group dev

Note: The older syntax pip install -e ".[dev]" is for [project.optional-dependencies] and will NOT work with [dependency-groups]. Always use --group dev instead.

Available dependency groups

Group Purpose
dev Testing tools (pytest, ruff, coverage)
docs Documentation (mkdocs, mkdocs-material)
postgres PostgreSQL support (asyncpg)
tui Terminal UI (textual, typer)

Running tests

# Run unit tests with coverage
pytest

# Run in parallel with pytest-xdist (much faster on multi-core machines)
pytest -n 8

# Run with specific coverage threshold (CI enforces 100%)
pytest --cov-fail-under=100

# Run linting
ruff check

# Check formatting
ruff format --check

The full suite with coverage is CPU-bound, so parallelizing it with pytest-xdist (the -n option) is the biggest single speedup. Coverage instrumentation is itself CPU-heavy, so the fastest worker count is fewer than the core count -- -n 8 is a good default on a 16-core box. Tune -n to roughly half your physical cores, or use -n auto to let pytest-xdist pick one worker per core (portable, but slightly slower than the hand-tuned value when coverage is enabled).

Configuration

YAML-based configuration with:

  • Installation (installation.yaml) - Main config referencing agents, rooms, and OIDC providers
  • Rooms (rooms/*.yaml) - Individual chat room configurations with RAG settings
  • Agents (completions/*.yaml) - LLM provider and model configurations
  • OIDC (oidc/*.yaml) - Authentication provider settings

See example/ directory for sample configurations.

Environment Variables

See the environment docs for an explanation of when to configure Soliplex using OS environment variables.

Documentation

Comprehensive documentation is available in the docs/ directory:

Running with Docker

See the Docker Deployment Guide for complete instructions:

# Setup
cp .env.example .env
# Edit .env with your settings

# Run
docker-compose up

Access:

Related Repositories

License

MIT License - Copyright (c) 2025 Enfold Systems, Inc.

Download files

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

Source Distribution

soliplex-0.68.2.tar.gz (145.4 kB view details)

Uploaded Source

Built Distribution

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

soliplex-0.68.2-py3-none-any.whl (169.2 kB view details)

Uploaded Python 3

File details

Details for the file soliplex-0.68.2.tar.gz.

File metadata

  • Download URL: soliplex-0.68.2.tar.gz
  • Upload date:
  • Size: 145.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for soliplex-0.68.2.tar.gz
Algorithm Hash digest
SHA256 0d50bc759c8a91c9dad5e4fd902bbdbfa39d82cfc095f02c02bd0bf16f607461
MD5 f90c8890353c33700f6212ee2fbe938f
BLAKE2b-256 06c467e3184922775fd2fc500c2556da53ff2a29d632273f0b6640991896029e

See more details on using hashes here.

File details

Details for the file soliplex-0.68.2-py3-none-any.whl.

File metadata

  • Download URL: soliplex-0.68.2-py3-none-any.whl
  • Upload date:
  • Size: 169.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for soliplex-0.68.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a0396491df0bd52502a9083b138f9963740d5993ebd92b19dbdda5cef33bd5fe
MD5 266a9864e2dfb378baf65d821d41c0dc
BLAKE2b-256 c9b17a51f94b063509b0ac77e8dcd9662e2efce2170875ef392cd6bfa50a66be

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

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