SmartPilot is a Python program that generates, analyzes, and selects the best answer to a given question. It leverages the power of OpenAI's language model and a series of prompt-engineered AI models to provide high-quality, reliable, and accurate responses.
SmartPilot consists of several steps:
- Generate multiple initial answers to a question
- Analyze the strengths and weaknesses of each answer
- Resolve each answer by addressing its flaws and enhancing its strengths
- Select the best answer from the resolved answers
To install the required packages for SmartPilot, run the following command:
pip install -r requirements.txt
Add your OpenAI API key to the OPENAI_API_KEY
environment variable or directly in main.py
.
To use SmartPilot, run main.py
in your terminal:
python main.py
You will be prompted to enter your question and the number of initial answers you want. After providing the necessary input, the program will generate answers, analyze them, resolve them, and finally select the best answer.
This program was inspired by the ideas discussed in the AI Explained YouTube Channel's video on SmartGPT(https://youtu.be/wVzuvf9D9BU)
Also uses LangChain, a Python library for chaining together multiple language models.
This project is licensed under the MIT License. See the LICENSE file for details.