Has anyone had any success with creating a questions file feeding PrivateGPT? #922
Replies: 2 comments 5 replies
-
I managed to sort this btw to run multiple queries one after each other without havent to type them all in. |
Beta Was this translation helpful? Give feedback.
-
Hi, yeh I did this a while ago but I'll dig out the code. I changed the To pull from a text file in the directory named query.txt - here is my full code chunk, from what I remember I had this working, but my newest version no longer utilises this so I cant remember exactly `#!/usr/bin/env python3 load_dotenv() embeddings_model_name = os.environ.get("EMBEDDINGS_MODEL_NAME") model_type = os.environ.get('MODEL_TYPE') from constants import CHROMA_SETTINGS def main():
def process_question(query, qa, args):
def parse_arguments():
if name == "main": ` |
Beta Was this translation helpful? Give feedback.
-
Hi, looking at whether it is feasible to supply private GPT with a text file which contains a list of queries, which it can then work its way through and answer all the questions, then producing an output document.
Currently I have a lot of source data and querying can be slow, so would like to just input a number of questions and let it just run till its done. Saves me having to go check on it a lot.
Beta Was this translation helpful? Give feedback.
All reactions