Skip to content

salman-aziz-4425/FlowThink-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Transcript Chatbot

This is a FastAPI application that allows users to upload YouTube video URLs and ask questions about the video's transcript. The application processes the transcript and uses a language model to answer questions based on the content.

Features

  • Extracts transcripts from YouTube videos.
  • Allows users to ask questions about the transcript.
  • Utilizes OpenAI embeddings for document retrieval.

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
  2. Create a virtual environment:

    python -m venv env
    source env/bin/activate  # On Windows use `env\Scripts\activate`
  3. Install the required packages:

    pip install -r requirements.txt
  4. Create a .env file in the root directory and add your OpenAI API key:

    OPENAI_API_KEY=your_openai_api_key
    

Usage

  1. Start the FastAPI server:

    python main.py
  2. Access the API documentation at http://localhost:8000/docs.

Endpoints

GET /

Returns a simple greeting message.

Response:

{
  "message": "Welcome to the YouTube Transcript Chatbot!"
}

About

A React-based visual interface that allows users to connect YouTube videos to chat nodes and interact with video content through a conversational interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors