Skip to content

Commit 81ee442

Browse files
committed
tweaks
1 parent 0084837 commit 81ee442

File tree

3 files changed

+17
-27
lines changed

3 files changed

+17
-27
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ jobs:
5050
GCP_REGION: ${{ secrets.GCP_REGION }}
5151
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
5252
run: |
53-
pytest --verbose --nbval-lax python-recipes/RAG/ python-recipes/vector-search python-recipes/redis-intro python-recipes/recommendation-systems --ignore python-recipes/RAG/05_nvidia_ai_rag_redis.ipynb --ignore python-recipes/semantic-cache/doc2cache_llama3_1.ipynb
53+
pytest --verbose --nbval-lax python-recipes/RAG/ python-recipes/vector-search python-recipes/redis-intro python-recipes/recommendation-systems python-recipes/agents --ignore python-recipes/agents/01_crewai_langgraph_redis.ipynb --ignore python-recipes/RAG/05_nvidia_ai_rag_redis.ipynb --ignore python-recipes/semantic-cache/doc2cache_llama3_1.ipynb

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ For further insights on enhancing RAG applications with dense content representa
9494
| --- | --- |
9595
[/RAG/04_advanced_redisvl.ipynb](python-recipes/RAG/04_advanced_redisvl.ipynb) | Notebook for additional tips and techniques to improve RAG quality |
9696

97+
## Agents
98+
/Users/robert.shelton/Documents/redis-ai-resources/python-recipes/agents/01_crewai_langgraph_redis.ipynb
99+
| Recipe | Description |
100+
| --- | --- |
101+
[/agents/00_langgraph_redis_agentic_rag.ipynb](python-recipes/agents/00_langgraph_redis_agentic_rag.ipynb) | Notebook to get started with lang-graph and agents |
102+
[/agents/01_crewai_langgraph_redis.ipynb](python-recipes/agents/01_crewai_langgraph_redis.ipynb) | Notebook to get started with lang-graph and agents |
103+
97104
## Recommendation systems
98105

99106
| Recipe | Description |

python-recipes/agents/00_langgraph_redis_agentic_rag.ipynb

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@
4545
},
4646
"outputs": [],
4747
"source": [
48+
"# NBVAL_SKIP\n",
4849
"%%capture --no-stderr\n",
4950
"%pip install -U --quiet langchain-community tiktoken langchain-openai langchainhub langchain-redis langchain langgraph langchain-text-splitters"
5051
]
5152
},
5253
{
5354
"cell_type": "code",
54-
"execution_count": null,
55+
"execution_count": 1,
5556
"id": "e4958a8c",
5657
"metadata": {
5758
"colab": {
@@ -60,15 +61,7 @@
6061
"id": "e4958a8c",
6162
"outputId": "2e7bdc8c-c95b-4cb9-ea98-0fc3095f2330"
6263
},
63-
"outputs": [
64-
{
65-
"name": "stdout",
66-
"output_type": "stream",
67-
"text": [
68-
"OPENAI_API_KEY:··········\n"
69-
]
70-
}
71-
],
64+
"outputs": [],
7265
"source": [
7366
"import getpass\n",
7467
"import os\n",
@@ -114,6 +107,7 @@
114107
}
115108
],
116109
"source": [
110+
"# NBVAL_SKIP\n",
117111
"%%sh\n",
118112
"curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg\n",
119113
"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,7 +118,7 @@
124118
},
125119
{
126120
"cell_type": "code",
127-
"execution_count": null,
121+
"execution_count": 2,
128122
"id": "7c2KKPhOh4zM",
129123
"metadata": {
130124
"colab": {
@@ -162,7 +156,7 @@
162156
},
163157
{
164158
"cell_type": "code",
165-
"execution_count": null,
159+
"execution_count": 3,
166160
"id": "e50c9efe-4abe-42fa-b35a-05eeeede9ec6",
167161
"metadata": {
168162
"colab": {
@@ -171,18 +165,7 @@
171165
"id": "e50c9efe-4abe-42fa-b35a-05eeeede9ec6",
172166
"outputId": "42f27e66-a208-4885-d35e-67fe819c5572"
173167
},
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": [],
186169
"source": [
187170
"from langchain_community.document_loaders import WebBaseLoader\n",
188171
"\n",
@@ -227,7 +210,7 @@
227210
},
228211
{
229212
"cell_type": "code",
230-
"execution_count": null,
213+
"execution_count": 4,
231214
"id": "0b97bdd8-d7e3-444d-ac96-5ef4725f9048",
232215
"metadata": {
233216
"id": "0b97bdd8-d7e3-444d-ac96-5ef4725f9048"
@@ -691,7 +674,7 @@
691674
"provenance": []
692675
},
693676
"kernelspec": {
694-
"display_name": "Python 3 (ipykernel)",
677+
"display_name": "Python 3",
695678
"language": "python",
696679
"name": "python3"
697680
},

0 commit comments

Comments
 (0)