|
87 | 87 | "output_type": "stream", |
88 | 88 | "text": [ |
89 | 89 | "\n", |
90 | | - "\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\n", |
91 | | - "\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\n", |
| 90 | + "\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\n", |
| 91 | + "\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\n", |
92 | 92 | "Note: you may need to restart the kernel to use updated packages.\n" |
93 | 93 | ] |
94 | 94 | } |
|
98 | 98 | ] |
99 | 99 | }, |
100 | 100 | { |
101 | | - "cell_type": "code", |
102 | | - "execution_count": 3, |
103 | 101 | "metadata": {}, |
104 | | - "outputs": [], |
105 | | - "source": [ |
106 | | - "import redisvl\n", |
107 | | - "assert redisvl.__version__ >= '0.3.4'" |
108 | | - ] |
109 | | - }, |
110 | | - { |
111 | 102 | "cell_type": "markdown", |
112 | | - "metadata": {}, |
113 | 103 | "source": [ |
114 | | - "## Run Redis Stack\n", |
| 104 | + "### Install Redis\n", |
115 | 105 | "\n", |
116 | 106 | "For this tutorial you will need a running instance of Redis if you don't already have one.\n", |
117 | 107 | "\n", |
118 | | - "#### For Colab\n", |
119 | | - "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." |
| 108 | + "#### Local Redis\n", |
| 109 | + "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." |
120 | 110 | ] |
121 | 111 | }, |
122 | 112 | { |
123 | | - "cell_type": "code", |
124 | | - "execution_count": null, |
125 | 113 | "metadata": {}, |
126 | | - "outputs": [ |
127 | | - { |
128 | | - "data": { |
129 | | - "text/plain": [ |
130 | | - "'\\n# NBVAL_SKIP\\n%%sh\\ncurl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg\\necho \"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\\nsudo apt-get update > /dev/null 2>&1\\nsudo apt-get install redis-stack-server > /dev/null 2>&1\\nredis-stack-server --daemonize yes\\n'" |
131 | | - ] |
132 | | - }, |
133 | | - "execution_count": 4, |
134 | | - "metadata": {}, |
135 | | - "output_type": "execute_result" |
136 | | - } |
137 | | - ], |
| 114 | + "cell_type": "code", |
| 115 | + "outputs": [], |
| 116 | + "execution_count": 20, |
138 | 117 | "source": [ |
139 | 118 | "# NBVAL_SKIP\n", |
140 | 119 | "%%sh\n", |
| 120 | + "sudo apt-get install lsb-release curl gpg\n", |
141 | 121 | "curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg\n", |
| 122 | + "sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg\n", |
142 | 123 | "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", |
143 | | - "sudo apt-get update > /dev/null 2>&1\n", |
144 | | - "sudo apt-get install redis-stack-server > /dev/null 2>&1\n", |
145 | | - "redis-stack-server --daemonize yes" |
| 124 | + "sudo apt-get update\n", |
| 125 | + "sudo apt-get install redis\n", |
| 126 | + "\n", |
| 127 | + "redis-server --version\n", |
| 128 | + "redis-server --daemonize yes --loadmodule /usr/lib/redis/modules/redisearch.so" |
146 | 129 | ] |
147 | 130 | }, |
148 | 131 | { |
149 | | - "cell_type": "markdown", |
150 | 132 | "metadata": {}, |
| 133 | + "cell_type": "markdown", |
151 | 134 | "source": [ |
152 | | - "#### For Alternative Environments\n", |
| 135 | + "#### Alternative Redis Access (Cloud, Docker, other)\n", |
153 | 136 | "There are many ways to get the necessary redis-stack instance running\n", |
154 | 137 | "1. On cloud, deploy a [FREE instance of Redis in the cloud](https://redis.com/try-free/). Or, if you have your\n", |
155 | 138 | "own version of Redis Enterprise running, that works too!\n", |
156 | 139 | "2. Per OS, [see the docs](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/)\n", |
157 | | - "3. With docker: `docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest`" |
| 140 | + "3. With docker: `docker run -d --name redis -p 6379:6379 redis:latest`" |
158 | 141 | ] |
159 | 142 | }, |
160 | 143 | { |
|
817 | 800 | "Requirement already satisfied: joblib>=1.2.0 in /Users/justin.cechmanek/.pyenv/versions/3.11.9/envs/redis-ai-res/lib/python3.11/site-packages (from scikit-learn) (1.4.2)\n", |
818 | 801 | "Requirement already satisfied: threadpoolctl>=3.1.0 in /Users/justin.cechmanek/.pyenv/versions/3.11.9/envs/redis-ai-res/lib/python3.11/site-packages (from scikit-learn) (3.5.0)\n", |
819 | 802 | "\n", |
820 | | - "\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\n", |
821 | | - "\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\n" |
| 803 | + "\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\n", |
| 804 | + "\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\n" |
822 | 805 | ] |
823 | 806 | } |
824 | 807 | ], |
|
0 commit comments