Skip to content

kevit-hetvee-shah/LLM-Practice-Task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Setup

Virtual Environment Installation, Creation, and Activation

# Installation
pip install virtualenv

# Creation
virtualenv <env_name>

# Activation
source <path_to_venv>/bin/activate

Requirement Installation

pip install -r requirements.txt

Run Project

uvicorn main:app

NOTE : Use flag --reload to run in DEBUG Mode.


Considerations

  • All the API calls are SYNC (Can be made ASYNC if required.)
  • The data is loaded in the Chroma Vector Database while loading them for the first time. So for every API call, it will only load the data from Database, and store the data everytime.
  • Few of the YouTube Videos are not supporting transcription. So skipping those videos.

TASK

Question 1: You need to develop an application that includes APIs to accomplish the following tasks:

Scrape the content of this PDF and crawl the website kevit.io using an API. Create another API that retrieves and provides answers based on the extracted data from both the PDF and the website.

Expected outcomes:

  1. Build a Flask or FastAPI application with APIs to store and retrieve the data.
  2. Use Google models to implement Retrieval-Augmented Generation (RAG).
  3. When answers are sourced from the website, include the website's URL in the response using an anchor tag.
  4. Ensure the responses are designed to behave like Kevit's AI Assistant by utilizing effective prompt engineering techniques.
  5. Ensure the bot doesn't answer questions outside the defined scope.

Question 2: Using the existing application, create an additional endpoint to scrape YouTube videos (around 12) from the Ranveer Brar website, and have the bot provide answers based on the scraped content.

Expected outcomes:

  1. Build a Flask or FastAPI application that includes APIs for storing and retrieving the data.
  2. Use Google models to implement Retrieval-Augmented Generation (RAG).
  3. When the answer requires step-by-step instructions, ensure the bot delivers it in that format.
  4. Include the YouTube video link in the response using an anchor tag.
  5. Employ prompt engineering to make the bot behave like a "Recipe Master."
  6. Ensure the bot doesn't answer questions outside the defined scope.

About

The task provided in LLM Learning Path

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages