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 upsert data to Pinecone index #9

Merged
merged 5 commits into from
Apr 3, 2023
Merged

Add command to upsert data to Pinecone index #9

merged 5 commits into from
Apr 3, 2023

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Apr 2, 2023

Resolves #7
This PR adds a new command to upsert data to a Pinecone index. The command processes text documents in batches and creates embeddings for each batch using the OpenAI text-embedding-ada-002 engine. The embeddings are then upserted to a Pinecone index along with metadata. The command is able to handle txt, md, and pdf files. The code has been tested and is ready for review.

Steps

  1. Place text or pdf files in upsert folder
  2. Setup API keys in the env
  3. Run python manage.py upsert

image

@Ashesh3 Ashesh3 added the STAGE 1 label Apr 2, 2023
@Ashesh3 Ashesh3 self-assigned this Apr 2, 2023
Ashesh3 and others added 2 commits April 3, 2023 18:13
Co-authored-by: Shivank Kacker <kacker.shivank@gmail.com>
Copy link
Member

@skks1212 skks1212 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@skks1212 skks1212 merged commit c47e350 into master Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate Pinecone and data upsert API
2 participants