Skip to content

TarekBouchoucha/Chatbot-Using-Extracted-Scripts-from-YouTube-Videos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem:

The agricultural sector faces several challenges, including a growing need for up-to-date, accessible information on farming practices, crop management, pest control, and sustainable techniques. Farmers, agronomists, and agricultural enthusiasts often rely on a variety of sources to gather this information, such as YouTube channels, websites, and expert consultations. However, finding reliable, concise, and actionable advice can be time-consuming and overwhelming due to the vast amounts of content available online. To address this issue, there is a need for an automated solution that can efficiently extract and organize relevant agricultural information from existing multimedia resources. YouTube, in particular, contains a wealth of expert-driven content, but users often face difficulties in navigating lengthy videos to find specific information. Additionally, there is no direct way to interact with this content to get personalized responses based on individual needs.

Solution:

This project aims to solve these challenges by developing an agriculture assistant chatbot that can extract scripts from YouTube channels, process the information using Retrieval-Augmented Generation (RAG), and provide interactive, customized responses to user queries. By leveraging this approach, the assistant can help users quickly access precise information on agricultural topics, ultimately saving time and improving decision-making in the field.

Required work:

To achieve the objectives of this project, performing the following tasks was required:

  1. Extract YouTube videos scripts by providing only the channel name. If a script is available, it is extracted directly; otherwise, we use whisper model to generate the script.

  2. Store extracted data in csv file and a vector database.

  3. Use Rag technique to extract relevant information.

  4. integrate an AI agent that customizes responses based on current weather conditions.

  5. Create a simple interface using streamlit.

Knowledge embeddings diagram

Rag diagram

Capture d’écran 2024-10-20 165131

chat_with_history

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages