Skip to content

Commit

Permalink
use isolated cache names
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerhutcherson committed Aug 16, 2024
1 parent 685de7e commit ec65ac4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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
2 changes: 1 addition & 1 deletion docs/user_guide/llmcache_03.ipynb
Original file line number Diff line number Diff line change
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

0 comments on commit ec65ac4

Please sign in to comment.