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
tar -xz --strip=2 elasticsearch-labs-main/example-apps/workplace-search
14
14
```
15
15
16
-
## 2. Index Data
16
+
## 2. Credentials
17
17
18
-
You can index the data from the provided .json files by following the [README](./example-data/README.md) instructions in the `example-data` folder. At the moment indexing your own data should be possible. The UI will attempt to use the URL in the data file for the HTML link to the source.
19
-
20
-
### Loading your own data
21
-
22
-
See the [medicare](./example-data/README.md#loading-custom-data) example in the example-data folder for loding your own data.
23
-
24
-
## 3. Credentials
25
-
26
-
Requires the following environment variables to be set.
18
+
This app requires the following environment variables to be set:
27
19
28
20
```sh
29
21
export ELASTIC_CLOUD_ID=...
@@ -34,6 +26,15 @@ export OPENAI_API_KEY=...
34
26
35
27
Note: you can get your OpenAI key from the [OpenAI dashboard](https://platform.openai.com/account/api-keys).
36
28
29
+
30
+
## 3. Index Data
31
+
32
+
You can index the data from the provided .json files in the `data` folder:
33
+
34
+
```sh
35
+
python data/index-data.py
36
+
```
37
+
37
38
## Developing
38
39
39
40
With the environment variables set, you can run the following commands to start the server and frontend.
@@ -45,18 +46,33 @@ With the environment variables set, you can run the following commands to start
45
46
46
47
### Install the dependencies
47
48
49
+
For Python we recommend using a virtual environment.
50
+
51
+
_ℹ️ Here's a good [primer](https://realpython.com/python-virtual-environments-a-primer) on virtual environments from Real Python._
0 commit comments