Methods & Limits

How the GEMI corpus is built, searched, and what its current limitations are.

Corpus Snapshot

  • Documents indexed: 112
  • Date range: 1637–1990
  • Languages: 5
  • Topics: 5
  • Concepts tracked: 13

Sources

Texts are drawn from Project Gutenberg, the Internet Archive, Wikisource, HathiTrust, and Google Books, supplemented by hand-curated lists of key works defined in YAML config files. Ingestion scripts handle downloading, OCR processing, and metadata extraction for each source.

OCR & Text Quality

Many source texts come from digitized scans with variable OCR quality. A heuristic scoring system (0–100) evaluates each text on 16 metrics including symbol density, vowel-less words, noise lines, and junk tokens. Texts can be post-corrected using Ollama or Gemini-based cleanup scripts. Pages flagged as gibberish are filtered from the reader view.

Concept Indexing

Concept pages are generated from a terms config that defines each concept with multilingual lexical variants (English, French, German, Russian, Latin). Each concept page shows document-level hit counts, decade distribution, and linked evidence excerpts.

Search

Search blends three scoring components: semantic similarity (via OpenAI text-embedding-3-small), lexical match strength, and a source-quality prior. Default weights: semantic 0.45, lexical 0.35, quality 0.20. When the embedding API is unavailable, search falls back to lexical (0.75) and quality (0.25) scoring only.

Translations

Non-English texts can have full-document LLM translations (generated via Gemini) and inline paragraph-level translations on demand. All translations are clearly marked as AI-generated.

Known Limitations

  • OCR quality varies significantly across source archives.
  • Term matching can over-count polysemous forms in noisy text.
  • Semantic search quality depends on embedding index freshness.
  • Corpus coverage is intentionally narrow in this prototype.
  • LLM-generated translations and summaries may contain errors.

Pathways

Curated thematic pathways offer guided routes through the corpus, with Wikipedia-sourced thumbnails fetched at build time.

View Pathways