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

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

Built distribution (wheel)

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

Total release size: 13.2 MB

Release files / sigmund-2.6.3.tar.gz

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

Download URL sigmund-2.6.3-py3-none-any.whl
Size 6.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
14996cc08d5b75ffc119e0d58346b182813394980bec33ea17adfe3e43fc0a97
BLAKE2b-256 checksum
How to use checksums
9506286f323a94ad1c4a369d21b94a90da321e8954a3dc162bfea7ddaa7db269
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.6.3

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