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!

Illumos Doors: Unix Built-In RPC Mechanism

https://blog.daveeddy.com/2026/07/06/illumos-doors/
1•stephenlf•1m ago•0 comments

"Sava's Titanic" emerges in Serbia as Europe's rivers run dry

https://www.cbsnews.com/news/shipwreck-savas-titanic-emerges-serbia-europe-drought-heat/
1•gmays•2m ago•0 comments

A calculator that tells you how much you must wager to clear a casino bonus

https://slotdrop.online/tools/wagering-calculator
1•AlexanderNovak•2m ago•0 comments

Github: Unauthenticated clone of a public repo intermittently returns 401

https://github.com/orgs/community/discussions/206581
1•Xunie•2m ago•0 comments

Run any LLM in t3's Codex and Claude tabs through a local gateway

https://github.com/0xhsn/proxy-llms
1•7asan•2m ago•0 comments

What's My Number?

https://drorspei.com/whatsmynumber/
1•henrydark•3m ago•0 comments

I rented a car, and within hours my driver's license was for sale

https://arstechnica.com/security/2026/09/my-drivers-license-is-one-of-153-million-for-sale-on-a-n...
1•chha•4m ago•0 comments

Chinese Cars Could Be Huge in U.S., and That's the Problem, Officials Say

https://www.nytimes.com/2026/08/31/business/chinese-cars-us-sales-ban.html
3•bookofjoe•5m ago•1 comments

Assault Rifle in an Open-Cockpit Plane: Ukraine's Unlikely Drone Hunters [video]

https://www.youtube.com/watch?v=gBxQixJfOzk
2•JumpinJack_Cash•5m ago•0 comments

Finger: The 1971 Social network that never died

https://en.andros.dev/blog/54572bc7/finger-the-1971-social-network-that-never-died/?_hsenc=p2ANqt...
1•rmason•7m ago•0 comments

New things for regular expressions in PostgreSQL: pg_tre and pg_re2

https://www.depesz.com/2026/08/25/new-things-for-regular-expressions-in-postgresql-pg_tre-and-pg_...
1•fanf2•7m ago•0 comments

Pushing the Limits of Serving DeepSeek-V4-Pro

https://www.lmsys.org/blog/2026-08-19-deepseek-v4-pro-engine-optimization-h20/
1•gmays•8m ago•0 comments

How A Tweet Changed My Life

https://hugorcd.com/writing/how-a-tweet-changed-my-life
1•rmason•8m ago•0 comments

Woman Who Exposed FBI Official for Working with Russian Oligarch Found Dead

https://www.newsweek.com/allison-guerriero-michael-mcgonigal-fbi-exposed-working-russian-oligarch...
4•1e1a•10m ago•0 comments

Show HN: Mousetrapped: Cursor Recovery Utility for macOS- Open Source

https://github.com/uncSoft/Mousetrapped
1•uncSoft•11m ago•0 comments

Why Is Staff Scheduling Hard?

https://www.mjc2.com/staff-planning-complexity.htm
1•dualarte•12m ago•0 comments

Svelte Custom Renderers

https://svelte-custom-renderers.com/
1•dabinat•14m ago•0 comments

Show HN: AlparAI – Autonomous Swarm OS with Quantum Verification

https://www.alparai.com/en
1•ercumenterden•14m ago•0 comments

Vidact – a compiler that turns React into direct DOM operations

https://www.vidact.dev/
1•mohebifar•15m ago•0 comments

Show HN: AI coach that adapts workouts and meals to your injuries and

https://rizin.app/
1•wowinter15•15m ago•0 comments

The Death of Educational Content on YouTube (Fern) [video]

https://www.youtube.com/watch?v=-Gnrp_caPvo
1•K3UL•16m ago•1 comments

RonanRX (YC S26) – Full Stack Pharmaceutical Company for Personalized GLP-1s

https://ronanrx.com/
1•lloydarmbrust•16m ago•1 comments

The First Pancake (2021)

https://www.gkogan.co/first-pancake/
1•gk1•17m ago•0 comments

The Ceiling Was Never the Model

https://www.pinecone.io/blog/the-ceiling-was-never-the-model/
1•gk1•17m ago•0 comments

Wise Application to Charter a Subsidiary National Trust Bank [pdf]

https://www.occ.gov/topics/charters-and-licensing/interpretations-and-decisions/2026/cd1381.pdf
1•toomuchtodo•19m ago•0 comments

Show HN: Local business leads, one API call away

https://sensecollect.com
1•chrislxy•20m ago•0 comments

MapQuest is now the No. 1 U.S. app after bucking Trump's 'Lake America' renaming

https://techcrunch.com/2026/09/02/mapquest-is-now-the-no-1-u-s-app-after-bucking-trumps-lake-amer...
3•speckx•24m ago•0 comments

Pedagogical Provinces in Dangerous Times

https://peterberard.substack.com/p/pedagogical-provinces-in-dangerous
1•EthanHeilman•24m ago•0 comments

Disclosure Pilot AI

https://github.com/p-dirac/disclosure-pilot-ai
1•p-dirac•24m ago•0 comments

Lean AI Formalization Leaderboard

https://lean-lang.org/eval/legacy/
1•frozenseven•25m ago•0 comments