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
The tutorial can run in multiple ways. The first step is to configure the ``.env`` file in this repository. This file contains the following variables:
11
+
The LLM Document Chat tutorial is **intended to run on a dockerized Jupyter lab environment** to ensure ideal experience and minimal Python environment hickups. At a minimum, you will need to install [Docker Desktop](https://www.docker.com/products/docker-desktop/) (*which comes with Docker Compose*) to run this example.
12
+
13
+
The project maintains a `.env.template` with the following variables pre-defined:
To use OpenAI, you will need to follow these instructions
49
72
50
-
1. Create an OpenAI account
51
-
2. Create an OpenAI API key
52
-
3. Configure the ``.env`` file adding the specific values for your deployments
73
+
1. Create an OpenAI account.
74
+
2. Create an OpenAI API key.
75
+
3. Configure the ``.env`` file adding the specific values for your deployments.
53
76
54
77
```bash
55
78
OPENAI_API_KEY=<your key here>
56
79
```
57
80
58
81
59
-
### Azure Redis Enterprise, Redis Enterprise Cloud, and Redis Stack
82
+
### Choose your Redis provider
83
+
The tutorial will require the usage of the Redis Search & Query features, including support for Vector Similarity Search. There are three options for running Redis:
60
84
61
-
The tutorial will require the usage of the Redis-stack container because of the use of RediSearch
For each, the following options are **required** and must be updated in your local `.env` file:
70
90
71
91
```bash
72
92
REDIS_PASSWORD=<your password here>
73
-
REDIS_ADDRESS=<your redis address here>
93
+
REDIS_HOST=<your redis host address here>
74
94
REDIS_PORT=<your redis port here>
75
95
```
76
96
77
97
There are some ``docker-compose.yml`` files in the ``docker`` directory that will help spin up
78
98
redis-stack locally and redisinsight in the case where a remote Redis is being used (like ACRE).
79
99
80
-
### Run
81
-
100
+
## Run
82
101
83
-
To run the script, follow these steps:
102
+
To open the jupyter environment through docker, follow these steps:
84
103
85
104
1. Clone this repository to your local machine.
86
-
2. copy the ``.env.template`` to ``.env`` and configure the values as outlined above.
87
-
3. If using a local Python environment, just run the notebook
88
-
3. Otherwise, select a docker-compose file to run and execute ``docker-compose up`` to start the environment.
105
+
2. Copy the ``.env.template`` to ``.env`` and configure the values as outlined above.
106
+
3. Run with Docker Compose:
107
+
108
+
**For Cloud or Azure Redis Enterprise**
109
+
```bash
110
+
docker compose -f docker/cloud/docker-compose.yml up
111
+
```
112
+
113
+
**For Local (Docker) Redis Stack**
114
+
```bash
115
+
docker compose -f docker/local/docker-compose.yml up
116
+
```
117
+
4. Open the Jupyter lab session in your browser at `http://127.0.0.1:8888/lab?token={YOUR GENERATED TOKEN}`. *Check the terminal logs for the token string.*
0 commit comments