AI Assistant
Overview
The AI Assistant uses YandexGPT to provide intelligent help with CIS benchmarks, compliance scanning, and hardening troubleshooting.
Navigation
Menu: AI Tools > AI Settings
Features
- Chat Interface - Ask questions about security compliance
- LLM Configurations - Manage YandexGPT settings
- Rule Explanations - AI explains compliance scan rule failures
- Usage Statistics - Track AI usage and costs
Page Layout
The AI Settings page has three tabs:
Chat Tab
Interactive chat interface with the AI assistant.
| Control | Description |
|---|---|
| Config Selector | Select which LLM configuration to use (optional, uses default if not selected) |
| Chat Area | Displays conversation history with markdown support |
| Message Input | Type your question (Enter to send, Shift+Enter for new line) |
| Send | Send the message |
| Clear | Clear conversation history |
Configs Tab
Manage LLM configurations.
| Control | Description |
|---|---|
| Add Config | Create a new LLM configuration |
| Configs Table | List of all configurations |
Usage Tab
View usage statistics with three statistic cards:
- Total Requests - Number of AI API calls
- Input Tokens - Total tokens sent to AI
- Output Tokens - Total tokens received from AI
Configuration Management
Configs Table Columns
| Column | Description |
|---|---|
| Name | Configuration name with robot icon and Default tag if applicable |
| Provider | LLM provider (YandexGPT) |
| Model | Selected model (yandexgpt-lite, yandexgpt, etc.) |
| Catalog ID | Yandex Cloud Catalog ID |
| Auth | Shows API Key (green tag) and/or IAM Token (purple tag) indicators |
| Status | Active (green) or Inactive (gray) |
| Actions | Test, Edit, Delete buttons |
Adding Configuration
- Click Add Config button
- Fill in the configuration form:
| Field | Description | Required |
|---|---|---|
| Name | Configuration name (e.g., “Production YandexGPT”) | Yes |
| Provider | LLM provider (YandexGPT only) | Yes |
| Model | Select from synced models (use Sync Models button to refresh list) | Yes |
| Catalog ID | Your Yandex Cloud Catalog ID (b1g…) | Yes |
| API Key | Yandex Cloud API key (AQVN…) | Yes* |
| IAM Token | Alternative to API key (t1…) | Yes* |
| Temperature | 0 (deterministic) to 1 (creative), default 0.3 | No |
| Max Tokens | Maximum response length, 100-8000, default 2000 | No |
| Active | Enable/disable this configuration | No |
| Default | Set as default configuration | No |
*Either API Key or IAM Token is required.
- Click Create
Syncing Models
The Model dropdown shows available models from Yandex Cloud.
- Click Sync Models button next to the Model label
- Wait for sync to complete
- Select from updated model list
If models need sync, a helper text appears below the dropdown.
Editing Configuration
- Click Edit button on a configuration row
- Modify fields in the modal
- Click Update
Testing Configuration
- Click Test button on a configuration row
- Wait for test to complete
- Success shows:
- Success message with response time
- Response text
- Input/Output tokens
- Duration in milliseconds
- Failure shows error message
Deleting Configuration
- Click Delete button on a configuration row
- Confirm deletion in the popup
Chat Interface
Starting a Conversation
- Go to AI Settings page
- Chat tab is selected by default
- Optionally select a specific configuration from the dropdown
- Type your question in the input field
- Press Enter or click Send
If no configuration is selected, the default active configuration is used.
Chat Features
- Markdown Support: AI responses render as formatted markdown
- User Messages: Displayed on the right with blue background
- AI Messages: Displayed on the left with robot icon
- Loading Indicator: Shows “Thinking…” while waiting for response
- Auto-scroll: Chat scrolls to show new messages
Welcome Screen
When no messages exist, the chat shows:
- Robot icon
- Welcome message
- List of example topics the AI can help with
Example Questions
- “What is CIS benchmark rule 1.1.1.1?”
- “How do I fix SSH configuration issues?”
- “What profile should I use for a web server?”
- “Explain the difference between Level 1 and Level 2”
- “Why might hardening disable my application?”
Chat Capabilities
The assistant can help with:
- CIS benchmark rules and explanations
- Choosing appropriate compliance profiles
- Understanding scan results
- Troubleshooting hardening failures
- Security configuration recommendations
- Best practices for server hardening
Clearing Chat
Click Clear button to start a new conversation.
Keyboard Shortcuts
- Enter: Send message
- Shift+Enter: New line in message
AI Features in Other Pages
Rule Explanation (Compliance Page)
When LLM is configured, an Explain button appears in compliance scan results:
- Go to Compliance page
- View scan results
- Click Explain button on a rule row, or
- Expand the rule and click Explain with AI
- A modal shows AI-generated explanation:
- Rule ID, Severity, and Result tags
- Rule title
- Detailed explanation in markdown format
Model Selection Guide
| Model | Speed | Quality | Cost | Use Case |
|---|---|---|---|---|
| yandexgpt-lite | Fast | Good | Lower | Routine queries, quick answers |
| yandexgpt | Slower | Better | Higher | Complex analysis, detailed explanations |
Best Practices
Effective Questions
- Be specific about your situation
- Include relevant error messages
- Mention the OS and profile used
- Ask one question at a time
Configuration
- Use lower temperature (0.3) for factual answers
- Use higher temperature (0.7) for creative suggestions
- Set reasonable max_tokens to control response length
- Keep one configuration active and set as default
Cost Control
- Disable unused configurations
- Monitor usage statistics on the Usage tab
- Use yandexgpt-lite model when possible
- Clear chat to reduce context length
Troubleshooting
No Response from AI
- Verify configuration is active
- Test configuration connection with Test button
- Check API key is valid and not expired
- Verify Catalog ID is correct
“No active configuration” Warning
- Go to Configs tab
- Ensure at least one configuration is active (green status)
- Toggle the Active switch on a configuration
Slow Responses
- Try yandexgpt-lite model
- Reduce max_tokens setting
- Clear chat history
- Check network connection
Invalid Responses
- Rephrase question
- Provide more context
- Lower temperature for factual queries
- Try different model
Configuration Test Fails
- Verify API key is correct
- Check Catalog ID matches your account
- Ensure YandexGPT is enabled in your cloud
- Check IAM permissions (ai.languageModels.user role)
- Try syncing models to verify connectivity
Models Not Loading
- Click Sync Models button
- Check for network errors
- Verify API key has correct permissions
Yandex Cloud Setup
Getting API Key
- Go to Yandex Cloud Console
- Navigate to IAM > API Keys
- Create a new API key
- Copy the secret key value
Getting Catalog ID
- Go to Yandex Cloud Console
- Navigate to your folder
- Copy the Folder ID (this is your Catalog ID)
Required Permissions
The API key needs the ai.languageModels.user role to access YandexGPT.
Related Pages
- Compliance Scanning - AI rule explanations in scan results
- Settings - General platform settings