Skip to content

A 30-Article Stock RAG Demo: What ROUGE and 1.16 Seconds Really Prove

THE ARGUMENT

The paper shows that a Vietnamese stock-news RAG pipeline runs and responds quickly, but its ROUGE scores do not prove factual accuracy or cross-market reuse.

On this page

Your team has 30 Vietnamese stock-market articles and a vendor demo that answers in 1.16 seconds, but does that prove the system is accurate enough to buy? The usual advice is to watch the demo, check the latency, and sign if the answers sound fluent. That instinct is reasonable, yet it skips the harder question: what exactly was measured? The paper behind the demo builds a retrieval system for stock-market news, evaluates it on 100 queries, and reports high word-overlap scores plus an average response time of 1.16 seconds [1]. This audit separates pipeline evidence from accuracy claims, then lists what a buyer should verify before treating a demo as a production-ready financial tool.

What the system actually does: search 30 articles, then generate an answer

The paper is not a stock-price predictor; it is a question-answering pipeline for stock-market news [1]. Its route is retrieval-augmented generation, or RAG. In plain terms, the system first searches a document store for relevant passages, then gives those passages to a generator that writes the answer. The architecture has three stages: text embedding, information retrieval, and information generation. The document store is small: 30 Vietnamese stock-market articles crawled from VnExpress. That is the entire evidence base for the experiments.

For embedding, the authors use LaBSE, a multilingual sentence encoder that turns text into vectors so that semantically similar sentences land near each other. The vectors go into FAISS, a nearest-neighbor search library that retrieves similar documents quickly. Retrieval then combines FAISS vector recall with BM25 ranking. BM25 is a classic keyword scorer that weighs term frequency, document length, and how rare a term is across the collection. The generator then writes an answer from the retrieved content.

  • Clean Vietnamese news: strip URLs, special characters, and normalize case
  • Segment words with Underthesea and remove Vietnamese stop words
  • Encode documents with LaBSE and store vectors in FAISS
  • At query time, recall candidates with FAISS and rerank with BM25
  • Pass retrieved content to the generation module

The data is 30 articles: four news categories and Vietnamese preprocessing

The corpus is small but categorized. Table 1 in the paper splits 30 articles into market trends and index performance (8), corporate stocks and sectors (9), foreign investment and liquidity (7), and regulatory and corporate actions (6). The distribution shows the authors wanted coverage of different stock-market news, not a single-company feed.

CategoryNumberCoverage
Market Trends & Index Performance8Overall market movement and index changes
Corporate Stocks & Sectors9Individual stocks and sector trends
Foreign Investment & Liquidity7International capital in the Vietnamese market
Regulatory & Corporate Actions6Policy, regulation, and corporate decisions
Total30All documents

Preprocessing is Vietnamese-specific. The pipeline strips leading and trailing whitespace, removes URLs and special characters with regular expressions, lowercases text, segments words with Underthesea, and removes Vietnamese stop words. Stop words are high-frequency function words such as conjunctions, prepositions, and auxiliary verbs; removing them focuses the embedding on content words. The paper also mentions Jieba for tokenization before embedding, while the main preprocessing flow uses Underthesea.

Retrieval is hybrid: FAISS recall, then BM25 reranking

A query is embedded with LaBSE and compared with stored document vectors in FAISS using L2 distance. L2 distance is Euclidean distance; a smaller value means the vectors are closer. The top candidates are then reranked with BM25. BM25 scores a document by term frequency, length normalization, and inverse document frequency. In plain terms, a term matters more when it appears often in a document and is rare across the collection.

This hybrid design makes intuitive sense for stock news. Company names, ticker symbols, and index names are strong keywords; pure vector search can surface semantically similar stories about a different company, and BM25 can pull keyword matches back. However, the excerpt does not report an ablation that isolates FAISS-only or BM25-only performance. So the paper does not show how much each component contributes. A buyer should ask for that comparison rather than accept 'hybrid' as a quality claim.

100 queries, ROUGE, and 1.16 seconds: what the numbers can support

The evaluation uses 100 stock-market-related queries and three ROUGE metrics: ROUGE-1, ROUGE-2, and ROUGE-L. ROUGE is a word-overlap family: it compares generated text with reference text by matching words, word pairs, and longest common subsequences. A higher score means the output looks more like the reference. It does not mean the output is factually correct. The abstract says the ROUGE scores are high, but the excerpt stops at Section 4.2 and does not show the score table. This article therefore records the metric names and the 'high' claim without inventing numbers.

MetricReportedWhat it can showWhat it cannot show
ROUGE-1/2/LCalled high in the abstract; no score table in the excerptLexical and structural overlap with reference textFactual correctness or actionability
Average latency1.16 secondsAverage speed in this experimental settingPeak latency, concurrency, or trading latency
Query set size100 queriesWhether a small pipeline can run and produce scoresLong-tail error rates or cross-market generalization
  • Ask for all 100 query-level answers paired with reference documents
  • Require the date range, four-category distribution, and update process for the 30 articles
  • Re-measure the 1.16-second average with stated hardware, concurrency, and cold-start conditions
  • Require the raw ROUGE table plus a human fact-correctness spot check

When the conclusion fails: procurement and evaluation boundaries

The method does not apply when the decision requires factual correctness, real-time trading signals, cross-market reuse, or multi-hop numerical reasoning. Thirty articles are a static small sample; they cannot cover earnings season, sudden policy changes, or intraday moves. VnExpress is a single Vietnamese-language source; moving to English or Chinese markets requires redoing embeddings, tokenization, and stop-word lists. One hundred queries can show that a pipeline runs, but they cannot estimate long-tail error rates. The 1.16-second figure is an average response time, not peak latency or latency under concurrency. The paper's contribution is a working Vietnamese stock-market RAG pipeline with reproducible component choices, not evidence that it can replace an analyst [1].

References

  1. Enhancing Stock Market Information Retrieval with Retrieval-Augmented Generation

Read next

All articles

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…