-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
178 lines (162 loc) · 5.97 KB
/
Copy pathconfig.example.yaml
File metadata and controls
178 lines (162 loc) · 5.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Example configuration for OpenWebUI GitHub Connector
# Copy this file to config.yaml and update the values
log_level: info
# Sync schedule configuration
schedule:
interval: 1h # Options: 30m, 1h, 2h, 6h, 12h, 24h
# Local storage configuration
storage:
path: /data # Path where files will be stored locally
# OpenWebUI API configuration
openwebui:
base_url: "http://localhost:8080" # OpenWebUI instance URL
api_key: "" # Set via OPENWEBUI_API_KEY environment variable
# GitHub adapter configuration
github:
enabled: true
token: "" # Set via GITHUB_TOKEN environment variable
mappings:
- repository: "owner/repo1"
knowledge_id: "knowledge-base-1"
- repository: "owner/repo2"
knowledge_id: "knowledge-base-2"
- repository: "microsoft/vscode"
knowledge_id: "vscode-knowledge-base"
# Confluence adapter configuration
confluence:
enabled: false
base_url: "https://your-domain.atlassian.net" # Your Confluence instance URL
username: "your-email@example.com" # Your Confluence username (usually email)
api_key: "" # Set via CONFLUENCE_API_KEY environment variable
# Space mappings (per-space knowledge IDs)
space_mappings:
- space_key: "SPACEKEY1"
knowledge_id: "space1-knowledge-base"
- space_key: "SPACEKEY2"
knowledge_id: "space2-knowledge-base"
- space_key: "DOCS"
knowledge_id: "docs-knowledge-base"
# Parent page mappings (per-parent-page knowledge IDs)
parent_page_mappings:
- parent_page_id: "3098214470"
knowledge_id: "parent-page-knowledge-base"
- parent_page_id: "1234567890"
knowledge_id: "another-parent-page-knowledge-base"
page_limit: 100 # Maximum pages to fetch per space (0 = no limit)
include_attachments: true # Whether to download and sync page attachments
# Local Folders adapter configuration
local_folders:
enabled: false
mappings:
- folder_path: "/path/to/docs"
knowledge_id: "docs-knowledge-base"
- folder_path: "/path/to/guides"
knowledge_id: "guides-knowledge-base"
- folder_path: "/path/to/notes"
knowledge_id: "notes-knowledge-base"
# Slack adapter configuration
slack:
enabled: false
token: "" # Set via SLACK_TOKEN environment variable
channel_mappings:
- channel_id: "C1234567890" # Slack channel ID
channel_name: "general" # Channel name for display
knowledge_id: "general-knowledge-base"
- channel_id: "C0987654321"
channel_name: "dev-team"
knowledge_id: "dev-knowledge-base"
- channel_id: "C1122334455"
channel_name: "support"
knowledge_id: "support-knowledge-base"
regex_patterns:
# Auto-discover and join channels matching regex patterns
- pattern: "^sales-.*-internal$" # Matches channels like "sales-team-internal", "sales-west-internal"
knowledge_id: "sales-knowledge-base"
auto_join: true # Automatically join matching channels
- pattern: "^dev-.*" # Matches channels like "dev-frontend", "dev-backend", "dev-ops"
knowledge_id: "dev-knowledge-base"
auto_join: true
- pattern: "^support-.*" # Matches channels like "support-tier1", "support-escalation"
knowledge_id: "support-knowledge-base"
auto_join: false # Discover but don't auto-join (manual approval required)
- pattern: "^alert-.*" # Matches channels like "alert-production", "alert-staging"
knowledge_id: "monitoring-knowledge-base"
auto_join: true
days_to_fetch: 30 # Number of days to fetch messages (default: 30)
maintain_history: false # Whether to maintain indefinite history or age off (default: false)
message_limit: 1000 # Max messages per channel per run (default: 1000)
include_threads: true # Whether to include thread messages (default: true)
include_reactions: false # Whether to include reaction data (default: false)
# Jira adapter configuration
jira:
enabled: false
base_url: "https://your-domain.atlassian.net" # Your Jira instance URL
username: "your-email@example.com" # Your Jira username (usually email)
api_key: "" # Set via JIRA_API_KEY environment variable
page_limit: 100 # Maximum pages to fetch per space (0 = no limit)
project_mappings:
- project_key: "PROJ"
knowledge_id: "your-knowledge-base-id"
- project_key: "ANOTHER"
knowledge_id: "another-knowledge-base-id"
# Example configurations for different environments:
# Development
# log_level: debug
# schedule:
# interval: 5m
# openwebui:
# base_url: "http://localhost:8080"
# api_key: "dev-api-key"
# confluence:
# enabled: true
# base_url: "https://dev-company.atlassian.net"
# username: "dev-user@company.com"
# api_key: "dev-confluence-api-key"
# spaces:
# - "DEV"
# knowledge_id: "dev-knowledge-base-id"
# page_limit: 50
# include_attachments: false
# Production
# log_level: info
# schedule:
# interval: 1h
# openwebui:
# base_url: "https://openwebui.yourdomain.com"
# api_key: "prod-api-key"
# confluence:
# enabled: true
# base_url: "https://company.atlassian.net"
# username: "sync-bot@company.com"
# api_key: "prod-confluence-api-key"
# spaces:
# - "DOCS"
# - "WIKI"
# - "PROJECTS"
# knowledge_id: "prod-knowledge-base-id"
# page_limit: 500
# include_attachments: true
# Kubernetes (using environment variables)
# All values should be set via environment variables or ConfigMap
# log_level: info
# schedule:
# interval: 1h
# storage:
# path: /data
# openwebui:
# base_url: "" # Set via OPENWEBUI_BASE_URL
# api_key: "" # Set via OPENWEBUI_API_KEY
# github:
# enabled: true
# token: "" # Set via GITHUB_TOKEN
# repositories: [] # Set via ConfigMap
# knowledge_id: "" # Set via GITHUB_KNOWLEDGE_ID
# confluence:
# enabled: false
# base_url: "" # Set in ConfigMap
# username: "" # Set in ConfigMap
# api_key: "" # Set via CONFLUENCE_API_KEY
# spaces: [] # Set in ConfigMap
# knowledge_id: "" # Set in ConfigMap
# page_limit: 100
# include_attachments: true