Hey folks! Two questions: 1. Is there some knack to saving meta data? Everything else saves in this

Hey folks! Two questions:

1. Is there some knack to saving meta data? Everything else saves in this example except the metadata:


const embedding = await getOpenAIEmbedding(description, env.OPENAI_KEY);
await env.VECTORIZE.upsert([{ id: promptId, values: embedding, metadata:{ title:"Updated title", description: "Description"} }]);

console.log("Item vector added:", { title: title, description: description })

2. Everytime I update from the CLI my vector binding are erased. Adding this to the TOML doesn't seem to help:

vectorize = [
{ binding = "VECTORIZE", index_name = "my-index" }
]

Or:

[[vectorize]]
binding = "VECTORIZE"
index_name = "my-index"
Was this page helpful?