Giter Site home page Giter Site logo

nopenai's Introduction

Building LLM Apps...without OpenAI

Want to build LLM Apps...but without OpenAI dependencies? Well have I got the code for you my friend. In this project I walk through how to build a langchain x streamlit app using GPT4All. We start off with a simple app and then build up to a langchain PythonREPL agent.

See it live and in action ๐Ÿ“บ

Tutorial

Startup ๐Ÿš€

  1. Create a virtual environment python -m venv nonopenai
  2. Activate it:
    • Windows:.\nonopenai\Scripts\activate
    • Mac: source nonopenai/bin/activate
  3. Install the GPT4All Installer using GUI based installers
  4. Download the required LLM models and take note of the PATH they're installed to
  5. Clone this repo git clone https://github.com/nicknochnack/NonOpenAI
  6. Go into the directory cd NonOpenAI
  7. Install the required dependencies pip install -r requirements.txt
  8. Update the path of the models in line 9 of app.py and line 5 of app-chain.py
  9. Start the python agent app by running streamlit run app.py or the chain app by running streamlit run app-chain.py
  10. Go back to my YouTube channel and like and subscribe ๐Ÿ˜‰...no seriously...please! lol
  11. The comparison app can be started by running streamlit run app-comparison.py before you do that though, update the base ggml download path in line 16, e.g. BASE_PATH = 'C:/Users/User/AppData/Local/nomic.ai/GPT4All/' and openAI api key on line 18

Other References ๐Ÿ”—

-GPT4AllReference : mainly used to determine how to install the GPT4All library and references. Doco was changing frequently, at the time of coding this was the most up to date example of getting it running.

Who, When, Why?

๐Ÿ‘จ๐Ÿพโ€๐Ÿ’ป Author: Nick Renotte
๐Ÿ“… Version: 1.x
๐Ÿ“œ License: This project is licensed under the MIT License

nopenai's People

Contributors

nicknochnack 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.