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

Add command to setup index #121

Open
mruwnik opened this issue Aug 10, 2023 · 0 comments
Open

Add command to setup index #121

mruwnik opened this issue Aug 10, 2023 · 0 comments

Comments

@mruwnik
Copy link
Collaborator

mruwnik commented Aug 10, 2023

from align_data.pinecone.pinecone_db_handler import PineconeDB
pinecone_db = PineconeDB(create_index=True)

would create the pinecone db for the user if they set up all the env and settings variables correctly. Might be worth mentioning. Also, it might be worth adding as a method in main.py, for the user to run if they don't have a pinecone db set up yet that runs the above code. Asking the user to create the Pinecone index by themselves would be more error prone, for instance it should be clear that the index should be created with metadata_config={"indexed": [our metadata keys]} as well as the name/dim/metric.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant