Collections are the top-level containers for your vectors and metadata. This page shows how to list what’s currently available in a database.
List collections
print(vbase.list_collections())Example output:
['products', 'support_tickets', 'docs_v1']Check if a collection exists
if vbase.has_collection("docs_v1"):
print("docs_v1 exists")View collection details
Use describe_collection() to inspect a collection’s schema and configuration.
details = vbase.describe_collection("docs_v1")
print(details)Notes
- Collections live inside a database (
db_name). Make sure you’re connected to the intended database. list_collections()returns names only. Usedescribe_collection()for schema details.
Next steps
- Create a collection:
/vbase/create-collection - Insert vectors:
/vbase/insert-data - Search:
/vbase/search
Last updated on