|
53 | 53 | "output_type": "stream", |
54 | 54 | "text": [ |
55 | 55 | "Cloning into 'temp_repo'...\r\n", |
56 | | - "remote: Enumerating objects: 679, done.\u001b[K\r\n", |
57 | | - "remote: Counting objects: 100% (330/330), done.\u001b[Kjects: 82% (271/330)\u001b[K\r\n", |
58 | | - "remote: Compressing objects: 100% (214/214), done.\u001b[K\r\n", |
59 | | - "remote: Total 679 (delta 227), reused 148 (delta 115), pack-reused 349 (from 2)\u001b[K\r\n", |
| 56 | + "remote: Enumerating objects: 679, done.\u001B[K\r\n", |
| 57 | + "remote: Counting objects: 100% (330/330), done.\u001B[Kjects: 82% (271/330)\u001B[K\r\n", |
| 58 | + "remote: Compressing objects: 100% (214/214), done.\u001B[K\r\n", |
| 59 | + "remote: Total 679 (delta 227), reused 148 (delta 115), pack-reused 349 (from 2)\u001B[K\r\n", |
60 | 60 | "Receiving objects: 100% (679/679), 57.80 MiB | 11.09 MiB/s, done.\r\n", |
61 | 61 | "Resolving deltas: 100% (295/295), done.\r\n", |
62 | 62 | "mv: rename temp_repo/python-recipes/RAG/resources to ./resources: Directory not empty\r\n" |
|
99 | 99 | "output_type": "stream", |
100 | 100 | "text": [ |
101 | 101 | "\r\n", |
102 | | - "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m24.0\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.0.1\u001b[0m\r\n", |
103 | | - "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\r\n", |
| 102 | + "\u001B[1m[\u001B[0m\u001B[34;49mnotice\u001B[0m\u001B[1;39;49m]\u001B[0m\u001B[39;49m A new release of pip is available: \u001B[0m\u001B[31;49m24.0\u001B[0m\u001B[39;49m -> \u001B[0m\u001B[32;49m25.0.1\u001B[0m\r\n", |
| 103 | + "\u001B[1m[\u001B[0m\u001B[34;49mnotice\u001B[0m\u001B[1;39;49m]\u001B[0m\u001B[39;49m To update, run: \u001B[0m\u001B[32;49mpip install --upgrade pip\u001B[0m\r\n", |
104 | 104 | "Note: you may need to restart the kernel to use updated packages.\n" |
105 | 105 | ] |
106 | 106 | } |
|
110 | 110 | ] |
111 | 111 | }, |
112 | 112 | { |
| 113 | + "metadata": {}, |
113 | 114 | "cell_type": "markdown", |
114 | | - "metadata": { |
115 | | - "id": "peC8ThuVJkD7" |
116 | | - }, |
117 | 115 | "source": [ |
118 | | - "### Install Redis Stack\n", |
| 116 | + "### Install Redis\n", |
119 | 117 | "\n", |
120 | | - "Later in this tutorial, Redis will be used to store, index, and query vector\n", |
121 | | - "embeddings created from PDF document chunks. **We need to make sure we have a Redis\n", |
122 | | - "instance available.**" |
123 | | - ] |
124 | | - }, |
125 | | - { |
126 | | - "cell_type": "markdown", |
127 | | - "metadata": { |
128 | | - "id": "zMKHJ7oWJkD8" |
129 | | - }, |
130 | | - "source": [ |
131 | | - "#### For Colab\n", |
132 | | - "Use the shell script below to download, extract, and install [Redis Stack](https://redis.io/docs/getting-started/install-stack/) directly from the Redis package archive." |
| 118 | + "For this tutorial you will need a running instance of Redis if you don't already have one.\n", |
| 119 | + "\n", |
| 120 | + "#### Local Redis\n", |
| 121 | + "Use the shell script below to download, extract, and install [Redis](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/apt/) directly from the Redis package archive for a Linux environment." |
133 | 122 | ] |
134 | 123 | }, |
135 | 124 | { |
| 125 | + "metadata": {}, |
136 | 126 | "cell_type": "code", |
137 | | - "execution_count": null, |
138 | | - "metadata": { |
139 | | - "colab": { |
140 | | - "base_uri": "https://localhost:8080/" |
141 | | - }, |
142 | | - "id": "c0d5lfNxJkD8", |
143 | | - "outputId": "f96e72fa-b9f3-476f-bc9e-328bd30d1344" |
144 | | - }, |
145 | 127 | "outputs": [], |
| 128 | + "execution_count": 20, |
146 | 129 | "source": [ |
147 | 130 | "# NBVAL_SKIP\n", |
148 | 131 | "%%sh\n", |
| 132 | + "sudo apt-get install lsb-release curl gpg\n", |
149 | 133 | "curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg\n", |
| 134 | + "sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg\n", |
150 | 135 | "echo \"deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main\" | sudo tee /etc/apt/sources.list.d/redis.list\n", |
151 | | - "sudo apt-get update > /dev/null 2>&1\n", |
152 | | - "sudo apt-get install redis-stack-server > /dev/null 2>&1\n", |
153 | | - "redis-stack-server --daemonize yes" |
| 136 | + "sudo apt-get update\n", |
| 137 | + "sudo apt-get install redis\n", |
| 138 | + "\n", |
| 139 | + "redis-server --version\n", |
| 140 | + "redis-server --daemonize yes --loadmodule /usr/lib/redis/modules/redisearch.so" |
154 | 141 | ] |
155 | 142 | }, |
156 | 143 | { |
| 144 | + "metadata": {}, |
157 | 145 | "cell_type": "markdown", |
158 | | - "metadata": { |
159 | | - "id": "2arb8Ic0JkD8" |
160 | | - }, |
161 | 146 | "source": [ |
162 | | - "#### For Alternative Environments\n", |
| 147 | + "#### Alternative Redis Access (Cloud, Docker, other)\n", |
163 | 148 | "There are many ways to get the necessary redis-stack instance running\n", |
164 | 149 | "1. On cloud, deploy a [FREE instance of Redis in the cloud](https://redis.com/try-free/). Or, if you have your\n", |
165 | 150 | "own version of Redis Enterprise running, that works too!\n", |
166 | 151 | "2. Per OS, [see the docs](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/)\n", |
167 | | - "3. With docker: `docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest`" |
| 152 | + "3. With docker: `docker run -d --name redis -p 6379:6379 redis:latest`" |
168 | 153 | ] |
169 | 154 | }, |
170 | 155 | { |
|
0 commit comments