Environment variables Documentation Feature Flag — Unique AI Documentation

Environment variables Documentation Feature Flag

4 min read

Feature Group Variable Possible Values Services Whats does it do?
Net Promoter FEATURE_FLAG_NET_PROMOTER_SCORE_UI_UN_7747 next-chat Enable net promoter modal
Service Now Feedback FEATURE_FLAG_SERVICE_NOW_FEEDBACK_UN_9322 next-chat
FEATURE_FLAG_ENABLE_PPT_PAGE_BASED_CHUNKING_UN_9444 node-ingestion-worker
Advanced Charts FEATURE_FLAG_ENABLE_ADVANCED_FORMATTING_UN_9758 next-chat Enable advanced formatting in chat, currently only used for financial chart.
FEATURE_FLAG_EXCEL_INGESTION_UN_9855 node-ingestion-worker
FEATURE_FLAG_ENABLE_SEARCH_ADAPTER_ELASTICSEARCH_UN_9883 node-ingestion
Space 2.0 FEATURE_FLAG_ENABLE_SPACE_LANDING_PAGE_UN_9930 next-admin Enable manage all space view with tile and type UI.
Space 2.0 FEATURE_FLAG_ABOUT_SPACE_SECTION_UN_10270 next-chat Enable select files in chat (e.g context window)
FEATURE_FLAG_ENABLE_LANDSCAPED_PDF_PAGE_BASED_CHUNKING_UN_10606 node-ingestion-worker
References in Chat FEATURE_FLAG_NEW_SOURCE_REFERENCES_UN_10906 next-chat Enable new UI for references in chat
FEATURE_FLAG_CONFIGURE_FILE_METADATA_UN_10908 knowledge-upload Activates static metadata feature that allows admin to define static metadata in the UI that should be present on all files in the scope
Space 2.0 FEATURE_FLAG_ENABLE_SPACES_2_0_UN_11203 next-chat, next-admin Enable space 2.0 creation form
FEATURE_FLAG_ENABLE_EXPAND_HIGHLIGHT_RANGE_UN_11265 node-ingestion-worker
FEATURE_FLAG_USER_API_KEY_GENERATION_UN_11416 next-chat, next-admin, knowledge-upload, next-theme Show in user menu API key for all users
Folder Admin FEATURE_FLAG_ENABLE_CAN_MANAGE_ACCESS_UN_11608 knowledge-upload, node-scope-management Enable none admin user to manage a folder
MCP FEATURE_FLAG_ENABLE_MCP_UN_11963 & FEATURE_FLAG_ENABLE_MCP_ADMIN_UN_14099 true, false next-chat, next-admin, next-theme, knowledge-upload,
node-chat
Enable MCP in admin and chat
Requires CHAT_FRONTEND_URL being set on chat backend service.
`MCP_POLICY_MODE="UNRESTRICTED" # STRICT PATTERN UNRESTRICTED MCP_ALLOWED_ENDPOINTS="*" # .unique.app, mcp..com MCP_DENIED_ENDPOINTS=""`
FEATURE_FLAG_ENABLE_MULTIPART_UPLOAD_UN_12024 knowledge-upload
Deep Research FEATURE_FLAG_ENABLE_DEEP_RESEARCH_UN_12630 next-admin, next-chat Enable deep research tool.
FEATURE_FLAG_ENABLE_ELASTICSEARCH_INDEXING node-ingestion
Save Model Usage FEATURE_FLAG_SAVE_MODEL_USAGE_UN_12832 node-chat Used to save model usage for public APIs.
FEATURE_FLAG_SAVE_MODEL_USAGE_DASHBOARD_UN_18889 next-chat
next-admin
Turns on cost dashboard view in the UI. The view surfaces the model usage and costs.
Use OpenAI V1 endpoints FEATURE_FLAG_USE_OPENAI_V1_13819 node-chat Enable V1 endpoints for Azure models.
Sub-agents FEATURE_FLAG_ENABLE_SUB_AGENTS_UN_13661 next-admin Enable sub-agents space creation in Admin
Agentic Table FEATURE_FLAG_ENABLE_MAGIC_TABLE_UN_8472 next-admin, next-chat Enables the Agentic Table UI for spaces, including the overview, sheet creation, and table sheet pages.
FEATURE_FLAG_AGENTIC_TABLE_ENABLE_NEW_SHARING_UI_UN_16758 next-chat Enables a new sharing feature that allows for more fine-grained access control.
FEATURE_FLAG_AGENTIC_TABLE_ERROR_BANNER_UN_11777 next-chat Introduces an error notification banner to alert users when the agent encounters a failure.
FEATURE_FLAG_AGENTIC_TABLE_CONTEXT_UN_14904 next-chat Allows defining Agentic Table instructions to be considered when processing an Agentic Table.
FEATURE_FLAG_AGENTIC_TABLE_SHEET_METADATA_UN_14904 next-chat Allows defining sheet-level metadata to be considered when processing an Agentic Table.
FEATURE_FLAG_AGENTIC_TABLE_ROW_METADATA_UN_14904 next-chat Allows defining row-level metadata to be considered when processing an Agentic Table.
FEATURE_FLAG_AGENTIC_TABLE_COMMENTS_UN_17606 next-chat Enable inline comments on cells in the Agentic Table with threaded replies, @mentions, resolve/re-open and a dedicated side panel for triage.
Code Execution FEATURE_FLAG_USE_OPENAI_V1_13819 next-chat Code execution (all three required):
Allows using the OpenAI v1 API, which is required for code execution.
Enables the code execution tool for assistants.
Allows loading the list of available tools from the Python service so the code execution tool is offered.
All three flags must be enabled for code execution to work.
FEATURE_FLAG_ENABLE_CODE_EXECUTION_UN_17498 next-chat, next-admin
SOURCE_AVAILABLE_TOOLS_REMOTELY next-chat
Analytics ANONYMIZED_CHAT_INTERACTIONS_EXPORT true, false node-chat Enables anonymization of user email in the export
ANONYMIZED_CHAT_INTERACTIONS_EXPORT_TYPE null, idempotent node-chat Used together with ANONYMIZED_CHAT_INTERACTIONS_EXPORT to allow masking user identity behind an idempotent pseudonym for analytics export
Answer UI FEATURE_FLAG_ENABLE_NEW_ANSWER_FORMATTING_UN_14392 true, false next-chat Enable new UI for chat messages
References Style FEATURE_FLAG_REFERENCE_STYLE_REVAMP_UN_16900 true
false
companyid1,companyid2,…
next-chat Changes the visualisation of the references in chat showing up to three before aggregation
FEATURE_FLAG_REFERENCE_STYLE_2_UN_16900 true
false
companyid1,companyid2,…
next-chat Changes the visualisation of the references in chat to numbers instead of text showing up to five before aggregation.
Note: Requires FEATURE_FLAG_REFERENCE_STYLE_REVAMP_UN_16900 turned on
User-Group-Sync-Management SCOPE_MANAGEMENT_IDP_ROLE_MANAGEMENT GRANT_AND_REVOKE, GRANT_ONLY (default), IGNORE node-scope-management Role management for roles in Unique AI towards the IDP
This flag is only about Unique AI --> IDP
It affects logic when membership changes or role assignments on groups are detected on Unique AI
SCOPE_MANAGEMENT_IDP_LINKING DISABLED, anythingElse Defines the IDP linking strategy for the SCIM user creation.
SCOPE_MANAGEMENT_DEFAULT_USER_ROLES chat.chat.basic (default), chat.chat.basic,chat.knowledge.read Defines which roles a user gets granted when created with SCIM.
Event distribution per module FEATURE_FLAG_ENABLE_MODULE_BASED_EVENT_DISTRIBUTION_UN_15312 true
false
companyid1,companyid2,…
node-chat, node-app-repository,
node-webhook-scheduler
Enables Module based Filtering and event distribution.
FEATURE_FLAG_ENABLE_ENDPOINT_MODULES_UN_15310 true
false(default)
next-admin Enables selecting which AI modules should receive events on the endpoint in admin.
PG SSL Mode PG_DATABASE_SSL_MODE verify, verify-full all backend apps With Prisma upgrade to 7.0. It now requires we explicitly set the SSL_MODE of the database. Setting to verify is usually enough. More details about this here
Redis Cluster Mode PUBSUB_REDIS_CLUSTER_MODE false
true
node-chat Enables Redis cluster mode for node-chat application
PUBSUB_REDIS_CLUSTER_NODES <br>'[<br>{"host":"localhost","port":10130},<br>{"host":"localhost","port":10131}<br>]'<br> node-chat A JSON list of Redis Cluster nodes (host & port)
PUBSUB_REDIS_CLUSTER_USERNAME default
any-username-of-your-choosing
node-chat Configures the username to use to connect to the Redis Cluster
PUBSUB_REDIS_CLUSTER_PASSWORD secret-password
any-password-of-your-choosing
node-chat Configures the password to use to connect to the Redis Cluster
PUBSUB_REDIS_CLUSTER_ENABLE_TLS false
true
node-chat Whether to configure the connection with TLS support. Only when using TLS Redis
PUBSUB_REDIS_TLS_REJECT_UNAUTHORIZED true
false
node-chat Whether to reject unverified or self-signed CA, when using Redis with TLS
Session Timeout FEATURE_FLAG_ENABLE_SESSION_TIMEOUT_UN_15656 true
false
next-chat
next-admin
next-theme
knowledge-upload
Whether to enable automatic log out of users after 30 minutes of inactivity.
End user spaces FEATURE_FLAG_ENABLE_END_USER_SPACE_UN_8855 true
false
next-chat
next-admin
Whether to enable end user spaces creation and management