Skip to content

Commit

Permalink
Semantic Cache with MemoryDB
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshmiPeri23 committed Oct 7, 2024
1 parent 4bd8b74 commit 672195a
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions samples/inmemory/Semanticcache.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@
"## 1. Set environment vairable for MemoryDB cluster "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "41f56fd0-efc1-4edb-9a99-d41de0954949",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"%env MEMORYDB_HOST=your_cluster_endpoint\n",
"%env MEMORYDB_PORT=6379"
]
},
{
"cell_type": "markdown",
"id": "99ba6c98-8486-45c6-a15c-6025777df3cb",
Expand Down Expand Up @@ -54,7 +41,7 @@
"source": [
"import os\n",
"from langchain_core.globals import set_llm_cache\n",
"from langchain_aws.cache import InMemorySemanticCache\n",
"from langchain_aws import InMemorySemanticCache\n",
"from langchain_aws import ChatBedrock\n",
"from langchain_aws.embeddings import BedrockEmbeddings\n",
"import redis\n",
Expand Down

0 comments on commit 672195a

Please sign in to comment.