How can we create Vectors dynamically using code?

I have a use case where I'd like to create many vector DBs programmatically so that I can search each, independently, with results isolated from each other.

How might I achieve this goal?

Referencing docs for context, where the docs only show an example using the GUI.

Manage embeddings in Retool Vectors