Embedding Storage
This guide walks you through the process of storing and retrieving embeddings using the Mixpeek API. Follow the steps below to get the full payload on a per feature basis, along with the corresponding named vectors.
Step 1: Index
First, index your video using the Mixpeek API. You can do this by sending a request to the Index Video URL endpoint.
You’ll then get a task_id
in the response. Use this ID to poll the status of the task.
Step 2: Poll Status
After indexing, poll the status of the task to ensure it has completed. Use the Get Task endpoint.
Which should reeturn this response:
Step 3: Get Asset with Features
Once the task is complete, retrieve the asset with its features using the Get Asset with Features endpoint.
Iterate through each modality’s list of features to access detailed information.
Step 4: Get Features with Vector
For each feature, retrieve the vectors using the Get Feature endpoint.
Example Payload
The following is an example of the full payload you can expect to receive:
This payload provides the full details of the asset and its features, including the named vectors for each modality.
You can then store these vectors in your database for future use, see example database integrations: Database Integrations
Was this page helpful?