Skip to main content

AI-based chatbot that provides sensible answers based on documentation

Project description

Sigmund AI

Copyright 2023-2026 Sebastiaan Mathôt

A Python library and web app for an LLM-based chatbot:

Features:

Sigmund is not a large language model itself. Rather it uses third-party models. Currently, models from OpenAI, Anthropic, and Mistral are supported. API keys from these respective providers are required.

output2.webm

Configuration

See sigmund/config.py for configuration instructions.

Dependencies

For Python dependencies, see pyproject.toml. In addition to these, pandoc is required for the ability to read attachments, and a local redis server needs to run for persistent data between sessions.

Running (development)

Download the source code, and copy .env.example to .env. Edit this file to specify at least the API keys, and depending on the functionality that you want activate, possibly also other variables. The only variable that is strictly required is the OpenAI API key, because OpenAI is used to create text embeddings, even when a different model is used for the conversation.

Next, install the dependencies, build the documentation index, and launch the app!

pip install .               # install dependencies
python index_library.py     # build library (documentation) index
python app.py               # start the app

Next, access the app (by default) through:

http://127.0.0.1:5000/

Running (production)

In production, the server is generally not run by directly calling the app. There are many ways to run a Flask app in production. One way is to use gunicorn to start the app, and then use an nginx web server as a proxy that reroutes requests to the app. When taking this route, make sure to set up nginx with a large client_max_body_size (to allow attachment uploading) and disable proxy_cache and proxy_buffering (to allow status messages to be streamed while Sigmund is answering).

License

Sigmund is distributed under the terms of the GNU General Public License 3. The full license should be included in the file COPYING, or can be obtained from:

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

sigmund-1.28.1.tar.gz (6.5 MB view details)

Uploaded Source

Built Distribution

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

sigmund-1.28.1-py3-none-any.whl (6.6 MB view details)

Uploaded Python 3

File details

Details for the file sigmund-1.28.1.tar.gz.

File metadata

  • Download URL: sigmund-1.28.1.tar.gz
  • Upload date:
  • Size: 6.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for sigmund-1.28.1.tar.gz
Algorithm Hash digest
SHA256 ecc98f00ec619ce946ce2b93d634d84d81020897cd528a2b0f53cf2e479ba60b
MD5 cc220b71d52008baf07bfcec3dbc1434
BLAKE2b-256 1aeb9e2179fa941b9abbfa64401dc301565b5505ee216e5737f033a349af8908

See more details on using hashes here.

File details

Details for the file sigmund-1.28.1-py3-none-any.whl.

File metadata

  • Download URL: sigmund-1.28.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for sigmund-1.28.1-py3-none-any.whl
Algorithm Hash digest
SHA256 523a4f1a0938a49325de1cf106b85b08b7d9b12d6c0a2944ef9f638b9549eb7c
MD5 bbdae803258bb167f0d8206b7126dea9
BLAKE2b-256 7881d460dc3b65ed6da6d752da8e2c15aeb8559bbb05324d987c2f39c8a04067

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