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:

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

multibrain-api

The FastAPI server will listen on port 8000.

Streamlit

multibrain-web

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]
python3 -m build
# Optionally, push to PyPi:
# python3 -m twine upload dist/*

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.7.tar.gz (19.0 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.7-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multibrain-0.3.7.tar.gz
  • Upload date:
  • Size: 19.0 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.7.tar.gz
Algorithm Hash digest
SHA256 29a338dbaa7bef26ba05dc69e0ea62b9c712555de68ad12266ef2a9e4cb6f7c5
MD5 c26fbd79afac7345207f084c7da6e03c
BLAKE2b-256 94e2c6de25ef6ffb8cbaec4554799cb047c754148477b6f5442c0e1e708a09e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multibrain-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 20.0 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6649f2cfa620c0a28fc1a2cec4d6d0ceb8f1d1411f5f08d573f4a4202c1af961
MD5 f5a9b182893a0405aca3cdec0cdba34b
BLAKE2b-256 fac0eaca6ba5fc02b4b903f5126af163ed793a939bb579f51d84a71c85fd6bc3

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