QuestionQ57

VerifiedData Preparation

A Generative AI Engineer has successfully ingested unstructured documents and split them into chunks by document section. They want to store the chunks in a Vector Search index. The dataframe currently has two columns: (i) the original document file name and (ii) an array of text chunks for each document.

What is the most performant way to store this dataframe?

Explanation

Databricks AI Search (formerly Vector Search) creates an index from a Delta table and requires a unique primary key. Flattening the chunk array creates one independently embeddable and retrievable chunk per row, while a unique row identifier provides the required primary key.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!