← All work06 / SYSTEMS & ANALYSIS
AI / RAG evaluation · Anne of Avonlea

How a novel becomes an answer.

A Retrieval-Augmented Generation experiment using Lucy Maud Montgomery’s novel. The question was how different ways of dividing a text affect the answers a small language model produces.

CONTRIBUTION

Individual project · implementation & evaluation

CONTEXT

MTH 424 · course research

METHODS

Python / Qwen2.5-0.5B / Milvus Lite / ROUGE-L & BLEU

Cover of the Anne of Avonlea retrieval-augmented generation evaluation report
01 / THE QUESTION

Does the way a text is structured change what an AI system can retrieve and answer?

02 / THE OBSERVATION

Evaluation depends on the details. A loose document-URL filter pulled in questions about another book, while short reference answers made exact-word metrics sensitive to phrasing.

03 / THE APPROACH
  1. 01

    Cleaned the literary text and used exact URL matching to isolate 30 NarrativeQA question-answer pairs.

  2. 02

    Compared fixed-size chunks of 500 characters with groups of five sentences, using overlapping windows.

  3. 03

    Embedded the passages, retrieved relevant context and evaluated Qwen2.5-0.5B-Instruct answers with ROUGE-L and BLEU.

EXPERIMENT / 30 QUESTIONS

A change in structure.
A change in the answer.

Reported text-overlap scores
ChunkingROUGE-LBLEU
Fixed-size0.18360.0370
Sentence-based0.23410.0260

These scores compare text overlap. They are not accuracy percentages.

04 / WHAT CAME OUT OF IT

Both strategies exceeded the course’s specified thresholds. Sentence-based chunks scored higher on ROUGE-L (0.2341 versus 0.1836); fixed-size chunks scored higher on BLEU (0.0370 versus 0.0260).

05 / A REFLECTION

No single strategy led on both metrics. With only 30 questions, the results are a small experimental comparison. Text-overlap scores offer one view of an answer and do not, by themselves, establish factual accuracy.

THE WORKING FILESDownload the experiment report↗
NEXT PROJECT / Manufacturing DesignFrom bottle to production line↗