Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Museum App - AI Artwork Search & Explanation Demo

Maintenance Ask Me Anything ! License GitHub release

An AI-powered museum exploration app built with Python, FastAPI, Gradio, LangChain, and LangGraph. Search artworks by keyword, browse results in an interactive gallery, and get rich AI-generated explanations covering artist background, historical and cultural context, visual analysis, and a visitor-friendly summary — powered by Google Gemini.

App

https://museumapp-two.vercel.app/

Demo

Demo

Key Features

  • Keyword Artwork Search: Search museum collections by keyword and retrieve matching artworks via the museum API.
  • Interactive Gallery: Browse search results in a Gradio gallery with titles and images.
  • AI-Powered Explanations: Select an artwork to generate a structured explanation including artist background, historical context, cultural context, visual analysis, date explanation, and a visitor summary.
  • LangGraph Pipelines: Dedicated graphs for search and explanation with validation, evaluation, and error handling.
  • FastAPI + Gradio UI: REST API endpoints alongside a mounted Gradio interface for an interactive demo experience.
  • Google Gemini Integration: Uses LangChain with Gemini for structured, grounded artwork insights.

Langgraph chart

LangGraph Workflow

Tech Stack

  • Python 3.12+
  • FastAPI: Backend framework for building fast and scalable APIs.
  • Gradio: Interactive UI for search, gallery browsing, and explanation display.
  • LangChain / LangGraph: Agent workflows for search and artwork explanation pipelines.
  • Google Gemini: LLM for structured artwork analysis (gemini-3.5-flash).
  • httpx: Async HTTP client for museum API requests.

Running On Local Machine

  1. Set up the following environment variables (e.g. in a .env file):
    • MUSEUM_API_BASE_URL=your_museum_api_base_url
    • GOOGLE_API_KEY=your_google_api_key
  2. Install dependencies:
pip install -e .
  1. Run the app:
uvicorn src.main:app --reload
  1. Open the following link in your browser: http://localhost:8000/

Contributing

Feel free to open issues or submit pull requests to improve the project. Contributions are welcome!

Developed by extrawest. Software development company

About

An AI-powered museum exploration app built with Python, FastAPI, Gradio, LangChain, and LangGraph. Search artworks by keyword, browse results in an interactive gallery, and get rich AI-generated explanations

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages