Jsiewierski11 / web_crawler

Simple examples of building web crawlers using Beautiful Soup
0 stars 0 forks source link

Enhance Web Crawler with LLM for Movie Information Retrieval #1

Open mentatbot[bot] opened 2 weeks ago

mentatbot[bot] commented 2 weeks ago

Enhancement: Integrate Open-Source LLM for Movie Information Retrieval

Description

Enhance the existing web crawler to utilize an open-source Language Model (LLM) to fetch and display detailed movie information based on user input. The information should include:

Provide an option for the user to choose which LLM they want to use for their search.

Tasks

  1. Integrate Open-Source LLM API:

    • Use an open-source LLM like LLaMA or Mistral to fetch movie information.
    • Create a function to query the chosen LLM with the movie name and retrieve the required details.
  2. Create User Input Interface:

    • Implement a simple terminal-based input for users to enter the movie name and choose the LLM.
    • Validate the input to ensure it is not empty.
  3. Fetch Initial Data Using Web Crawler:

    • Use the existing web crawler to fetch initial data such as movie URLs, basic info, and reviews.
    • Pass this data as context to the LLM to enhance its response.
  4. Fetch and Display Movie Information:

    • Use the chosen LLM to fetch movie summary, reviews, runtime, and reasons to watch.
    • Display the fetched information in a user-friendly format.
  5. Surprise Enhancement: Movie Recommendations:

    • Use the LLM to generate a list of similar movies based on the user's input.
    • Display the recommended movies along with the fetched information.
  6. Update requirements.txt:

    • Add the transformers library to requirements.txt.
  7. Create README.md:

    • Add setup and run instructions to a new README.md file.

Implementation Details

Notes

References

Jsiewierski11 commented 2 weeks ago

@mentatbot create a PR for this issue.

mentatbot[bot] commented 2 weeks ago

I will start working on this issue