SILLOK
The 24th Hanyeon Forum · Dankook University

From Searchable Archives
to Askable Archives

Designing a RAG-Based Research Interface for
The Annals of the Joseon Dynasty
Kunha Kim
Research Professor, Institute for Maritime Humanities
Pukyong National University · littlekg87@gmail.com
Patent application pending · Related manuscript under review
Selected implementation details and unpublished evaluation results are not disclosed.
Before we begin

Open Ask Sillok
on your phone.

The system in this talk is live. Scan now and try a question of your own while we go through the design.

beta.asksillok.com
Public beta · keep it open during the talk
beta.asksillok.com
The Problem
01 / Motivation
Digitized does not mean understood

The Annals are searchable.
They are not yet askable.

Searchable archive

Find a known word

You must already know the person, office, event, or historical expression to enter.

→
Askable archive

Begin with a research question

The system helps discover records whose historical vocabulary you did not yet know.

The Reframing
02 / Pipeline
The wrong first question: which LLM?

RAG quality is decided across the pipeline,
before generation begins.

source
Structure
→
prepare
Evidence units
→
encode
Bilingual space
→
retrieve
Candidate set
→
rank
Historical signals
→
answer
Provenance
Keep the article, its ID, and its metadata as the archive itself defines them.
Cut evidence along the archive's own boundaries, not by arbitrary token windows.
Teach the encoder that a modern question and a Classical Chinese body can mean the same thing.
Gather candidates through more than one route so that different failures do not overlap.
Let reign, date, office, and subject recalculate what similarity alone proposed.
Return the original record with every answer, so the claim can be checked at its source.
What determines quality is not one model, but the design between models and sources.
Ask Sillok
03 / Three Layers
An end-to-end design for historical RAG

Ask Sillok is built in three connected layers.

01

Archive Construction

Preserve source structure, manage metadata, and bridge the archive's two languages.

done once · offline
02

Retrieval Orchestration

Reformulate the question, search through two paths, and reorder evidence with historical signals.

repeated · every query
03

Expert-Grounded Validation

Let historians judge the evidence and feed that judgment back into the system.

continuous · feedback
01
Chapter 01 of 03
Ask Sillok · Chapter 01

Archive Construction

Preserve the source structure, separate metadata from text, bridge the archive's two languages, and teach the encoder what they mean.

  • Source structure
  • Metadata and text
  • Two languages in one record
  • Domain-adapted embeddings
01Archive Construction 02Retrieval Orchestration 03Expert-Grounded Validation
01Archive Construction
04 / Source Structure
The archive already contains its own boundaries

The source structure comes before the vector database.

Actual Sillok XML · abridgedTaejo 2 · 1393-01-06
<level5 id="waa_10201006_001">
<front><biblioData type="T">
<mainTitle>도당에 명하여 평양에 성을 쌓도록 하다</mainTitle>
<dateOccured date="1393-01-06L0" type="서기"/>
<subjectClass>군사-관방(關防)</subjectClass>
</biblioData></front>
<text><content><paragraph>
○壬子/命都評議使司, 城
<index type="지명">平壤</index>。
</paragraph></content></text>
</level5>
Identity

The article is already a unit.

The persistent level5 id anchors retrieval, citation, and return to the source.

Context

Metadata is part of the record.

Date and subject classification can be searched without flattening them into body text.

Meaning

The body contains typed entities.

In-text markup identifies 平壤 as a place, preserving a second retrieval signal.

The XML is not merely a text container. It is the archive's data model. Public Sillok XML, article waa_10201006_001 · abridged for display
National Institute of Korean History record · XML structure reference
01Archive Construction
05 / Metadata
Two stores, one evidence object

Separate metadata from text.
Never separate provenance from evidence.

Text layer

What is read

  • Classical Chinese body
  • Modern Korean title
  • Retrievable evidence unit
persistent
record ID
Metadata layer

Where it belongs

  • Reign and date
  • Source hierarchy
  • Subjects and return link
The metadata is managed separately, then rejoined for filtering, ranking, citation, and return to the original.
01Archive Construction
06 / Two Languages
The query and the source do not speak the same language

The Annals are bilingual by design.

Modern Korean

Question and title

The language in which a present-day historian asks and names an event.

semantic
alignment
Classical Chinese

