BLoC (Big Load 'o Code) is a python program that takes txt files/pdf files from a directory folder, converts them to embeddings with openai and upserts the embeddings to a Supabase table. Code could likely be changed to alternative databases with minimal edits.
OPENAI_API_KEY=YOUR OPENAI-API-KEY-HERE SUPABASE_URL=YOUR-SUPABASE-HOST-URL-HERE SUPABASE_ANON_KEY=YOUR-SUPABASE-ANON-KEY-HERE
pip install -r requirements.txt
python pdf2embedding.py python text2embed.py