Skip to content

Commit da6d825

Browse files
remove the hard coded db
1 parent 43435f7 commit da6d825

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

python-recipes/RAG/07_user_role_based_rag.ipynb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,8 @@
268268
"REDIS_URL = f\"redis://:{REDIS_PASSWORD}@{REDIS_HOST}:{REDIS_PORT}\"\n",
269269
"\n",
270270
"# Connect to Redis (adjust host/port if needed)\n",
271-
"# redis_client = Redis.from_url(REDIS_URL)\n",
272-
"# redis_client.ping()\n",
273-
"\n",
274-
"redis_client = Redis(\n",
275-
" host='redis-15820.c104.us-east-1-mz.ec2.redns.redis-cloud.com',\n",
276-
" port=15820,\n",
277-
" username=\"default\",\n",
278-
" password=\"ce8qIKYGOu1t5HUFD7kQlqvZpr5QcxJZ\",\n",
279-
")\n",
271+
"redis_client = Redis.from_url(REDIS_URL)\n",
272+
"redis_client.ping()\n",
280273
"\n",
281274
"print(\"Successfully connected to Redis\")"
282275
]

0 commit comments

Comments
 (0)