Skip to content

Fix notebook CI #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/examples/openai_qna.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@
"source": [
"from redisvl.extensions.llmcache import SemanticCache\n",
"\n",
"cache = SemanticCache(redis_url=\"redis://localhost:6379\", distance_threshold=0.2)"
"cache = SemanticCache(name=\"qna_cache\", redis_url=\"redis://localhost:6379\", distance_threshold=0.2)"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/user_guide/llmcache_03.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
"source": [
"llmcache.store(\"This is a TTL test\", \"This is a TTL test response\")\n",
"\n",
"time.sleep(5)"
"time.sleep(6)"
]
},
{
Expand Down Expand Up @@ -732,7 +732,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.11.9"
},
"orig_nbformat": 4
},
Expand Down
2 changes: 1 addition & 1 deletion docs/user_guide/vectorizers_04.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@
"source": [
"from redisvl.extensions.llmcache import SemanticCache\n",
"\n",
"cache = SemanticCache(vectorizer=custom_vectorizer)\n",
"cache = SemanticCache(name=\"custom_cache\", vectorizer=custom_vectorizer)\n",
"\n",
"cache.store(\"this is a test prompt\", \"this is a test response\")\n",
"cache.check(\"this is also a test prompt\")"
Expand Down
Loading