Ask a question to get started
Enter to send•Shift+Enter new line
Ensures that a collection exists in the Milvus database.
ensureCollection(vectors: number[][], documents: Document<Record<string, any>>[]): Promise<void>
vectors
number[][]
Optional array of vectors to be used if a new collection needs to be created.
documents
Document<Record<string, any>>[]
Optional array of Document instances to be used if a new collection needs to be created.