SemanticSearchIndex

This functionality requires LLM access »

SemanticSearchIndex[]

represents a semantic search index object.

SemanticSearchIndex["name"]

represents the index with the specified name in the SemanticSearchIndices[] list.

Details and Options

  • SemanticSearchIndex represents a corpus of documents that can be searched by semantic similarity.
  • Index properties can be accessed via SemanticSearchIndex[]["prop"].
  • The following properties are supported:
  • "Database"vector database backing the index
    "DocumentCount"number of documents stored in the index
    "Embeddings"vector embeddings of the entries
    "FeatureExtractor"how features are extracted from text chunks
    "ID"index ID
    "ItemCount"number of chunks stored in the index
    "Items"stored chunks
    "Label"item labels
    "Location"where the index is stored
    "TagKeys"keys of the tag association
    "Tags"tags associated with each entry
    {prop1,}a list of properties
  • The following options can be specified:
  • GeneratedAssetLocation $GeneratedAssetLocationwhere to save the index
    OverwriteTargetAutomaticwhether to overwrite an existing location

Examples

open allclose all

Basic Examples  (2)

Create a semantic search index:

Extract stored text:

Create a semantic search index based on a single source:

Perform a semantic search operation:

Scope  (4)

Properties  (4)

Extract a list of index properties:

Extract the stored items:

Extract multiple properties at once:

Retrieve the VectorDatabaseObject storing the embeddings:

Use an index to perform a search operation:

Options  (1)

GeneratedAssetLocation  (1)

Create a SemanticSearchIndex:

Copy the index in a new location:

Delete the original index:

Wolfram Research (2024), SemanticSearchIndex, Wolfram Language function, https://reference.wolfram.com/language/ref/SemanticSearchIndex.html (updated 2025).

Text

Wolfram Research (2024), SemanticSearchIndex, Wolfram Language function, https://reference.wolfram.com/language/ref/SemanticSearchIndex.html (updated 2025).

CMS

Wolfram Language. 2024. "SemanticSearchIndex." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/SemanticSearchIndex.html.

APA

Wolfram Language. (2024). SemanticSearchIndex. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SemanticSearchIndex.html

BibTeX

@misc{reference.wolfram_2024_semanticsearchindex, author="Wolfram Research", title="{SemanticSearchIndex}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/SemanticSearchIndex.html}", note=[Accessed: 10-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_semanticsearchindex, organization={Wolfram Research}, title={SemanticSearchIndex}, year={2025}, url={https://reference.wolfram.com/language/ref/SemanticSearchIndex.html}, note=[Accessed: 10-December-2024 ]}