VectorDatabaseObject
✖
VectorDatabaseObject
represents the database with the specified name in the VectorDatabaseObjects[] list.
Details and Options

- VectorDatabaseObject represents a vector database instance, allowing interaction with and management of the stored vectors.
- Returned by CreateVectorDatabase, this symbolic object enables common database management operations such as adding data, searching and listing content and properties.
- Possible values of source include:
-
"name" a named database from VectorDatabaseObjects[] File[…] a local file LocalObject[…] a local object CloudObject[…] a cloud object - Database properties can be accessed via VectorDatabaseObject[…][prop].
- The following properties prop are supported:
-
"Dimensions" number of arrays stored and array size "DistanceFunction" distance function used "ID" database ID "Location" where the database is stored "Metadata" metadata associated with each vector "Vectors" vectors stored in the database "WorkingPrecision" numerical precision for storage and computation {prop1,…} a list of properties - When recreating a database, the following options can be specified:
-
GeneratedAssetLocation $GeneratedAssetLocation where to save the database OverwriteTarget Automatic whether to overwrite an existing location
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Initialize a new vector database:

https://wolfram.com/xid/08vhgk6nqrs2s8y-57z7wu

Access some database properties:

https://wolfram.com/xid/08vhgk6nqrs2s8y-bt5l08

Initialize a new vector database with a list of vectors:

https://wolfram.com/xid/08vhgk6nqrs2s8y-1bdn85


https://wolfram.com/xid/08vhgk6nqrs2s8y-3wm3u1

Scope (6)Survey of the scope of standard use cases
Retrieval (1)
Store a vector database in a file:

https://wolfram.com/xid/08vhgk6nqrs2s8y-p3mjci

Recreate the database object from the file:

https://wolfram.com/xid/08vhgk6nqrs2s8y-x3gxjp

Recreate the database object from the database name:

https://wolfram.com/xid/08vhgk6nqrs2s8y-83x420

Properties (2)
Extract a list of available properties:

https://wolfram.com/xid/08vhgk6nqrs2s8y-vnck59


https://wolfram.com/xid/08vhgk6nqrs2s8y-2rrt1k


https://wolfram.com/xid/08vhgk6nqrs2s8y-oljsqu

Extract multiple properties at once:

https://wolfram.com/xid/08vhgk6nqrs2s8y-post64

https://wolfram.com/xid/08vhgk6nqrs2s8y-u9g3a3

Metadata (3)
Create a vector database where each vector is associated with metadata:

https://wolfram.com/xid/08vhgk6nqrs2s8y-dh3o08

Extract vector database metadata:

https://wolfram.com/xid/08vhgk6nqrs2s8y-rj7vqa

Extract vector database metadata and other properties:

https://wolfram.com/xid/08vhgk6nqrs2s8y-12vcz1

Create a vector database where each vector is associated with metadata associations:

https://wolfram.com/xid/08vhgk6nqrs2s8y-dvtuyi
Extract vector database object metadata:

https://wolfram.com/xid/08vhgk6nqrs2s8y-7l6fq9

Extract a specific metadata element:

https://wolfram.com/xid/08vhgk6nqrs2s8y-ep1ntv

Extract multiple metadata elements:

https://wolfram.com/xid/08vhgk6nqrs2s8y-qkitay

Extract metadata and other properties:

https://wolfram.com/xid/08vhgk6nqrs2s8y-483r3t

Use the object to perform a search operation:

https://wolfram.com/xid/08vhgk6nqrs2s8y-0dlduw


https://wolfram.com/xid/08vhgk6nqrs2s8y-6v50np

Options (2)Common values & functionality for each option
GeneratedAssetLocation (1)
OverwriteTarget (1)

https://wolfram.com/xid/08vhgk6nqrs2s8y-eu5w9b


https://wolfram.com/xid/08vhgk6nqrs2s8y-o0ldlw

By default, copying the database to an existing file will fail:

https://wolfram.com/xid/08vhgk6nqrs2s8y-zs4q2d

Use OverwriteTarget -> True to override the existing file:

