Skip to content

Add repetition filter settings and update version to 0.16.2 #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 25, 2025
Merged

Conversation

jasonacox
Copy link
Owner

This pull request introduces significant updates to the MovieBot application, enhancing its functionality, optimizing its codebase, and improving documentation. Key changes include the addition of new features for movie recommendations, integration with external APIs, and updates to environment variables and documentation for better clarity and usability.

Feature Enhancements:

  • Improved Movie Recommendation Logic: MovieBot now incorporates current events, holidays, and internet search results via SearxNG to recommend movies. It avoids recommending movies already in the database and extracts titles from search results using an LLM for accuracy. [1] [2]
  • Movies Released Today: Added a new function get_movies_released_today() to fetch movies released on the current date from the MoviesThisDay API, filtering by popularity over 10 and formatting them for RAG context.

API Integrations:

  • SearxNG Integration: Integrated with a local SearxNG instance to search for relevant movies, enabling MovieBot to leverage internet search results for recommendations.
  • MoviesThisDay API: Added support for fetching data from the MoviesThisDay API to provide historical movie release information.

Codebase Optimization:

  • Refactored Holiday Logic: Simplified holiday detection by using tuples and ranges instead of dictionaries with lists, improving readability and maintainability.
  • Constants for Genres: Introduced a GENRE_LIST constant to centralize predefined genres, reducing redundancy. [1] [2]
  • Enhanced Database Methods: Added docstrings to database methods for better code documentation and readability. [1] [2] [3] [4]

Environment Variables:

  • New Variables: Added SEARXNG_URL and TMDB_API_KEY to support SearxNG and The Movie Database integrations.

Documentation Updates:

  • Release Notes: Updated RELEASE.md with details about new features, bug fixes, and documentation improvements.
  • README Improvements: Enhanced clarity, formatting, and consistency in environment variable documentation.

@jasonacox jasonacox requested a review from Copilot June 25, 2025 06:03
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates MovieBot to v0.16.2 by adding repetition filter settings and new movie recommendation features while improving API integrations and documentation.

  • Updated version and added environment variables for repetition filtering.
  • Enhanced the movie recommendation functionality with current events, holiday logic, and internet search via SearxNG.
  • Updated documentation to clearly reflect the new settings and API integrations.

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
chatbot/app/core/config.py Updated version and added repetition filter settings using environment variables.
chatbot/app/api/routes.py Modified route parameters, session initialization, and added a new /repeat command handler.
chatbot/README.md Enhanced documentation with updated environment variable tables and clarifications.
agents/movie.py Updated movie recommendation logic to incorporate SearxNG search and holiday logic.
RELEASE.md Documented version 0.16.2 updates including repetition filter settings and feature fixes.

movie, genre = recommend_movie()
output = f"Movie Bot recommends the {genre} movie: {movie}"
if movie in get_movies_released_today():
Copy link
Preview

Copilot AI Jun 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a substring check to determine if the recommended movie appears in the RAG context from get_movies_released_today() may lead to false positives. Consider using a more robust approach to compare movie titles (for example, comparing against a list of titles) to ensure accurate matching.

Copilot uses AI. Check for mistakes.

jasonacox and others added 3 commits June 24, 2025 23:10
@jasonacox jasonacox merged commit ef14821 into main Jun 25, 2025
@jasonacox jasonacox deleted the v0.16.2 branch June 25, 2025 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant