mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-13 00:16:01 +00:00
docs: add reference for XataVectorStore constructor (#14903)
Adds doc reference to the XataVectorStore constructor for use with existing Xata table contents. @tsg @philkra
This commit is contained in:
parent
b2fd41331e
commit
4f4b078bf3
@ -167,7 +167,19 @@
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"After running the above command, if you go to the Xata UI, you should see the documents loaded together with their embeddings."
|
||||
"After running the above command, if you go to the Xata UI, you should see the documents loaded together with their embeddings.\n",
|
||||
"To use an existing Xata table that already contains vector contents, initialize the XataVectorStore constructor:"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"vector_store = XataVectorStore(\n",
|
||||
" api_key=api_key, db_url=db_url, embedding=embeddings, table_name=\"vectors\"\n",
|
||||
")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user