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:
Kostas Botsas 2023-12-19 16:04:46 +02:00 committed by GitHub
parent b2fd41331e
commit 4f4b078bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",
")"
]
},
{