This repo is published in association with a blog post on medium entitled Significantly Mitigate GPT-4 Hallucinations using Code Interpeter
- Python 3.11
- Poetry
- OpenAI API key exported to env as OPENAI_API_KEY
poetry install
poetry shell
python app.py init
Execution of GPT-4 with Code Interpreter
python app.py run-graph-connectivity --limit 1 --model gpt-4
In order to see the AgentExecutor chain, I'm jumping into the codeinterpreter-api library CodeInterpreterApiSettings and setting Verbose to True.
You can see output of some runs in the output folder.
Please reach out to me on Twitter with questions or comments. Very interested in this problem happy to hack on various aspects of it more.
- how to use typer commands async fastapi/typer#88 (comment)