|
9 | 9 | [](https://github.com/lightspeed-core/lightspeed-stack/releases/tag/0.1.3) |
10 | 10 |
|
11 | 11 | 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 --> |
@@ -51,6 +53,8 @@ Lightspeed Core Stack (LCS) is an AI-powered assistant that provides answers to |
51 | 53 | * [Project structure](#project-structure) |
52 | 54 | * [Configuration classes](#configuration-classes) |
53 | 55 | * [REST API](#rest-api) |
| 56 | +* [Data Export Integration](#data-export-integration) |
| 57 | + |
54 | 58 |
|
55 | 59 | <!-- vim-markdown-toc --> |
56 | 60 |
|
@@ -198,6 +202,31 @@ user_data_collection: |
198 | 202 | transcripts_storage: "/tmp/data/transcripts" |
199 | 203 | ``` |
200 | 204 |
|
| 205 | +## User data collection |
| 206 | + |
| 207 | +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. |
| 208 | + |
| 209 | +User data collection is configured in the `user_data_collection` section of the configuration file: |
| 210 | + |
| 211 | +```yaml |
| 212 | +user_data_collection: |
| 213 | + feedback_enabled: true |
| 214 | + feedback_storage: "/tmp/data/feedback" |
| 215 | + transcripts_enabled: true |
| 216 | + transcripts_storage: "/tmp/data/transcripts" |
| 217 | +``` |
| 218 | +
|
| 219 | +**Configuration options:** |
| 220 | +
|
| 221 | +- `feedback_enabled`: Enable/disable collection of user feedback data |
| 222 | +- `feedback_storage`: Directory path where feedback JSON files are stored |
| 223 | +- `transcripts_enabled`: Enable/disable collection of conversation transcripts |
| 224 | +- `transcripts_storage`: Directory path where transcript JSON files are stored |
| 225 | + |
| 226 | +> **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. |
| 227 | + |
| 228 | +For data export integration with Red Hat's Dataverse, see the [Data Export Integration](#data-export-integration) section. |
| 229 | + |
201 | 230 | ## System prompt |
202 | 231 |
|
203 | 232 | 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: |
@@ -524,7 +553,27 @@ This script re-generated OpenAPI schema for the Lightspeed Service REST API. |
524 | 553 | make schema |
525 | 554 | ``` |
526 | 555 |
|
| 556 | +# Data Export Integration |
| 557 | + |
| 558 | +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. |
| 559 | + |
| 560 | +## Quick Integration |
| 561 | + |
| 562 | +1. **Enable data collection** in your `lightspeed-stack.yaml`: |
| 563 | + ```yaml |
| 564 | + user_data_collection: |
| 565 | + feedback_enabled: true |
| 566 | + feedback_storage: "/shared/data/feedback" |
| 567 | + transcripts_enabled: true |
| 568 | + transcripts_storage: "/shared/data/transcripts" |
| 569 | + ``` |
| 570 | +
|
| 571 | +2. **Deploy the exporter service** pointing to the same data directories |
| 572 | +
|
| 573 | +
|
| 574 | +## Documentation |
527 | 575 |
|
| 576 | +For complete integration setup, deployment options, and configuration details, see [exporter repository](https://github.com/lightspeed-core/lightspeed-to-dataverse-exporter). |
528 | 577 |
|
529 | 578 | # Project structure |
530 | 579 |
|
|
0 commit comments