GithubHelp home page GithubHelp logo

angelofparadox / readerai Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 5 KB

Artificial intelligence and Python are employed in conjunction with the LangChain framework. This powerful combination enables you to inquire about any subject matter encompassed within books. ๐Ÿฆ„

License: MIT License

Python 100.00%

readerai's Introduction

Reader with AI: Transform Your Documents into Conversations with chatGPT

Did you know that chatGPT can engage in interactive conversations with your documents? In this Python workshop, you will discover how to make it possible. Forget about limitations - now you can chat and explore your documents in a whole new way.

Introduction

With this short project, you will learn how to unleash the full potential of chatGPT and convert your documents into interactive conversations. No more boring readings or tedious searches - now you can directly ask questions to your documents and receive responses from chatGPT. To develop this application in less than 50 lines of code, we will need:

  • ChatGPT API
  • Streamlit
  • PyPDF2
  • LangChain

How It Works

  1. Divide the document into chunks.
  2. Create embeddings for each text chunk.
  3. Store the chunks and embeddings in a knowledge base.
  4. Search for the most relevant chunks based on the user's question using the embeddings.
  5. Pass the most relevant chunks along with the question to chatGPT, which generates the response.

Installation of ReaderAi

Using ReaderAI is easy! Here are the steps:

  1. Clone or download the repository to your local machine.
  2. Install the required libraries by running the following command in your terminal:
    pip install -r requirements.txt
    
  3. Run the application with the following command:
    streamlit run app.py
    
  4. Get an API key from OpenAI.
  5. Enjoy the magic.๐Ÿฆ„

License

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

readerai's People

Contributors

angelofparadox avatar

Watchers

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