Skip to content

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.

License

Notifications You must be signed in to change notification settings

gadsdencode/BLoC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BLoC

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.

update .env file with your information

OPENAI_API_KEY=YOUR OPENAI-API-KEY-HERE SUPABASE_URL=YOUR-SUPABASE-HOST-URL-HERE SUPABASE_ANON_KEY=YOUR-SUPABASE-ANON-KEY-HERE

install dependencies:

pip install -r requirements.txt

run program:

python pdf2embedding.py python text2embed.py

Check supabase for updated data to confirm working.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages