GithubHelp home page GithubHelp logo

omaratef3221 / find-a-movie Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 40.66 MB

Thinking of any movie talking about a certain story? Find the closest movie here!

Jupyter Notebook 44.67% Python 22.01% HTML 14.57% JavaScript 7.81% CSS 8.98% Dockerfile 1.95%

find-a-movie's Introduction

Find-A-Movie

Welcome to the Find-A-Movie application, a powerful tool designed to recommend movies based on textual descriptions. Our app harnesses cutting-edge natural language processing technologies (RAG - Retrieval Augmented Generation) to provide an intuitive movie discovery experience.

Explore our live application: Find-A-Movie

Table of Contents

Introduction

Find-A-Movie is a web application that matches users with movies that closely align with the descriptions they provide. Utilizing the power of language models and vector similarity, our system can parse and understand complex descriptions, making the search for the perfect movie as easy as typing a sentence.

Features

  • Natural Language Understanding: Leverage language models to parse and comprehend user input.
  • Vector Similarity Search: Utilize vector databases for efficient and relevant recommendations.
  • User-Friendly Interface: Experience a clean and simple web interface that is easy to navigate.

Technology Stack

  • Frontend: HTML, CSS, JavaScript
  • Backend: Flask (Python), Gunicorn
  • NLP Library: LangChain, HuggingFace Embeddings
  • Database: Chroma Vector Database
  • Deployment: Google Cloud Run

Project Structure

/
├── chroma_data/         # Vector database for movie descriptions
├── website/             # Static files for the frontend (HTML/CSS/JS)
├── Dockerfile           # Container configuration for the Flask API
├── movies.py            # Core recommendation algorithms
├── python_api.py        # Flask API routes and server configuration
└── streamlit_app.py     # Streamlit application

Getting Started

Prerequisites

  • Python 3.9 or later
  • Docker (for containerization and deployment)

Installation

  1. Clone the repository:

    ssh git clone https://github.com/omaratef3221/find-a-movie.git
    cd find-a-movie
  2. Install the required Python packages:

    pip install Flask gunicorn pandas langchain flask-cors sentence-transformers chromadb langchain-community
  3. Run the Streamlit app:

    streamlit run streamlit_app.py
  4. For Flask API, navigate to the `website/` folder and change the API address in the JavaScript files to `localhost`.

Usage

To find a movie, simply:

  1. Navigate to the web application.
  2. Enter a description of the movie you're thinking about in the text area.
  3. Click on the "Find Movie" button to see the recommendations.

Deployment

Docker

To deploy using Docker:

  1. Build the Docker image:

    docker build -t find-a-movie .
  2. Run the Docker container:

    docker run -p 5000:5000 find-a-movie

Contributing

We welcome contributions from the community! Please see our Contributing Guide for more details.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

We would like to thank the developers and researchers whose work made this project possible. Special thanks to the creators of LangChain, HuggingFace, and ChromaDB.


We hope you enjoy using Find-A-Movie! For any questions or feedback, please feel free to open an issue or contact us.

find-a-movie's People

Contributors

omaratef3221 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

weipei38

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.