Python example
# pypi: ironcore-alloy
plaintext = PlaintextVector([1.2, -1.23, 3.24, 2.37], "contacts", "conversation-sentiment")
metadata = AlloyMetadata.new_simple("tenant-123")
encrypted = await sdk.vector().encrypt(plaintext, metadata)
# Store off encrypted_vector and paired_icl_info in your chosen vector database
Java example
// maven: ironcore-alloy
PlaintextVector plaintext = new PlaintextVector(List.of(1.2f, -1.23f, 3.24f, 2.37f), "contacts",
"conversation-sentiment");
AlloyMetadata metadata = AlloyMetadata.Companion.newSimple("tenant-123");
EncryptedVector encrypted = sdk.vector().encrypt(plaintext, metadata, null);
// Store off encryptedVector and pairedIclInfo in your chosen vector database