Historical body

The language in which the original record preserves the event.

A modern-language question must reach a source written in the language of its time.
01Archive Construction
07 / XML Evidence
The bilingual problem exists inside each article

One XML record contains a Korean title
and a Classical Chinese body.

Actual Sillok XML · abridgedwaa_10201006_001
<level5 id="waa_10201006_001">
<front>
<mainTitle>도당에 명하여 평양에 성을 쌓도록 하다</mainTitle>
</front>
<text><content><paragraph>
○壬子/命都評議使司, 城 <index type="지명">平壤</index>。
</paragraph></content></text>
</level5>
same article ID · two linguistic surfaces
Korean · retrieval-facing title

도당에 명하여 평양에 성을 쌓도록 하다

Names the event in the language of the modern reader.

Classical Chinese · evidence-bearing body

○壬子/命都評議使司, 城平壤。

Preserves the historical statement that must be retrieved as evidence.

The encoder must learn that these two strings belong to the same historical article. Public Sillok XML · abridged for display
National Institute of Korean History record · XML structure reference
01Archive Construction
08 / Embedding Design
Teaching the encoder what this archive means

Fine-tuning aligns modern questions
with historical records.

Base model
Cross-lingual distancefar apart
semantic dimension 1
semantic dimension 2
modern Korean query
Korean title
paired Classical Chinese body
Without fine-tuning

The paired body remains distant.

Generic similarity does not guarantee that a modern Korean query reaches its Classical Chinese evidence.

With archive-specific fine-tuning

The paired languages share a neighborhood.

The encoder learns the archive's title–body correspondence as a different sense of similarity.

Conceptual 2D illustration · no unpublished measurements, coefficients, or evaluation results are shown.
02
Chapter 02 of 03
Ask Sillok · Chapter 02

Retrieval Orchestration

Interpret the question, search through two routes, reorder the candidates with historical signals, and return every answer with its source.

  • From question to evidence
  • Query reformulation
  • Dual retrieval
  • Historical weighting
  • Provenance first
01Archive Construction 02Retrieval Orchestration 03Expert-Grounded Validation
02Retrieval Orchestration
09 / Overview
The online path · repeated for every question

A question becomes evidence through four decisions.

input
Research question
1
Reformulate
2
Dual retrieval
3
Historical weighting
4
Evidence + provenance
The generator receives ranked evidence, not the entire archive and not an unexplained similarity list.
02Retrieval Orchestration
10 / Query Reformulation
A natural question hides several search conditions

Interpret the question before
searching the archive.

What the historian asks

A question in ordinary language

Useful for research, but often missing the archive's exact terms and boundaries.

Why did Taejo have walls built at Pyongyang in 1393?
→
What the system identifies

Historical search conditions

personTaejo 太祖
period1393 · Taejo 2
eventwall construction
terminology城 · 都評議使司
→
What is sent to retrieval

A logged reformulation

The transformation is visible and reviewable rather than silently hidden inside the model.

{ person: 太祖 · date: 1393-01 · subject: 군사-관방 · term: 城 }
02Retrieval Orchestration
11 / Dual Retrieval
Parallel retrieval · one question, two independent signals

Search twice. Merge once. Then rank.

Two searches run at the same time
Reunite
Reformulated question

One research question

Route A · meaning

Semantic retrieval

Finds conceptually related records across the bilingual archive.

Route B · conditions

Structured retrieval

Uses person, period, and metadata conditions to recover another candidate set.

Candidate pool

Merge results

not yet final

Unified output

Historical ranking

1Record A0.94
2Record B0.87
3Record C0.81
The two paths run in parallel, fail differently, and reunite before historically informed ranking.
02Retrieval Orchestration
12 / Historical Weighting
Vector distance proposes; historical conditions recalculate

See the score change with historical signals.

Example candidate · click the matching signals

推刷都監 · Hyojong reign · 1649–1659 · slave policy · named official

final = (1 − distance) + Σ bonus
0.28
Values restored from the earlier Ask Sillok presentation.
Live calculation
Semantic score0.72
Historical bonus+0.00
Final score0.72
This is a ranking function, not an evaluation result. Each selected historical match reorders the candidate pool.
02Retrieval Orchestration
13 / Provenance
Do not find a source after speaking

