Skip to main content

Run queries with multiple AI servers

Project description

MultiBrain

MultiBrain is a web app which 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 Streamlit. FastAPI and Streamlit 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 Streamlit, or run on their own servers.

Install

Set up Python to suit to taste, such as:

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 multibrain

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:

Development

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 .[dev]

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.2.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.2-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multibrain-0.3.2.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.2.tar.gz
Algorithm Hash digest
SHA256 19486fffa4582a78b47e3c2fec2209f8ff82c856c1a1f0e7896a94b2e38b3e08
MD5 efec82106c7b770738529e6991391bd0
BLAKE2b-256 48a03f570e1f57e7651ba2e253f0de8b7936d50023193c5d7d06439a1c7c5b39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multibrain-0.3.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80881f9407cf36eff219dfda2f79f306836df5029ba32d5e3ed4afffe890cf18
MD5 030d88323daebe48506d4200b6d51a03
BLAKE2b-256 02894b737b9201b16562fe1cdd336d4111be7780c447567b12c78067916001a7

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