Skip to content

Proof of concept app using LangChain and LLMs to retrieve information from graphs, built with the IMDB dataset

Notifications You must be signed in to change notification settings

ibiscp/LLM-IMDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IMDB-LLM: Movie Query Made Simple

IMDB-LLM Demo

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.

Overview

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.

Features

  • Search for movie titles within the graph
  • Discover similar movies using natural language queries
  • Automatic Google search for missing information

Installation and Setup

  1. Clone the repository:
git clone https://github.com/ibiscp/LLM-IMDB.git
  1. Navigate to the frontend directory and install the required dependencies
cd frontend
npm install
  1. Install the necessary dependencies for the backend
poetry install
  1. Launch the frontend
npm run start
  1. Set up the environment variables
export OPENAI_API_KEY=<your-openai-api-key>
export SERPAPI_API_KEY=<your-serpapi-api-key>
  1. Start the backend
python3 backend/main.py
  1. Open the application in your browser at http://localhost:3000

About

Proof of concept app using LangChain and LLMs to retrieve information from graphs, built with the IMDB dataset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published