Skip to content

Commit d7dc087

Browse files
authored
Merge pull request #389 from onmete/data-collection-docs
LCORE-472: Add data collection documentation
2 parents 1bedb31 + fd94d20 commit d7dc087

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
[![Tag](https://img.shields.io/github/v/tag/lightspeed-core/lightspeed-stack)](https://github.com/lightspeed-core/lightspeed-stack/releases/tag/0.1.3)
1010

1111
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.
1214

1315

1416
<!-- vim-markdown-toc GFM -->
@@ -51,6 +53,8 @@ Lightspeed Core Stack (LCS) is an AI-powered assistant that provides answers to
5153
* [Project structure](#project-structure)
5254
* [Configuration classes](#configuration-classes)
5355
* [REST API](#rest-api)
56+
* [Data Export Integration](#data-export-integration)
57+
5458

5559
<!-- vim-markdown-toc -->
5660

@@ -198,6 +202,31 @@ user_data_collection:
198202
transcripts_storage: "/tmp/data/transcripts"
199203
```
200204

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+
201230
## System prompt
202231

203232
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.
524553
make schema
525554
```
526555

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
527575
576+
For complete integration setup, deployment options, and configuration details, see [exporter repository](https://github.com/lightspeed-core/lightspeed-to-dataverse-exporter).
528577
529578
# Project structure
530579

0 commit comments

Comments
 (0)