addVdb checks if the given vectorDB with vdbid exists via an API call. Sometimes we can be SURE that it exists, i.e. we have done the setup and this thing works in a serverless function etc. so we dont have to check for existence in those cases.
It is possible to bypass this by doing:
sdk.store[vdbid] = vectorStore;
instead of
await sdk.addVdb(vdbid, vectorStore);
which saves making an api call.
We can make this clear to the user via docs, perhaps?
Added docs to addVdb function for this, as most of the time this will not matter to the user unless they are using a really constrained serverless environment.
addVdb
checks if the given vectorDB withvdbid
exists via an API call. Sometimes we can be SURE that it exists, i.e. we have done the setup and this thing works in a serverless function etc. so we dont have to check for existence in those cases.It is possible to bypass this by doing:
instead of
which saves making an api call.
We can make this clear to the user via docs, perhaps?