frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

An Enterprise-Level Retrieval-Augmented Generation System

https://comfyai.app/article/llm-applications/enterprise-level-rag-hands-on-practice-II
6•zljdanceholic•1y ago

Comments

zljdanceholic•1y ago
How can we search the wanted key information from 10,000+ pages of PDFs within 2.5 hours? For fact check, how do we implement it so that answers are backed by page-level references, minimizing hallucinations?

RAG-Challenge-2 is a great open-source project by Ilya Rice that ranked 1st at the Enterprise RAG Challenge, which has 4500+ lines of code for implementing a high-performing RAG system. It might seem overwhelming to newcomers who are just beginning to learn this technology. Therefore, to help you get started quickly—and to motivate myself to learn its ins and outs—I’ve created a complete tutorial on this.

We have a complete graph to explain its workflow where multiple tools are used: Docling for parsing PDFs, LangChain for chunking text, faiss for vectorization and similarity searching, and chatgpt for LLMs.

Besides, I also outline the codeflow, demonstrating the running logic involving multiple python files where starters can easily get lost. Different files are colored differently. The purpose of showing this is not letting you memorize all of these file relationships. It works better for you to check the source code yourself and use this as a reference if you find yourself lost in the code.

The original project of Ilya Rice design its RAG system for answering questions of annual reports from companies, so he only designed three types of question response format for that challenge: a name, a number, or a boolean. But to ask questions about technical stuff, we absolutely ask general questions like How does RoPE work? to know about some concepts and the like Therefore, I further modify the system logic to fit this need by customizing an AnswerWithRAGContextExplanationPrompt class and automatically matching the most related chapter and corresponding pages via searching through all faiss databases (only retrieve the top-1) The final performance is demonstrated below (not cherry-picked, only tested once).

- What's the steps to train a nanoGPT from scratch? The answer is:

Training nanoGPT from scratch involves several clearly defined steps. First, set up the environment by installing necessary libraries, using either Anaconda or Google Colab, and then download the dataset (e.g., tinyShakespeare). Next, tokenize the text into numerical representations and split the data into training and validation sets. Define the model architecture including token/positional embeddings, transformer blocks with multi-head self-attention and feed-forward networks, and layer normalization. Configure training hyperparameters and set up an optimizer (such as AdamW). Proceed with a training loop that performs forward passes, computes loss, backpropagates, and updates parameters, while periodically evaluating performance on both training and validation data. Finally, use the trained model to generate new text from a given context.

All code are provided on Colab and the tutorial is referenced here. Hope this helps!

Show HN: Lettersmash Word Game

https://lettersmash.app
1•stevenalowe•2m ago•0 comments

I let free LLMs improve my AI's code 24/7. They learned to fake improvements

https://github.com/onlychaos420/Evolve-guardian
2•onlychaoswho•2m ago•0 comments

Dynasty Bowl – a retro-style Madden with online play designed for browser

https://playdynastybowl.com/
2•pinekite•3m ago•1 comments

A Fistful of Abstract Values: Crafting the Transformers Compilers Need [pdf]

https://users.cs.utah.edu/~blg/publications/xsynth/kpfrdg-popl-2027.pdf
1•matt_d•4m ago•0 comments

Why Can Language Models Think?

https://jichu4n.com/posts/why-can-language-models-think/
2•sdkaufman•5m ago•2 comments

Denotational Results in Compiler Correctness and Comparisons with Operational

https://arxiv.org/abs/2611.31724
1•matt_d•5m ago•0 comments

AI Grinding for Fun and Cryptanalysis [pdf]

https://arxiv.org/abs/2608.21986
1•_tk_•7m ago•0 comments

Analog circuit can sound like any room [video]

https://www.youtube.com/watch?v=Nat7S3OKDV0
1•bschne•8m ago•0 comments

How to make a bestseller: insiders reveal the tricks of the book trade

https://www.theguardian.com/books/ng-interactive/2026/aug/29/how-to-make-a-bestseller-insiders-re...
1•bookofjoe•8m ago•1 comments

Show HN: Kokoro-82M distilled to 3.27M params (13 MB, no espeak-ng, 31× faster)

https://huggingface.co/drmhse/nano-edge-tts-standalone
1•drmhse•9m ago•0 comments

Show HN: Agents Director, an alpha app for assembling AGENTS.md files

https://github.com/candiun/agents-director
1•evilmint•9m ago•0 comments

Tests as Data

https://martinfowler.com/articles/tests-as-data.html
2•mooreds•10m ago•0 comments

Bob's Company

https://lucumr.pocoo.org/2026/11/28/bob/
1•mooreds•11m ago•0 comments

College Board says hackers likely used AI to access student accounts

https://text.npr.org/nx-s1-6057155
2•mooreds•12m ago•0 comments

Command and Conquer: Generals – Zero Hour Reforged v4.0 is now online [video]

https://www.youtube.com/watch?v=AJjX2G5EmEk
1•nomilk•12m ago•0 comments

Show HN: Greatcountry.org – 180 countries, ranked by 51 uncorrelated indicators

https://greatcountry.org
1•freediver•18m ago•0 comments

Plain language Riemann Hypothesis proof guide

https://verroes.com/riemann
2•0gs•19m ago•1 comments

The Newsletter Bonanza Is Slowing Down

https://www.wsj.com/business/media/the-newsletter-bonanza-is-slowing-down-32a8ba0a
2•thm•22m ago•0 comments

What Did(n't) I Learn? (1999)

http://www.daninjapan.com/learn/index.html
1•joebig•24m ago•0 comments

1bit astrologist paints your sky

https://1bit.bookstore.ninja
1•ottomagic•26m ago•0 comments

Vercel applies for .vercel TLD in ICANN 2026 – the namespace for AI slop begins

https://ntlddata.com/applications/applicant/vercel-inc
5•alexdykyi•28m ago•0 comments

Show Hacker News: Loare, distill your mind

https://loare.app/
1•xiaolingxiao•29m ago•1 comments

Grief of a Craftsman

https://suzyahyah.github.io/work%20experiences/2026/06/11/Grief-of-craftsman.html
2•suzyahyah•30m ago•1 comments

Show HN: Ghoti, a small coordination service for distributed systems

https://ghoti.miocevic.com/
1•dankom•30m ago•0 comments

Show HN: I built my own Website Builder

https://www.web8.io
1•hiteshchandwani•31m ago•0 comments

Show HN: ChessTopia – Polytopia-like strategy, chess puzzles conquer the map

https://lusob.github.io/chesstopia/
1•lusob•31m ago•0 comments

Scientists print human liver tissue in breakthrough that could save lives

https://www.techspot.com/news/111044-scientists-print-human-liver-tissue-breakthrough-could-save....
4•thunderbong•33m ago•0 comments

Bitemporal CVE Receipts, Vex/KEV CI Gate, and MCP Server

https://vciy.com/scoreboard
2•voxell_code•38m ago•0 comments

Native Windows Dynamic Island, AppBar Taskbar, and Android Phone Deck in C#

https://github.com/JustNightt/OpenPixel
1•justnight•39m ago•1 comments

A curated selection of Arc-inspired browsers

https://arclikes.com
3•lnrd•42m ago•0 comments