Welcome to IMDB-LLM, a proof of concept app that demonstrates the power of LangChain and LLMs in extracting information from graphs! In just 10 hours it is possible to develop a user-friendly application that enables users to search for movie titles in the IMDB dataset graph or discover similar movies using natural language queries. The best part? If the LLM lacks specific information, it will first search on Google, then query the title in the database.
IMDB-LLM's Graph Explorer is built using LangChain and LLMs, state-of-the-art technologies in natural language processing and machine learning. The application employs a graph representation of the IMDB dataset, encompassing data on movies, actors, directors, and more. Users can input queries in natural language, such as "Give me some drama movie options with Leonardo DiCaprio" or "Show me movies directed by Christopher Nolan", and the LLM will retrieve the pertinent information from the graph.
Should the LLM be unable to provide an answer, it will utilize the Google Search API to find supplementary information, which it will then use to refine the search.
- Search for movie titles within the graph
- Discover similar movies using natural language queries
- Automatic Google search for missing information
- Clone the repository:
git clone https://github.com/ibiscp/LLM-IMDB.git
- Navigate to the frontend directory and install the required dependencies
cd frontend
npm install
- Install the necessary dependencies for the backend
poetry install
- Launch the frontend
npm run start
- Set up the environment variables
export OPENAI_API_KEY=<your-openai-api-key>
export SERPAPI_API_KEY=<your-serpapi-api-key>
- Start the backend
python3 backend/main.py
- Open the application in your browser at http://localhost:3000