config module provides an interface for reading and writing configuration values. It includes functions to load, retrieve, and update configuration values for the Prometheux platform.
Configuration Functions
Get Configuration Value
Retrieves a value from the configuration using the specified key.- Python SDK
- REST API
ReturnsThe value associated with the specified key, or
None if the key does not exist.Set Configuration Value
Sets a configuration value for the specified key.- Python SDK
- REST API
Update Multiple Configuration Values
Update multiple configuration values at once from a dictionary.- Python SDK
- REST API
Authentication Token
ThePMTX_TOKEN can be configured in two ways:
Using Environment Variables
Using the SDK Configuration
Configuring LLMs
The Prometheux Chain exploits LLMs to generate more human-readableexplanations, translations of Vadalog rules, graph rag and LLM output validation tasks. By default, no LLM is configured.
Setting up the LLM
To enable and configure an LLM, such as OpenAI’s GPT, follow these steps: 1. Set the LLM Provider:Default Configurations
The SDK uses the following default configurations:User Management
Get User Role
Retrieve the current user’s role.- Python SDK
- REST API
Get Usage Status
Get current API usage statistics and limits.- Python SDK
- REST API
Get Login Activity
Return the distinct IP addresses that have accessed your workspace, with geolocation and access timestamps, most recent first.- Python SDK
- REST API
List LLM Models
Return the available model names for a given LLM provider. The request body carries the provider name plus any provider-specific credentials needed to query its model catalog.- Python SDK
- REST API
Save User Config
Persist user-scoped configuration on the server (for example UI preferences).- Python SDK
- REST API
ReturnsA string status or message from the server.
Load User Config
Load user-scoped configuration from the server.- Python SDK
- REST API
ReturnsA dictionary of configuration key-value pairs.

