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": str | bytes, # Vector contents (if included, returned as string or bytes depending on how it was stored) "metadata": Dict # Vector metadata (if included) }, ...]
The contents field is returned in its original format (string or bytes) as it was stored. String contents remain strings, and bytes contents remain bytes after decryption.
# 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("---")