Configure your api token and model parameters in file rest_api.ini Configure the prompt templates in /data/dataguard/prompt_templates.py
$ python main.py {api_company} {promt_version_id} {context_id}
Note, the context_id can only be set to 0 at the first time you run the code. You can add other system prompt to the file /data/dataguard/input/Dataguard61_context.txt, the file is generated by prepare.py and each line in the file is for a different system prompt.
Results. are saved under /data/dataguard/output, the name of output files are formatted as "{output_folder}/{company}_v{version}_c{context_id}_{accuracy:.2f}_{now}.json"