-
Notifications
You must be signed in to change notification settings - Fork 54
LCORE-951: example configuration files #770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: Lightspeed Core Service (LCS) | ||
| service: | ||
| host: localhost | ||
| port: 8080 | ||
| auth_enabled: false | ||
| workers: 1 | ||
| color_log: true | ||
| access_log: true | ||
| llama_stack: | ||
| use_as_library_client: false | ||
| url: http://localhost:8321 | ||
| api_key: xyzzy | ||
| user_data_collection: | ||
| feedback_enabled: true | ||
| feedback_storage: "/tmp/data/feedback" | ||
| transcripts_enabled: true | ||
| transcripts_storage: "/tmp/data/transcripts" | ||
| authentication: | ||
| module: "noop" | ||
| quota_handlers: | ||
| sqlite: | ||
| db_path: quota.sqlite | ||
| limiters: | ||
| - name: user_monthly_limits | ||
| type: user_limiter | ||
| initial_quota: 50 | ||
| quota_increase: 50 | ||
| period: "30 seconds" | ||
| - name: cluster_monthly_limits | ||
| type: cluster_limiter | ||
| initial_quota: 100 | ||
| quota_increase: 100 | ||
| period: "30 seconds" | ||
| scheduler: | ||
| # scheduler ticks in seconds | ||
| period: 10 | ||
| byok_rag: | ||
| - rag_id: ocp_docs | ||
| rag_type: inline::faiss | ||
| embedding_dimension: 1024 | ||
| vector_db_id: vector_byok_1 | ||
| db_path: /tmp/ocp.faiss | ||
| - rag_id: knowledge_base | ||
| rag_type: inline::faiss | ||
| embedding_dimension: 384 | ||
| vector_db_id: vector_byok_2 | ||
| db_path: /tmp/kb.faiss | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: Lightspeed Core Service (LCS) | ||
| service: | ||
| host: localhost | ||
| port: 8080 | ||
| auth_enabled: false | ||
| workers: 1 | ||
| color_log: true | ||
| access_log: true | ||
| llama_stack: | ||
| use_as_library_client: true | ||
| library_client_config_path: run.yaml | ||
| user_data_collection: | ||
| feedback_enabled: true | ||
| feedback_storage: "/tmp/data/feedback" | ||
| transcripts_enabled: true | ||
| transcripts_storage: "/tmp/data/transcripts" | ||
| authentication: | ||
| module: "noop" | ||
| conversation_cache: | ||
| type: "postgres" | ||
| postgres: | ||
| host: 127.0.0.1 | ||
| db: test | ||
| user: tester | ||
| password: 123qwe | ||
| ssl_mode: disable | ||
| gss_encmode: disable |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,22 @@ | ||||||||||||||||||
| name: Lightspeed Core Service (LCS) | ||||||||||||||||||
| service: | ||||||||||||||||||
| host: localhost | ||||||||||||||||||
| port: 8080 | ||||||||||||||||||
| auth_enabled: false | ||||||||||||||||||
| workers: 1 | ||||||||||||||||||
| color_log: true | ||||||||||||||||||
| access_log: true | ||||||||||||||||||
| llama_stack: | ||||||||||||||||||
| use_as_library_client: true | ||||||||||||||||||
| library_client_config_path: run.yaml | ||||||||||||||||||
| user_data_collection: | ||||||||||||||||||
| feedback_enabled: true | ||||||||||||||||||
| feedback_storage: "/tmp/data/feedback" | ||||||||||||||||||
| transcripts_enabled: true | ||||||||||||||||||
| transcripts_storage: "/tmp/data/transcripts" | ||||||||||||||||||
| authentication: | ||||||||||||||||||
| module: "noop" | ||||||||||||||||||
| conversation_cache: | ||||||||||||||||||
| type: "sqlite" | ||||||||||||||||||
| sqlite: | ||||||||||||||||||
| db_path: quota.sqlite | ||||||||||||||||||
|
Comment on lines
+19
to
+22
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix YAML indentation inconsistency. Line 22 uses 6 spaces of indentation instead of 4. For consistency with standard YAML conventions and the PostgreSQL variants (e.g., conversation_cache:
type: "sqlite"
sqlite:
- db_path: quota.sqlite
+ db_path: quota.sqlite📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: Lightspeed Core Service (LCS) | ||
| service: | ||
| host: localhost | ||
| port: 8080 | ||
| auth_enabled: false | ||
| workers: 1 | ||
| color_log: true | ||
| access_log: true | ||
| llama_stack: | ||
| use_as_library_client: false | ||
| url: http://localhost:8321 | ||
| api_key: xyzzy | ||
| user_data_collection: | ||
| feedback_enabled: true | ||
| feedback_storage: "/tmp/data/feedback" | ||
| transcripts_enabled: true | ||
| transcripts_storage: "/tmp/data/transcripts" | ||
| authentication: | ||
| module: "noop" | ||
| mcp_servers: | ||
| - name: "server1" | ||
| provider_id: "provider1" | ||
| url: "http://url.com:1" | ||
| - name: "server2" | ||
| provider_id: "provider2" | ||
| url: "http://url.com:2" | ||
| - name: "server3" | ||
| provider_id: "provider3" | ||
| url: "http://url.com:3" |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,42 @@ | ||||||||||||||||||||||||||||||||||||||
| name: Lightspeed Core Service (LCS) | ||||||||||||||||||||||||||||||||||||||
| service: | ||||||||||||||||||||||||||||||||||||||
| host: localhost | ||||||||||||||||||||||||||||||||||||||
| port: 8080 | ||||||||||||||||||||||||||||||||||||||
| auth_enabled: false | ||||||||||||||||||||||||||||||||||||||
| workers: 1 | ||||||||||||||||||||||||||||||||||||||
| color_log: true | ||||||||||||||||||||||||||||||||||||||
| access_log: true | ||||||||||||||||||||||||||||||||||||||
| llama_stack: | ||||||||||||||||||||||||||||||||||||||
| use_as_library_client: false | ||||||||||||||||||||||||||||||||||||||
| url: http://localhost:8321 | ||||||||||||||||||||||||||||||||||||||
| api_key: xyzzy | ||||||||||||||||||||||||||||||||||||||
| user_data_collection: | ||||||||||||||||||||||||||||||||||||||
| feedback_enabled: true | ||||||||||||||||||||||||||||||||||||||
| feedback_storage: "/tmp/data/feedback" | ||||||||||||||||||||||||||||||||||||||
| transcripts_enabled: true | ||||||||||||||||||||||||||||||||||||||
| transcripts_storage: "/tmp/data/transcripts" | ||||||||||||||||||||||||||||||||||||||
| authentication: | ||||||||||||||||||||||||||||||||||||||
| module: "noop" | ||||||||||||||||||||||||||||||||||||||
| quota_handlers: | ||||||||||||||||||||||||||||||||||||||
| postgres: | ||||||||||||||||||||||||||||||||||||||
| host: "127.0.0.1" | ||||||||||||||||||||||||||||||||||||||
| port: 5432 | ||||||||||||||||||||||||||||||||||||||
| db: test | ||||||||||||||||||||||||||||||||||||||
| user: tester | ||||||||||||||||||||||||||||||||||||||
| password: 123qwe | ||||||||||||||||||||||||||||||||||||||
| ssl_mode: disable | ||||||||||||||||||||||||||||||||||||||
| gss_encmode: disable | ||||||||||||||||||||||||||||||||||||||
| limiters: | ||||||||||||||||||||||||||||||||||||||
| - name: user_monthly_limits | ||||||||||||||||||||||||||||||||||||||
| type: user_limiter | ||||||||||||||||||||||||||||||||||||||
| initial_quota: 50 | ||||||||||||||||||||||||||||||||||||||
| quota_increase: 50 | ||||||||||||||||||||||||||||||||||||||
| period: "30 seconds" | ||||||||||||||||||||||||||||||||||||||
| - name: cluster_monthly_limits | ||||||||||||||||||||||||||||||||||||||
| type: cluster_limiter | ||||||||||||||||||||||||||||||||||||||
| initial_quota: 100 | ||||||||||||||||||||||||||||||||||||||
| quota_increase: 100 | ||||||||||||||||||||||||||||||||||||||
| period: "30 seconds" | ||||||||||||||||||||||||||||||||||||||
| scheduler: | ||||||||||||||||||||||||||||||||||||||
| # scheduler ticks in seconds | ||||||||||||||||||||||||||||||||||||||
| period: 10 | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+34
to
+42
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix inconsistent period value format. The scheduler period (line 42) uses a bare number scheduler:
# scheduler ticks in seconds
- period: 10
+ period: "10 seconds"Alternatively, if the schema expects numeric values only in this context, update the limiter periods to match: - name: user_monthly_limits
type: user_limiter
initial_quota: 50
quota_increase: 50
- period: "30 seconds"
+ period: 30📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,36 @@ | ||||||||||||||
| name: Lightspeed Core Service (LCS) | ||||||||||||||
| service: | ||||||||||||||
| host: localhost | ||||||||||||||
| port: 8080 | ||||||||||||||
| auth_enabled: false | ||||||||||||||
| workers: 1 | ||||||||||||||
| color_log: true | ||||||||||||||
| access_log: true | ||||||||||||||
| llama_stack: | ||||||||||||||
| use_as_library_client: false | ||||||||||||||
| url: http://localhost:8321 | ||||||||||||||
| api_key: xyzzy | ||||||||||||||
| user_data_collection: | ||||||||||||||
| feedback_enabled: true | ||||||||||||||
| feedback_storage: "/tmp/data/feedback" | ||||||||||||||
| transcripts_enabled: true | ||||||||||||||
| transcripts_storage: "/tmp/data/transcripts" | ||||||||||||||
| authentication: | ||||||||||||||
| module: "noop" | ||||||||||||||
| quota_handlers: | ||||||||||||||
| sqlite: | ||||||||||||||
| db_path: quota.sqlite | ||||||||||||||
|
Comment on lines
+20
to
+22
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix YAML indentation consistency (SQLite block). Line 22 uses 6 spaces indentation, inconsistent with standard 4-space YAML nesting. This matches the issue in quota_handlers:
sqlite:
- db_path: quota.sqlite
+ db_path: quota.sqlite
🤖 Prompt for AI Agents |
||||||||||||||
| limiters: | ||||||||||||||
| - name: user_monthly_limits | ||||||||||||||
| type: user_limiter | ||||||||||||||
| initial_quota: 50 | ||||||||||||||
| quota_increase: 50 | ||||||||||||||
| period: "30 seconds" | ||||||||||||||
| - name: cluster_monthly_limits | ||||||||||||||
| type: cluster_limiter | ||||||||||||||
| initial_quota: 100 | ||||||||||||||
| quota_increase: 100 | ||||||||||||||
| period: "30 seconds" | ||||||||||||||
| scheduler: | ||||||||||||||
| # scheduler ticks in seconds | ||||||||||||||
| period: 10 | ||||||||||||||
|
Comment on lines
+34
to
+36
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix period value format inconsistency. The scheduler period (line 36) uses bare scheduler:
# scheduler ticks in seconds
- period: 10
+ period: "30 seconds" # or align to numeric format across all examples📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix period value format inconsistency (same as quota-limiter-pg).
The scheduler period (line 36) uses bare
10while limiter periods use"30 seconds"strings. Align the format for consistency across all example configs.scheduler: # scheduler ticks in seconds - period: 10 + period: "10 seconds"📝 Committable suggestion
🤖 Prompt for AI Agents