Generative AI
Virtual Historian
Singapore’s history is documented across articles and historical resources, but finding reliable answers to specific questions requires more than a general-purpose chatbot.
Virtual Historian is a question-answering system that retrieves information from Singapore history articles and checks the supporting evidence before generating an answer. It is built by experimenting with different retrieval and verification techniques:
-
Chunking: Compared different document chunk sizes, with around 500 tokens providing the best results.
-
Hybrid retrieval: Combined dense vector search with keyword search. This delivered the largest improvement in retrieval recall by capturing both semantic similarity and specific historical terms.
-
Reranking: Reordered retrieved passages to prioritise those most relevant to the question.
-
Consistency checking: Added a verification step to check whether the generated answer was consistent with the retrieved evidence.
-
Source citation: Required answers to reference their supporting sources, making it easier to trace where information came from.
Slides








