This pull request integrates an open-source Language Model (LLM) to enhance the existing web crawler for fetching detailed movie information. The following changes have been made:
Integration of Open-Source LLM API:
Added functionality to use LLaMA or Mistral LLMs to fetch movie information.
Created a function get_movie_info_from_llm to query the chosen LLM with the movie name and retrieve details.
User Input Interface:
Implemented a terminal-based input for users to enter the movie name and choose the LLM.
Added input validation to ensure it is not empty.
Fetching Initial Data Using Web Crawler:
Utilized the existing web crawler to fetch initial data such as movie URLs, basic info, and reviews.
Passed this data as context to the LLM to enhance its response.
Fetching and Displaying Movie Information:
Used the chosen LLM to fetch movie summary, reviews, runtime, and reasons to watch.
Displayed the fetched information in a user-friendly format.
Surprise Enhancement: Movie Recommendations:
Used the LLM to generate a list of similar movies based on the user's input.
Displayed the recommended movies along with the fetched information.
Updated requirements.txt:
Added the transformers library to requirements.txt.
Created README.md:
Added setup and run instructions to a new README.md file.
These enhancements provide a more comprehensive and user-friendly experience for retrieving movie information.
Closes #1
Thanks for using MentatBot. Give comments a :+1: or :-1: to help me improve!
This pull request integrates an open-source Language Model (LLM) to enhance the existing web crawler for fetching detailed movie information. The following changes have been made:
Integration of Open-Source LLM API:
get_movie_info_from_llm
to query the chosen LLM with the movie name and retrieve details.User Input Interface:
Fetching Initial Data Using Web Crawler:
Fetching and Displaying Movie Information:
Surprise Enhancement: Movie Recommendations:
Updated
requirements.txt
:transformers
library torequirements.txt
.Created
README.md
:README.md
file.These enhancements provide a more comprehensive and user-friendly experience for retrieving movie information.
Closes #1
Thanks for using MentatBot. Give comments a :+1: or :-1: to help me improve!