You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/core_docs/docs/integrations/vectorstores/upstash.ipynb
+41-1
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,14 @@
64
64
"\n",
65
65
"You can create an index from the [Upstash Console](https://console.upstash.com/login). For further reference, see [the official docs](https://upstash.com/docs/vector/overall/getstarted).\n",
66
66
"\n",
67
+
"Upstash vector also has built in embedding support. Which means you can use it directly without the need for an additional embedding model. Check the [embedding models documentation](https://upstash.com/docs/vector/features/embeddingmodels) for more details.\n",
68
+
"\n",
69
+
"```{=mdx}\n",
70
+
":::note\n",
71
+
"To use the built-in Upstash embeddings, you'll need to select an embedding model when creating the index.\n",
72
+
":::\n",
73
+
"```\n",
74
+
"\n",
67
75
"### Credentials\n",
68
76
"\n",
69
77
"Once you've set up an index, set the following environment variables:\n",
@@ -127,6 +135,38 @@
127
135
"});"
128
136
]
129
137
},
138
+
{
139
+
"cell_type": "markdown",
140
+
"id": "afa53a9c",
141
+
"metadata": {},
142
+
"source": [
143
+
"## Usage with built-in embeddings\n",
144
+
"\n",
145
+
"To use the built-in Upstash embeddings, you can pass a `FakeEmbeddings` instance to the `UpstashVectorStore` constructor. This will make the `UpstashVectorStore` use the built-in embeddings, which you selected when creating the index."
146
+
]
147
+
},
148
+
{
149
+
"cell_type": "code",
150
+
"execution_count": null,
151
+
"id": "cbabe6f7",
152
+
"metadata": {},
153
+
"outputs": [],
154
+
"source": [
155
+
"import { UpstashVectorStore } from \"@langchain/community/vectorstores/upstash\";\n",
156
+
"import { FakeEmbeddings } from \"@langchain/core/utils/testing\";\n",
0 commit comments