Created
June 6, 2024 11:17
-
-
Save zackproser/3465df77ef11ace305a16e89044d6313 to your computer and use it in GitHub Desktop.
Pinecone attach metadata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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