this post was submitted on 12 Jul 2026
12 points (80.0% liked)

History

6928 readers
14 users here now

Welcome to History!

A community dedicated to sharing and discussing fascinating historical facts from all periods and regions.

Rules:

FOLLOW THE CODE OF CONDUCT

NOTE: Personal attacks and insults will not be tolerated. Stick to talking about the historical topic at hand in your comments. Insults and personal attacks will get you an immediate ban.

founded 3 years ago
MODERATORS
 

Most people I know will read this and have a blank stare. For me, this is kind of what keeps me going.

My degree is in History. I'm getting enrolled to work on my MA in History. I am also considering a side business that involves my passion for history, especially the American Civil War, and technology. These books you see here are just a sample of books I will have in a system called RAG. Retrieval-Augmented Generation (RAG) system grounds Large Language Models (LLMs) in external data. Instead of relying solely on an AI's training data, RAG retrieves relevant documents (like company policies or recent files, or in this case, details in these books), appends them to your prompt, and directs the AI model to generate a highly accurate, fact-based response.

It will be a TON of work creating, but that is part of the enjoyment. Yep... I'm an old nerd. 🤣🤓

you are viewing a single comment's thread
view the rest of the comments
[–] CalvusRex@lemmy.world 4 points 1 day ago

@queerlilhayseed@piefed.blahaj.zone Thanks for the positive response! You basically named the two hurdles that ate most of my development time on my projects system.

On the counting/nondeterminism thing: the trick was giving up on the LLM as a "knower" entirely and treating it as nothing more than a reader. So if I want to know how many times grass shows up in some sprawling Tolkien-esque passage, I'm not asking the model "how many times does grass appear" and hoping for the best. I use it to pull out and tag the relevant sentences into a structured database, and then a dumb, boring, deterministic Python script does the actual counting. Temperature's pinned at 0, and I force it to hand back verbatim quotes with citations instead of letting it synthesize a summary. That alone killed most of the hallucination problem.

The "systemic wrongness" side (bias, basically the model just inventing stuff) came down to hybrid search, meaning keyword/BM25 alongside vector embeddings. Pure semantic search will absolutely whiff on a weirdly named character or a specific term just because it doesn't "feel" semantically close to the query, so having the keyword layer as a backstop matters a lot. And I'm strict about grounding: no direct source quote from retrieval means the system says "I don't know" instead of guessing. It's not allowed to fill gaps with vibes.

Your instinct about cataloging prompts was right on too. I keep a golden dataset of queries I run every time I touch the system, and rather than some vague overall correctness score, I bucket failures by type: was it a retrieval failure or a synthesis failure. That distinction alone tells you whether the fix is in your chunking strategy or your prompting, instead of just flailing at both.

Honestly the tools have come a long way since you last looked at this stuff, and I think it's mostly a philosophy shift. People stopped treating LLMs like databases and started treating them like interfaces sitting in front of one.