Manage data
Collections, points, and payload filters.
Create a collection with a vector size and a distance. Points carry an id, a vector, and a JSON payload.
db.open_collection("notes", size=768, distance="cosine")
db.put_points("notes", points=[{
"id": "n-1",
"vector": embedding,
"payload": {"tenant": "acme", "source": "wiki"},
}])
Filter on tenant before you trust a result. The Web UI shows the same payload the API returns.