mmz-001 / knowledge_gpt

Accurate answers and instant citations for your documents.
https://knowledgegpt.streamlit.app/
MIT License
1.57k stars 716 forks source link

Use code and functions in script (without streamlit GUI) #27

Open bes827 opened 1 year ago

bes827 commented 1 year ago

Thanks for writing this extremely useful project and making it open source. I was wondering if you have a script for the functions to be used in another python script (without streamlit functions / UI elements). The use case for this is to automate the process by looping through some locally stored files with nested loops for some questions and save the output into csv file. Unfortunately my current python skills are not strong enough to extract these functions from the code you provided (specially that I have not used streamlit before). also I second the request by others of being able to save the embeddings locally so the script will not have to re calculate them every time the same file is loaded (saves time and saves bandwidth / api tokens). thanks again.