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.1

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.1
File Size Uploaded Provenance Actions
sigmund-2.8.1.tar.gz 6.6 MB Without provenance Details for sigmund-2.8.1.tar.gz

Built distribution (wheel)

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

Total release size: 13.3 MB

Release files / sigmund-2.8.1.tar.gz

Download URL sigmund-2.8.1.tar.gz
Size 6.6 MB
Tags Source
SHA-256 checksum
How to use checksums
a28d89d984f7fc6b62f4e9c6a817ecb8af62636762086f810565cbe658937fe2
BLAKE2b-256 checksum
How to use checksums
d0909cf1d841e51a2506119fbbab3b8f7c58afc6609fdea2e421d8fdc85420ef
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.1-py3-none-any.whl

Download URL sigmund-2.8.1-py3-none-any.whl
Size 6.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
df2dc9027a8231ff3f8700ab77dd55b0b8f1ca87ede227beb4d518ef4d96068b
BLAKE2b-256 checksum
How to use checksums
e5bc83bc0a23cd640bae955b01e43d1505189eb5e93d4bc1bb6f2d84471267ed
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.1

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.1 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