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
Copy file name to clipboardExpand all lines: README.md
+13-69Lines changed: 13 additions & 69 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@ The demo demonstrates two usages of GenAI:
10
10
- Unstructured data generation: Generating audio data with ground truth metadata to evaluate the analysis.
11
11
- Unstructured data analysis: Turning audio calls into text and tabular features.
12
12
13
-
The demo contains a single[notebook](./call-center-demo.ipynb)that encompasses the entire demo.
13
+
The demo contains two notebooks[notebook 1](./notebook_1_generation.ipynb)and [notebook 2](./notebook_2_analysis.ipynb).
14
14
15
-
Most of the functions are imported from [MLRun's hub](https://https://www.mlrun.org/hub/), which contains a wide range of functions and modules that can be used for a variety of use cases. See also the [MLRun hub documentation](https://docs.mlrun.org/en/stable/runtimes/load-from-hub.html). All functions used in the demo include links to their source in the hub. All of the python source code is under [/src](./src).
15
+
Most of the functions are imported from [MLRun's hub](https://www.mlrun.org/hub/), which contains a wide range of functions and modules that can be used for a variety of use cases. See also the [MLRun hub documentation](https://docs.mlrun.org/en/stable/runtimes/load-from-hub.html). All functions used in the demo include links to their source in the hub. All of the python source code is under [/src](./src).
16
16
17
-
> **⚠️ Important This demo can take an hour to complete when running without GPUs.**
17
+
> **⚠️ Important This demo can take up to couple of hours to complete when running without GPUs.**
18
18
19
19
## Prerequisites
20
20
@@ -26,9 +26,8 @@ This demo uses:
26
26
*[**Vizro**](https://vizro.mckinsey.com/)— To view the call center DB and transcriptions, and to play the generated conversations.
27
27
*[**MLRun**](https://www.mlrun.org/)— the orchestrator to operationalize the workflow. MLRun 1.9 and higher, Python 3.11, with CPU or GPU.
28
28
*[**SQLAlchemy**](https://www.sqlalchemy.org/)— Manage the MySQL DB of calls, clients and agents. Installed together with MLRun.
29
-
-MySQL database. Installed together with MLRun. (SQLite is not currently supported.)
29
+
- SQLite
30
30
31
-
<aid="installation"></a>
32
31
## Installation
33
32
34
33
This project can run in different development environments:
@@ -54,7 +53,8 @@ Make sure you open the notebooks and select the `mlrun` conda environment
54
53
55
54
The MLRun service and computation can run locally (minimal setup) or over a remote Kubernetes environment.
56
55
57
-
If your development environment supports Docker and there are sufficient CPU resources, run:
56
+
57
+
If your development environment supports Docker and there are sufficient CPU resources (support for Docker setup will be deprecated), run:
58
58
59
59
make mlrun-docker
60
60
@@ -72,31 +72,11 @@ in this repo); see [mlrun client setup](https://docs.mlrun.org/en/stable/install
72
72
> Note: You can also use a remote MLRun service (over Kubernetes): instead of starting a local mlrun:
73
73
edit the [mlrun.env](./mlrun.env) and specify its address and credentials.
74
74
75
-
### Install SQAlchemy
76
-
77
-
```
78
-
!pip install SQLAlchemy==2.0.31 pymysql dotenv
79
-
```
80
-
### Setup
81
-
Set the following configuration: choose compute device: CPU or GPU; choose the language of the calls; and whether to skip the calls generation workflow and use pre-generated data. For example:
82
75
83
-
```
84
-
# True = run with GPU, False = run with CPU
85
-
run_with_gpu = False
86
-
use_sqlite = False
87
-
engine = "remote
88
-
language = "en" # The languages of the calls, es - Spanish, en - English
89
-
skip_calls_generation = False
90
-
```
76
+
#### Setup
91
77
92
-
#### Setup in Platform McK
93
-
94
-
Differences between installing on Iguazio cluster and Platform McKinsey:
-**Description**: Generate the call data. (You can choose to skip this step ans use call data that is already generated and available in the demo.)
161
105
-**Key steps**: To generate data, run: Agents & clients data generator, Insert agents & clients data to DB, Get agents & clients from DB, Conversation generation, Text to Audio, and Batch Creation. and Batch creation. Then run the workflow.
-**Description**: Insert the call data to the DB, use diarization to analyze when each person is speaking, transcribe and translate the calls into text and save them as text files, recognice and remove any PII
175
119
, anaylze text (call center conversation) with an LLM, postprocess the LLM's answers before updating them into the DB. Then run the all analysis workflow.
176
120
-**Key steps**: Insert the calls data to the DB, perform speech diarization, transcribe, recognize PII, analysis. Then run the workflow.
-**Description**: View the data and features, as they are collected, in the MLRun UI. Deploy [Vizro](https://vizro.mckinsey.com/) to visualize the data in the DB.
-**Description**: View the data and features, as they are collected, in the MLRun UI. Deploy [Vizro](https://vizro.mckinsey.com/) to visualize the data in the DB.
0 commit comments