A Generative AI Engineer I using the code below to test setting up a vector store: Assuming they intend to use Databricks managed embeddings with the default embedding model, what should be the next logical function call?
The correct answer is C. vsc.create_direct_access_index().
This is the appropriate next step when testing the setup of a vector store using Databricks managed embeddings and the default embedding model, especially if you’re not using a Delta table. create_direct_access_index() lets you manually add documents and embeddings, which is ideal for testing and minimal setup.
Option B (create_delta_sync_index()) is used when you already have a Delta table and want your index to automatically sync with it — a better fit for production workflows, not initial testing.
After setting up a vector store endpoint, creating an index is necessary to start populating and organizing the data. The create_delta_sync_index() function specifically creates an index that synchronizes with a Delta table, allowing automatic updates as the data changes. This is likely the most appropriate choice if the engineer plans to use dynamic data that is updated over time.
If the question assumes "if you want to use the default embedding model managed by Databricks", then B. vsc.create_delta_sync_index() might be a more appropriate answer.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
adaine
2 days, 18 hours agoSoumak
4 months agotrendy01
6 months, 1 week ago