|
45 | 45 | }, |
46 | 46 | "outputs": [], |
47 | 47 | "source": [ |
| 48 | + "# NBVAL_SKIP\n", |
48 | 49 | "%%capture --no-stderr\n", |
49 | 50 | "%pip install -U --quiet langchain-community tiktoken langchain-openai langchainhub langchain-redis langchain langgraph langchain-text-splitters" |
50 | 51 | ] |
51 | 52 | }, |
52 | 53 | { |
53 | 54 | "cell_type": "code", |
54 | | - "execution_count": null, |
| 55 | + "execution_count": 1, |
55 | 56 | "id": "e4958a8c", |
56 | 57 | "metadata": { |
57 | 58 | "colab": { |
|
60 | 61 | "id": "e4958a8c", |
61 | 62 | "outputId": "2e7bdc8c-c95b-4cb9-ea98-0fc3095f2330" |
62 | 63 | }, |
63 | | - "outputs": [ |
64 | | - { |
65 | | - "name": "stdout", |
66 | | - "output_type": "stream", |
67 | | - "text": [ |
68 | | - "OPENAI_API_KEY:··········\n" |
69 | | - ] |
70 | | - } |
71 | | - ], |
| 64 | + "outputs": [], |
72 | 65 | "source": [ |
73 | 66 | "import getpass\n", |
74 | 67 | "import os\n", |
|
114 | 107 | } |
115 | 108 | ], |
116 | 109 | "source": [ |
| 110 | + "# NBVAL_SKIP\n", |
117 | 111 | "%%sh\n", |
118 | 112 | "curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg\n", |
119 | 113 | "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", |
|
124 | 118 | }, |
125 | 119 | { |
126 | 120 | "cell_type": "code", |
127 | | - "execution_count": null, |
| 121 | + "execution_count": 2, |
128 | 122 | "id": "7c2KKPhOh4zM", |
129 | 123 | "metadata": { |
130 | 124 | "colab": { |
|
162 | 156 | }, |
163 | 157 | { |
164 | 158 | "cell_type": "code", |
165 | | - "execution_count": null, |
| 159 | + "execution_count": 3, |
166 | 160 | "id": "e50c9efe-4abe-42fa-b35a-05eeeede9ec6", |
167 | 161 | "metadata": { |
168 | 162 | "colab": { |
|
171 | 165 | "id": "e50c9efe-4abe-42fa-b35a-05eeeede9ec6", |
172 | 166 | "outputId": "42f27e66-a208-4885-d35e-67fe819c5572" |
173 | 167 | }, |
174 | | - "outputs": [ |
175 | | - { |
176 | | - "name": "stdout", |
177 | | - "output_type": "stream", |
178 | | - "text": [ |
179 | | - "04:01:11 langchain_community.utils.user_agent WARNING USER_AGENT environment variable not set, consider setting it to identify your requests.\n", |
180 | | - "04:01:17 httpx INFO HTTP Request: POST https://api.openai.com/v1/embeddings \"HTTP/1.1 200 OK\"\n", |
181 | | - "04:01:18 httpx INFO HTTP Request: POST https://api.openai.com/v1/embeddings \"HTTP/1.1 200 OK\"\n", |
182 | | - "04:01:20 httpx INFO HTTP Request: POST https://api.openai.com/v1/embeddings \"HTTP/1.1 200 OK\"\n" |
183 | | - ] |
184 | | - } |
185 | | - ], |
| 168 | + "outputs": [], |
186 | 169 | "source": [ |
187 | 170 | "from langchain_community.document_loaders import WebBaseLoader\n", |
188 | 171 | "\n", |
|
227 | 210 | }, |
228 | 211 | { |
229 | 212 | "cell_type": "code", |
230 | | - "execution_count": null, |
| 213 | + "execution_count": 4, |
231 | 214 | "id": "0b97bdd8-d7e3-444d-ac96-5ef4725f9048", |
232 | 215 | "metadata": { |
233 | 216 | "id": "0b97bdd8-d7e3-444d-ac96-5ef4725f9048" |
|
691 | 674 | "provenance": [] |
692 | 675 | }, |
693 | 676 | "kernelspec": { |
694 | | - "display_name": "Python 3 (ipykernel)", |
| 677 | + "display_name": "Python 3", |
695 | 678 | "language": "python", |
696 | 679 | "name": "python3" |
697 | 680 | }, |
|
0 commit comments