Back to directory

Life Valuation Actuarial Document Q&A machine using Retrieval Augmented Generation (RAG)

An example retrieval-augmented generation application that lets actuaries ask questions over life valuation actuarial documents, such as statutory accounting, principle-based reserving and IFRS 17, citing the source context behind each answer.

Life Valuation Actuarial Document Q&A machine using Retrieval Augmented Generation (RAG)

This project builds a RAG pipeline so actuaries can ask natural-language questions across a collection of life valuation actuarial documents, covering statutory accounting principles, principle-based reserving, cash flow and asset adequacy testing, actuarial standards of practice, US GAAP, IFRS 17, and other jurisdiction- and risk-related documents. Because RAG can hallucinate, the tool shows the retrieved context behind each answer so users can verify it.

Documents are chunked at ingestion with langchain-text-splitters and embedded into a vector database. At query time the retrieval pipeline calls the Pinecone, Voyage, Cohere and Anthropic SDKs directly, without a LangChain orchestration layer in the request path, for low latency, and an Anthropic Claude model with a long context window generates answers that cite across multiple retrieved sources.

Built with Python and Streamlit, with a public demo app deployed on Streamlit. Apache-2.0 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.