Skip to content

raphaeldelio/rediscovering-apollo-11-with-redis-om-spring-and-vector-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rediscovering Apollo 11 🚀

Overview

Rediscovering Apollo 11 is a Java-based project that leverages Redis OM Spring, vector search, and retrieval-augmented generation (RAG) to explore Apollo 11 mission data. This project integrates structured and unstructured data, including transcripts, photographs, and extracted information, to enable powerful semantic search and querying capabilities.

Talk

This implementation is the support demo for the Rediscovering Apollo 11: Using Spring AI + Redis OM Spring to explore the trip to the moon! talk.

How It Works

Data Processing Pipeline

  1. Utterance Processing:
    • Each utterance is loaded into Redis and vectorized for similarity search.
  2. Table of Contents Integration:
    • The table of contents is loaded, and utterances are grouped accordingly.
  3. Summarization & Vectorization:
    • An LLM generates summaries for each group of utterances, which are then vectorized for efficient retrieval.
  4. Question Extraction & Vectorization:
    • The LLM extracts relevant questions from the utterances and vectorizes them for searchability.
  5. Photograph Processing:
    • Photographs are indexed by vectorizing both the images and their descriptions.

Search Capabilities

We expose REST controllers that allow searching across multiple dimensions:

  • Text-based Search: Retrieve utterances using natural language queries.
  • Question-based Search: Find answers using extracted and vectorized questions.
  • Summary-based Search: Query key mission moments through LLM-generated summaries.
  • Image-text Search: Search images using textual descriptions.
  • Image-based Search: Find similar images by uploading a query image.

This setup ensures fast, efficient retrieval of Apollo 11 data using Redis vector search.

🌐 API Endpoints

Method Endpoint Description
POST /search-by-text Search mission logs using text similarity
POST /search-by-question Search using vectorized questions
POST /search-by-summary Retrieve summarized reports
POST /search-by-image-text Find images based on text queries
POST /search-by-image Search for images using vector embeddings

🐳 Running with Docker Compose

To start Redis with the preloaded RDB file, run:

docker-compose up -d

The RDB file contains all the data already loaded so that you can simply query it. Download it from: https://www.dropbox.com/scl/fi/x5hz3pfnizt4tntqe3yor/dump.rdb


🛠 Developed by: Raphael De Lio, Developer Advocate
📢 Powered by Redis OM Spring & Redis 8 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published