GithubHelp home page GithubHelp logo

sorokinvld / smartpilot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaredkirby/smartpilot

0.0 1.0 0.0 424 KB

A Python program leveraging OpenAI's language models to generate, analyze, and select the best answer to a given question.

Home Page: https://www.jaredkirby.me/

Python 100.00%

smartpilot's Introduction

SmartPilot

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.

Overview

SmartPilot consists of several steps:

  1. Generate multiple initial answers to a question
  2. Analyze the strengths and weaknesses of each answer
  3. Resolve each answer by addressing its flaws and enhancing its strengths
  4. Select the best answer from the resolved answers

Installation

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.

Usage

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.

Credits

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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

smartpilot's People

Contributors

jaredkirby avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.