Skip to main content

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, Mistral, and Z.ai are supported. API keys from these respective providers are required.

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:

Metadata

Release files for sigmund 2.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sigmund 2.8.2
File Size Uploaded Provenance Actions
sigmund-2.8.2.tar.gz 6.6 MB Without provenance Details for sigmund-2.8.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sigmund 2.8.2
File Interpreter ABI Platform Actions
sigmund-2.8.2-py3-none-any.whl Python 3 none any Details for sigmund-2.8.2-py3-none-any.whl

Total release size: 13.3 MB

Release files / sigmund-2.8.2.tar.gz

Download URL sigmund-2.8.2.tar.gz
Size 6.6 MB
Tags Source
SHA-256 checksum
How to use checksums
420128db33fcc5e46fc806a4daf34349a418b369736d544a6b172e88dc7a44aa
BLAKE2b-256 checksum
How to use checksums
3a64cfc618a2527e352f17c35e4c40ba7a3de1c1b4a22390da9fc389110de9c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / sigmund-2.8.2-py3-none-any.whl

Download URL sigmund-2.8.2-py3-none-any.whl
Size 6.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b26b7bfc7ea2557f39fa653146f653640f8e35c61ddb6c29717b8b3c99ab55a6
BLAKE2b-256 checksum
How to use checksums
ab8784ef6dfb03bff7d2e97ac8b5be11976b883f32803306159caee66f9cf851
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for sigmund 2.8.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.8.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page