List[Dict] - List of dictionaries containing the requested vector data.
Copy
Ask AI
[ { "id": str, # Vector identifier (always included) "vector": List[float], # Vector data (if included) "contents": bytes, # Vector contents as bytes (if included, always returned as bytes) "metadata": Dict # Vector metadata (if included) }, ...]
The contents field is always returned as bytes, regardless of whether it was originally stored as a string or bytes. All contents are encoded to bytes and encrypted before storage.
# Get vectors with all datavector_ids = ['doc1', 'doc2', 'doc3']results = index.get(vector_ids)for item in results: print(f"ID: {item['id']}") print(f"Vector: {item['vector'][:5]}...") # Show first 5 dimensions print(f"Content: {item.get('contents', 'N/A')}") print("---")