Fetch
Each record in Upstash Vector is assigned a unique ID, which you can use to retrieve a specific vector from your database. Let’s use thefetch() method to retrieve a vector from Upstash Vector.
fetch() method returns a Upstash\Vector\VectorFetchResult object, which allows you to access the results of the query.
Fetch by ID prefix
You can also usefetch() to get all vectors which their IDs match a defined prefix.