Back to directory

MathModel-QA-Engine

A retrieval-augmented generation engine built with LlamaIndex for querying past MCM/ICM mathematical-modeling competition papers, chunking each paper by its heading structure into whole-section nodes tagged by year, problem and section for precise, filtered retrieval.

MathModel-QA-Engine

MathModel-QA-Engine is a RAG question-answering engine for analyzing winning papers from mathematical-modeling competitions such as MCM/ICM, built with LlamaIndex. Because these papers follow a highly uniform structure, Summary, Introduction, Assumptions, Body, Sensitivity Analysis, Conclusion, the project chunks each paper by its Markdown heading rather than by a fixed token length, splitting further only when a section under one heading is too long, so each retrieval node is a semantically complete section.

A regex state machine automatically recognizes 13 section types during chunking; each retrieval node carries metadata such as year, problem number, section and document ID, so retrieval can be filtered along any combination of those fields, including comparing how the same problem type was handled across different years. Multi-turn chat keeps conversation memory so answers get more precise the deeper the conversation goes, and post-processing filters out title-only and table-of-contents nodes to reduce retrieval noise.

Built with Python and LlamaIndex, with a command-line interface to build the vector index and chat, and support for any OpenAI-compatible embedding and chat API, including OpenAI, DeepSeek and Zhipu. MIT licensed.

More in RAG

See all 540
  • ai·rete·rag

    ai-rete-rag.com

    A platform that pairs a Rete rule engine with retrieval-augmented generation, so deterministic rules decide an outcome and grounded retrieval explains the decision in plain language.

  • Xtriever

    github.com

    A hybrid retrieval engine for retrieval-augmented generation, written in Rust to run on-device on a phone or a laptop, combining lexical BM25 search, dense embedding search, reciprocal-rank fusion and cross-encoder re-ranking with no server.

  • FileFlux

    github.com

    A .NET library that turns PDF, DOCX, HWP and other documents into optimized chunks for RAG systems, through a five-stage pipeline built on high-performance Rust FFI readers.