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

Uploaded Python 3

File details

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

File metadata

  • Download URL: multibrain-0.3.3.tar.gz
  • Upload date:
  • Size: 16.1 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.3.tar.gz
Algorithm Hash digest
SHA256 0764ec6fa36528fb050412903c8ed746598483116cfa40ced06212f717661d4d
MD5 07e97f62a2d660c76e2d01e190fa9e98
BLAKE2b-256 ff258d254ba2ab7fbb6e4a55fec6dcded7158969e0442f8d1a3a72e9a4d9bd16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multibrain-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 17.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ff34f0b9fe81cefba88fc7124c8c719de5fb04508abeb1bb3c6e48a3585c9152
MD5 0f4a6c5ce95d0366a4f0225d3e31f513
BLAKE2b-256 23bace076a1b0303e654e809cca8624f574fdb089c68db546a9ed61b5e95243e

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