Skip to content

Instantly share code, notes, and snippets.

@zackproser
Created June 6, 2024 11:17
Show Gist options
  • Save zackproser/3465df77ef11ace305a16e89044d6313 to your computer and use it in GitHub Desktop.
Save zackproser/3465df77ef11ace305a16e89044d6313 to your computer and use it in GitHub Desktop.
Pinecone attach metadata
index.upsert(
vectors=[
{
"id": "order1#chunk1",
"values": [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1],
"metadata": {"user_id": 3046, "url": "https://example.com"}
},
{
"id": "order2#chunk2",
"values": [0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2],
"metadata": {"user_id": 201}
}
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment