Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.07 KB

README.md

File metadata and controls

36 lines (22 loc) · 1.07 KB

Better Answers with GPT-4 Code Interpreter

This repo is published in association with a blog post on medium entitled Significantly Mitigate GPT-4 Hallucinations using Code Interpeter

How to rerun analysis

Prereqs

  • Python 3.11
  • Poetry
  • OpenAI API key exported to env as OPENAI_API_KEY

Commands

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.

Very helpful links