Find the evidence first.
Then speak from it.

Archive
Original Sillok entry
→
Evidence
Full record + metadata
→
Citation
Used passage
→
Answer
A claim
Provenance is not decoration added at the end.
It is what remains when source structure survives the pipeline.
02Retrieval Orchestration
00 / Worked Example
Provenance first · one real article, end to end

This is what answering from evidence looks like.

Historian's question

Did Taejo order walls to be built at Pyongyang?

Answer · grounded in the record

Yes. In the entry for the 6th day of the 1st month of Taejo 2 (1393), the king ordered the Dopyeonguisasa to build walls at Pyongyang.

Every claim carries a citation. Nothing is asserted without a record behind it.
[1]waa_10201006_001Taejo 2 · 1393-01-06 · 壬子
Article title · modern Korean

도당에 명하여 평양에 성을 쌓도록 하다

Original passage · Classical Chinese · used span highlighted

○壬子/命都評議使司, 城平壤。

Subject군사-관방(關防)Place index平壤SourceTaejo Sillok
Open the original record ↗
The answer is a claim with a return path: article ID, date, the passage actually used, and one click back to the source.
03
Chapter 03 of 03
Ask Sillok · Chapter 03

Expert-Grounded Validation

Distinguish similarity from relevance, and let the judgment of the researchers who use the system reshape its design.

  • Similarity is not relevance
  • Human-in-the-loop
01Archive Construction 02Retrieval Orchestration 03Expert-Grounded Validation
03Expert-Grounded Validation
14 / Two Judgments
Retrieval quality has two different meanings

A high similarity score is not yet
historical relevance.

Machine judgment

How close are the vectors?

Automatic metrics can test whether the retriever learned a defined correspondence.

“Did the system retrieve what it was trained to retrieve?”
Historical judgment

Can this record serve as evidence?

A historian decides whether the returned source actually bears on the research question.

“Would I use this record to construct an answer?”
03Expert-Grounded Validation
15 / Human-in-the-loop
Beyond automated scores

Quality must include the judgment of
the researchers who will use the RAG.

Quantitative evaluation

Measure what the system retrieves.

Automatic scores show whether retrieval changes.

→
Expert blind evaluation

Ask whether the evidence is useful.

Domain researchers judge the results without knowing which model produced them.

→
Return to design

Let that judgment reshape the RAG.

The users' expertise becomes part of quality control.

This is human in the loop: researchers do not merely use the system; their judgment helps define its quality.
Putting It Together
16 / Ask Sillok
Three layers · three time scales · one return path

Ask Sillok is an end-to-end research architecture.

Once · offline
Source structure → metadata → bilingual embedding → archive index
Archive construction
Every question
Reformulation → dual retrieval → historical weighting → cited evidence
Retrieval orchestration
Continuously
Expert judgment → cross-checking → error analysis → revision
Quality validation
Research Engineering
17 / Live Infrastructure
The technical architecture is part of the research

This humanities project runs on NPU and AWS.

Live systemNPU-accelerated embeddings · AWS-hosted orchestration and vector retrieval
Research interface

React

The historian's question enters a working research interface.

Cloud orchestration

FastAPI on
AWS Lambda

Serverless API logic coordinates the live retrieval pipeline.

Embedding compute

Qwen3
on NPU

Archive-specific embeddings are produced on dedicated neural hardware.

Vector retrieval

AWS
S3 Vectors

Vector databaseBilingual archive vectors are stored and searched here.

Evidence + answer

S3 Store
+ DeepSeek

Original records are hydrated before answer generation.

Jointly built

Ask Sillok
Research Team

Ask Sillok's historical method and working system were developed together by the research team.

Kunha Kim · Byungjun Kim · Jeong-hui Park · Donghyun Woo · Si-heon Lee
Ask Sillok · Takeaway · Hanyeon Forum 2026

An askable archive is not built
by attaching an LLM.

  • Build an archive-native database.
  • Orchestrate retrieval around historical questions.
  • Keep the historian inside the validation loop.
Patent application pending · Related manuscript under review
Selected implementation details and unpublished evaluation results are reserved.
beta.asksillok.com
Explore Ask Sillok · beta
← → navigate · click page or G for overview · T theme
Jump to slide · click outside or press Esc to close