Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export pinecone embeddings to json #17

Open
ccstan99 opened this issue May 18, 2023 · 0 comments
Open

Export pinecone embeddings to json #17

ccstan99 opened this issue May 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ccstan99
Copy link
Collaborator

ccstan99 commented May 18, 2023

Provide a JSON version of pinecone embeddings in gdrive https://drive.google.com/drive/folders/1cyP-wjiHZ4PoPnFlG19ti904cJsm5iSr so others can upload & test in their personal dev environment. In theory, something like:

import pinecone
pinecone.init(api_key="YOUR_API_KEY")
index = pinecone.Index("YOUR_INDEX_NAME")
# Fetch all ids, vectors and metadata from the index
ids, vectors, metadata = index.fetch("*", include_metadata=True)
# Convert vectors to lists
vectors = [v.tolist() for v in vectors]
# Create a json object with ids, vectors and metadata
data = {"ids": ids, "vectors": vectors, "metadata": metadata}

If you need edit access to upload, DM ccstan99 on discord with your gmail address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Discussion
Development

No branches or pull requests

1 participant