Git Product home page Git Product logo

askgpt's Introduction

AskGPT

Introduction

AskGPT is Web Application where the user can ask AI question related to a Youtube Video and AI answers based on the transcript of that video. Curently the Youtube video based on which it answers is video.

Website Live

Technologies Used

This application uses the following technologies:

BACKEND

  • ffmpeg library to generate audio file of the Youtube video.
  • OpenAI's Whisper API for generating transcripts from the audio file.
  • Pinecone for creating vector store and performing vector search.
  • Langchain to integrate OpenAI APIs and Pinecone database.
  • OpenAI's LLM's Chains to generate answer in Natural Language.

Web Development

  • MongoDB for storing data.
  • Express for server-side JavaScript.
  • React for client-side JavaScript.
  • Node.js for server-side JavaScript.

Setup

Clone this repo into your local environment:

git clone https://github.com/bhokaremoin/AskGPT.git

Backend

Change Directory to Backend

cd backend

Install dependencies:

npm install

Create a .env file to assignment environment variable using:

touch .env

Open .env in your editor and paste below variable name:

OPENAI_API_KEY=""
PINECONE_API_KEY=""
PINECONE_ENV=""
PINECONE_INDEX=""
MONGODB_URL=""

You can get these values from below provided links


SignUp at OpenAI here and create OpenAI API key Get Key. SignUp at Pinecone: here and Get Pinecone API key and environment by navigating to API Keys tab in Pinecone Console.

Create Pinecone Index by clicking on the Create Index with your Index Name.

Set dimensions to 1536 .env and Pod Type to P1.

Create a cluster on mongoDB, the tutorial for cluster is given [here](https://www.mongodb.com/basics/clusters/mongodb-cluster-setup).

Now to get audio of the Youtube video and generate the transcript of it and setup the vector store of the transcript, run setup.js file


You Can change the Youtube Video URL to your video by.

Changing the videoURL variable in line 6 in backend/transcriptSetup/getAudio.js.


```bash node setup.js ```

Now launch the server

node server.js

Frontend

Open new terminal and go to the root directory of the repo and change it to frontend

cd frontend

Install dependencies

npm install

Launch the frontend UI

npm start

The website will be running on localhost:3000.

Contact

For any suggestions or technical related question feel free to connect with me.

askgpt's People

Contributors

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