https://wolfram.com/xid/08vhgk6nqrs2s8y-8ajjaa

Properties & Relations (4)Properties of the function, and connections to other functions
In many situations, an existing vector database can be referred to by name only:

https://wolfram.com/xid/08vhgk6nqrs2s8y-5b9d1m


https://wolfram.com/xid/08vhgk6nqrs2s8y-7x7sgj


https://wolfram.com/xid/08vhgk6nqrs2s8y-l7ud38

Create a database with vectors and metadata:

https://wolfram.com/xid/08vhgk6nqrs2s8y-dqyn9a

Both vectors and metadata are stored positionally:

https://wolfram.com/xid/08vhgk6nqrs2s8y-5sdbqo

A SemanticSearchIndex is backed by a VectorDatabaseObject:

https://wolfram.com/xid/08vhgk6nqrs2s8y-fwkjkm

Retrieve the underlying database:

https://wolfram.com/xid/08vhgk6nqrs2s8y-qwq7sa

Detailed information on the database can be extracted using vector database properties:

https://wolfram.com/xid/08vhgk6nqrs2s8y-wdtonl

Modifying or deleting the underlying database may cause issues with the index:

https://wolfram.com/xid/08vhgk6nqrs2s8y-6tdn2w

https://wolfram.com/xid/08vhgk6nqrs2s8y-1c845u

Create a file-backed vector database:

https://wolfram.com/xid/08vhgk6nqrs2s8y-6sk58h

Database information is stored in the "WXF" format:

https://wolfram.com/xid/08vhgk6nqrs2s8y-6rxdw4

More files could be generated for efficiently storing the vector information:

https://wolfram.com/xid/08vhgk6nqrs2s8y-6q8xy7

Possible Issues (2)Common pitfalls and unexpected behavior
Create a database in a specified location:

https://wolfram.com/xid/08vhgk6nqrs2s8y-qiywc

A naked string is interpreted as the database name:

https://wolfram.com/xid/08vhgk6nqrs2s8y-uyaqag

Use the File wrapper to specify the source is a file path:

https://wolfram.com/xid/08vhgk6nqrs2s8y-us44nj


https://wolfram.com/xid/08vhgk6nqrs2s8y-3jpryh

Create a database in the specified location:

https://wolfram.com/xid/08vhgk6nqrs2s8y-jdp7zb


https://wolfram.com/xid/08vhgk6nqrs2s8y-osj28q
The original database is no longer usable:

https://wolfram.com/xid/08vhgk6nqrs2s8y-yc29jc

Use VectorDatabaseObject on the moved file with OverwriteTarget True to recreate the database and update the location data:

https://wolfram.com/xid/08vhgk6nqrs2s8y-k9yd6q

Wolfram Research (2024), VectorDatabaseObject, Wolfram Language function, https://reference.wolfram.com/language/ref/VectorDatabaseObject.html (updated 2025).
Text
Wolfram Research (2024), VectorDatabaseObject, Wolfram Language function, https://reference.wolfram.com/language/ref/VectorDatabaseObject.html (updated 2025).
Wolfram Research (2024), VectorDatabaseObject, Wolfram Language function, https://reference.wolfram.com/language/ref/VectorDatabaseObject.html (updated 2025).
CMS
Wolfram Language. 2024. "VectorDatabaseObject." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/VectorDatabaseObject.html.
Wolfram Language. 2024. "VectorDatabaseObject." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/VectorDatabaseObject.html.
APA
Wolfram Language. (2024). VectorDatabaseObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VectorDatabaseObject.html
Wolfram Language. (2024). VectorDatabaseObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VectorDatabaseObject.html
BibTeX
@misc{reference.wolfram_2025_vectordatabaseobject, author="Wolfram Research", title="{VectorDatabaseObject}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/VectorDatabaseObject.html}", note=[Accessed: 28-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_vectordatabaseobject, organization={Wolfram Research}, title={VectorDatabaseObject}, year={2025}, url={https://reference.wolfram.com/language/ref/VectorDatabaseObject.html}, note=[Accessed: 28-May-2025
]}