♂

MarsRAG

Mission Research Assistant

GitHub ↗

Production-pattern RAG · Hybrid search · Reranking · Evals

Ask the Mars archive anything — get cited answers, not hallucinations.

MarsRAG is a retrieval-augmented generation system over 13 curated NASA-style research reports (39 chunks, 1,662 indexed terms). Every answer is grounded in retrieved evidence with verifiable citations, every ranking is inspectable, and a built-in evaluation suite keeps the pipeline honest.

13 reports
39 chunks
2-stage retrieve → rerank
13 eval cases

1 · Chunk

Section-aware chunking

13 NASA-style reports split into 39 chunks along section boundaries, each carrying document title, section, source and year metadata.

2 · Retrieve

Hybrid retrieval

Hashing TF-IDF vector cosine similarity fused 50/50 with BM25 keyword scoring — semantic breadth plus exact-term precision (MOXIE, tau, SHARAD).

3 · Rerank

Signal reranking

Top candidates are rescored with exact-phrase matches, title-term overlap and source recency, mimicking a cross-encoder stage with transparent signals.

4 · Generate

Grounded generation

Answers are composed only from retrieved chunks, with numbered citations [1][2] mapped to source cards — and an honest refusal when confidence is below threshold.

5 · Evaluate

Built-in evals

A 13-case golden set (including an off-topic control) measures pass rate, citation accuracy, latency and estimated cost — run it live below.

Mission Q&A

Grounded answers with numbered citations — click a turn to inspect its retrieval.

DEMO MODE · local engine · $0/query

Ask anything covered by the 13-report Mars archive, or try a sample:

Citations

Sources for the selected answer — every claim maps to a chunk.

Ask a question to see its sources.

Retrieval Inspector

Hybrid ranking before vs. after the reranker (phrase, title-match and recency signals).

Pipeline stages will appear here after your first query.

Evaluation Suite

13-case golden set (12 topical + 1 off-topic control that must be refused). Executes the real pipeline server-side.

No eval run yet this session.

Knowledge base

The corpus behind every answer — chunked by section, cited by chunk ID.

Geology2023

Olympus Mons: Geology of the Solar System's Largest Volcano

NASA / JPL Technical Report

  • olympus-mons#1Dimensions and structure
  • olympus-mons#2Age and formation history
  • olympus-mons#3Atmospheric and exploration significance
Water & Habitability2022

Aqueous History of Gale Crater: Evidence for a Long-Lived Lake System

Mars Science Laboratory (Curiosity) Science Team

  • gale-crater#1Lake deposits in Yellowknife Bay
  • gale-crater#2Mount Sharp stratigraphy and climate change
  • gale-crater#3Organic molecules and habitability
ISRU & Propulsion2024

MOXIE: In-Situ Oxygen Production on Mars — Final Experiment Report

NASA ISRU Program / Mars 2020

  • moxie#1Experiment overview and results
  • moxie#2How solid-oxide electrolysis works
  • moxie#3Scaling to human missions
Crew Health2025

Radiation Shielding Strategies for Crewed Mars Surface Habitats

NASA Human Research Program

  • radiation#1The Martian radiation environment
  • radiation#2Shielding materials and trade-offs
  • radiation#3Regolith shielding and lava tubes
Atmosphere & Weather2023

Global Dust Storms: Dynamics, Forecasting, and Operational Impacts

Mars Climate Modeling Center

  • dust-storms#1How planet-encircling storms form
  • dust-storms#2Forecasting with orbiters and models
  • dust-storms#3Impacts on surface operations and hardware
Landing Systems2024

Entry, Descent, and Landing for Heavy Mars Payloads

NASA EDL Systems Office

  • edl#1The seven minutes of terror
  • edl#2Sky crane and powered descent
  • edl#3Mass limits of current technology
Sample Return2023

Perseverance Sample Caching: Tube Integrity and Depot Strategy

Mars 2020 Project Office

  • sample-caching#1The caching system
  • sample-caching#2The Three Forks depot
  • sample-caching#3Why these samples matter
Aerial Mobility2024

Ingenuity Mars Helicopter: Flight Performance in a Thin Atmosphere

JPL Rotorcraft Team

  • ingenuity#1Designing for 1 percent atmosphere
  • ingenuity#2Flight record: 5 planned, 72 flown
  • ingenuity#3Legacy: the next generation of Mars aircraft
Water & Resources2022

Subsurface Ice Mapping: SHARAD and Orbital Observations of Buried Water

Mars Reconnaissance Orbiter Science Team

  • subsurface-ice#1Radar sounding of buried glaciers
  • subsurface-ice#2Shallow ice exposed by impacts and the Phoenix lander
  • subsurface-ice#3Ice as a mission resource (SWIM mapping)
Crew Systems2025

Closed-Loop Life Support: Water and Oxygen Recycling for Mars Missions

NASA ECLSS Program

  • life-support#1Water recovery on the ISS as the baseline
  • life-support#2Oxygen generation and CO₂ reduction
  • life-support#3Reliability and repair for a 3-year mission
Communications2023

Communications with Mars: Light-Time Delay and Autonomous Operations

NASA Deep Space Network

  • comm-delay#1The physics of the delay
  • comm-delay#2Deep Space Network and relay orbiters
  • comm-delay#3Autonomy and optical communications
Food Systems2024

Regolith Agriculture: Growing Crops in Martian Soil Simulants

NASA Kennedy Space Center — Veggie / Advanced Plant Habitat Program

  • regolith-ag#1Simulant experiments and what actually grows
  • regolith-ag#2The perchlorate problem
  • regolith-ag#3Why grow food on Mars at all
Interior & Geophysics2023

InSight: Seismic Interior Structure and the Size of Mars's Core

InSight Mission Science Team

  • insight-seismology#1Listening to marsquakes
  • insight-seismology#2Core, mantle and crust measurements
  • insight-seismology#3Meteoroid impacts as seismic sources