You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lightspeed Core Stack (LCS) is an AI-powered assistant that provides answers to product questions using backend LLM services, agents, and RAG databases.
12
+
13
+
The service includes comprehensive user data collection capabilities for various types of user interaction data, which can be exported to Red Hat's Dataverse for analysis using the companion [lightspeed-to-dataverse-exporter](https://github.com/lightspeed-core/lightspeed-to-dataverse-exporter) service.
12
14
13
15
14
16
<!-- vim-markdown-toc GFM -->
@@ -22,6 +24,7 @@ Lightspeed Core Stack (LCS) is an AI-powered assistant that provides answers to
22
24
*[Llama Stack project and configuration](#llama-stack-project-and-configuration)
23
25
*[Check connection to Llama Stack](#check-connection-to-llama-stack)
24
26
*[Llama Stack as client library](#llama-stack-as-client-library)
27
+
*[User data collection](#user-data-collection)
25
28
*[System prompt](#system-prompt)
26
29
*[Safety Shields](#safety-shields)
27
30
*[Usage](#usage)
@@ -42,6 +45,7 @@ Lightspeed Core Stack (LCS) is an AI-powered assistant that provides answers to
42
45
*[Utility to generate OpenAPI schema](#utility-to-generate-openapi-schema)
The Lightspeed Core Stack includes comprehensive user data collection capabilities to gather various types of user interaction data for analysis and improvement. This includes feedback, conversation transcripts, and other user interaction data.
200
+
201
+
User data collection is configured in the `user_data_collection` section of the configuration file:
202
+
203
+
```yaml
204
+
user_data_collection:
205
+
feedback_enabled: true
206
+
feedback_storage: "/tmp/data/feedback"
207
+
transcripts_enabled: true
208
+
transcripts_storage: "/tmp/data/transcripts"
209
+
```
210
+
211
+
**Configuration options:**
212
+
213
+
- `feedback_enabled`: Enable/disable collection of user feedback data
214
+
- `feedback_storage`: Directory path where feedback JSON files are stored
215
+
- `transcripts_enabled`: Enable/disable collection of conversation transcripts
216
+
- `transcripts_storage`: Directory path where transcript JSON files are stored
217
+
218
+
> **Note**: The data collection system is designed to be extensible. Additional data types can be configured and collected as needed for your specific use case.
219
+
220
+
For data export integration with Red Hat's Dataverse, see the [Data Export Integration](#data-export-integration) section.
221
+
193
222
## System prompt
194
223
195
224
The service uses the, so called, system prompt to put the question into context before the question is sent to the selected LLM. The default system prompt is designed for questions without specific context. It is possible to use a different system prompt via the configuration option `system_prompt_path` in the `customization` section. That option must contain the path to the text file with the actual system prompt (can contain multiple lines). An example of such configuration:
@@ -418,7 +447,27 @@ This script re-generated OpenAPI schema for the Lightspeed Service REST API.
418
447
make schema
419
448
```
420
449
450
+
# Data Export Integration
451
+
452
+
The Lightspeed Core Stack integrates with the [lightspeed-to-dataverse-exporter](https://github.com/lightspeed-core/lightspeed-to-dataverse-exporter) service to automatically export various types of user interaction data to Red Hat's Dataverse for analysis.
453
+
454
+
## Quick Integration
455
+
456
+
1.**Enable data collection** in your `lightspeed-stack.yaml`:
457
+
```yaml
458
+
user_data_collection:
459
+
feedback_enabled: true
460
+
feedback_storage: "/shared/data/feedback"
461
+
transcripts_enabled: true
462
+
transcripts_storage: "/shared/data/transcripts"
463
+
```
464
+
465
+
2. **Deploy the exporter service** pointing to the same data directories
466
+
467
+
468
+
## Documentation
421
469
470
+
For complete integration setup, deployment options, and configuration details, see [exporter repository](https://github.com/lightspeed-core/lightspeed-to-dataverse-exporter).
0 commit comments