Skip to main content

Run queries with multiple AI servers

Project description

MultiBrain

MultiBrain queries multiple AI servers, then feeds the responses to another AI, which checks for accuracy and provides a summary.

Requirements

This application currently uses three different Ollama AI servers. Two of them for generating the initial responses, and a third summary server that analyzes the responses.

It uses FastAPI and Starlette. FastAPI and Starlette can run on the same server, or they can each have their own server.

The Ollama servers can run on the same server as FastAPI and Starlette, or run on their own servers.

Install

git clone https://spacecruft.org/deepcrayon/multibrain
cd multibrain/
python -m venv venv
source venv/bin/activate
pip install -U setuptools pip wheel
pip install -e .
# Development
pip install -e .[dev]

Usage

A FastAPI server is run for the backend, and a Streamlit server runs for the front end.

FastAPI

./scripts/run_api.sh

The FastAPI server will listen on port 8000.

Streamlit

./scripts/run_streamlit.sh

Web

Go to your web page, on port 8501 such as:

Status

Alpha.

Under early development.

License

Apache 2.0 or Creative Commons CC by SA 4.0 International. You may use this code, files, and text under either license.

Unofficial project, not related to upstream projects.

Upstream sources under their respective copyrights.

Copyright © 2025 Jeff Moe.

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

multibrain-0.3.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

multibrain-0.3.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file multibrain-0.3.1.tar.gz.

File metadata

  • Download URL: multibrain-0.3.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for multibrain-0.3.1.tar.gz
Algorithm Hash digest
SHA256 bea981dd5511ceae54ae515f3b9e505f5ad9c2394d08e427253d6ed7c531177c
MD5 7a7a46e6be8d59e2fe0df2d3773e7f54
BLAKE2b-256 83ba5c7675e951ca808ac3827e401c43ab2a6afcb6b1684ec21143057464e1d9

See more details on using hashes here.

File details

Details for the file multibrain-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: multibrain-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for multibrain-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f26a31dcdbfa4fc4c52bc8b6790b040059c33e93eca17f9ac93406bf483f8de6
MD5 793d33019231b68e9d3100a6891cd5ff
BLAKE2b-256 e9e3d6469d058d2c348bfd1414a01bbdeee1d2136164bc2a44ff4ed3dd240bd5

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