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!

The MIT OpenCourseWare Update

https://www.youtube.com/watch?v=WCMFdrTGAEY
1•mdp2021•2m ago•0 comments

Ask HN: How do you survive a job you hate which is slowly making you sick?

1•_override•3m ago•0 comments

AI loss of control incidents are worsening, shows CLTR analysis

https://www.longtermresilience.org/reports/ai-loss-of-control-incidents-are-worsening-shows-cltr-...
2•giuliomagnifico•3m ago•0 comments

AI Billionaires Are Spending Millions to Change Your Mind About Data Centers

https://www.gadgetreview.com/ai-billionaires-are-spending-millions-to-change-your-mind-about-data...
2•01-_-•5m ago•0 comments

AI startup Cognition set to raise around US$1B at a US$47B value

https://theedgemalaysia.com/node/816527
1•01-_-•6m ago•0 comments

CSS Scroll-Driven Animations: Ship Them Safely

https://whoooop.co.uk/blog/css-scroll-driven-animations
1•cashy•7m ago•0 comments

PEP 843 – Export Statement for DRY Re-exports – peps.python.org

https://peps.python.org/pep-0843/
1•rbanffy•9m ago•0 comments

The Hiring Post (2015)

https://sockpuppet.org/blog/2015/03/06/the-hiring-post/
1•tosh•10m ago•0 comments

Ollama Plans Changed

https://ollama.com/pricing
1•soltanov•11m ago•0 comments

Who Should Pay for Source Code Availability?

https://kristoff.it/blog/source-code-availability/
1•distressor•11m ago•0 comments

Keeping Open Source Open in the Age of Coding Agents

https://twitter.com/francedot/status/2095052001667408295
2•frabonacci•12m ago•0 comments

Pattern discovery in binaries to understand file layout (FF-16)

https://github.com/HexLasso/FF-16
1•HexLasso•12m ago•1 comments

So there's this $499 AI Dyson camera toothbrush

https://www.morningbrew.com/stories/so-theres-this-usd499-ai-dyson-camera-toothbrush
1•doppp•14m ago•0 comments

Enough! Open Letter from Jewish Pros in Defense of Mark Ruffalo [on Ellison]

https://lithub.com/enough-an-open-letter-from-jewish-creatives-and-thinkers-in-defense-of-mark-ru...
4•mdp2021•18m ago•0 comments

What every programmer should know about memory (2007)

https://lwn.net/Articles/250967/
1•tosh•19m ago•0 comments

MemoTab – I turned the browser's new tab into a personal workspace

https://chromewebstore.google.com/detail/memotab-–-new-tab-notes-f/fikoeimhmcejdnhpahkljhjcijfd...
1•ab_dev1•19m ago•0 comments

Show HN: Terraplane: webhook-based Terraform PRs with runners in your network

https://github.com/terraplane-org/terraplane
2•xyzjace•21m ago•0 comments

AI Sapiens K1

https://docs.robotis.com/docs/systems/aisapiens/introduction/
1•iamanatom•25m ago•0 comments

Measure the Queue, Not the Bot

https://amitkvint.com/writing/measure-the-queue-not-the-bot/
1•taubek•27m ago•0 comments

Sometimes the Fastest System Is the One Willing to Stop

https://www.amrishkhan.dev/blog/sometimes-the-fastest-system-is-the-one-willing-to-stop-5a6a
1•amrishkhan05•30m ago•0 comments

Swiss E-ID: Justice Minister Jans prevents secret Amazon deal

https://www.heise.de/en/news/Swiss-E-ID-Justice-Minister-Jans-prevents-secret-Amazon-deal-1143745...
2•kioleanu•31m ago•0 comments

The index was lying and the eval knew

https://gil-neto.com/blog/the-index-was-lying-and-the-eval-knew/
1•gilneto8•31m ago•0 comments

Show HN: An Autonomous Agent for Slay the Spire

https://github.com/AttemorySystem/spire-agent
1•langs•32m ago•0 comments

Show HN: I built a menu-bar app to give Claude access to your Apple macOS apps

https://www.pomeroy.app/
1•joesaunderson•32m ago•1 comments

Scientists Hunting Dark Matter Found Something Strange

https://www.nytimes.com/2026/09/01/science/dark-matter.html
1•jimmytucson•32m ago•2 comments

How to Make a PwC-Style PowerPoint with AI: A Practical Consulting Deck Guide

https://medium.com/@2315610426/how-to-make-a-pwc-style-powerpoint-with-ai-a-practical-consulting-...
1•chenxi030826•33m ago•0 comments

Simon Willison: How AI is changing software development [audio]

https://talkingpostgres.com/episodes/how-ai-is-changing-software-development-with-simon-willison/...
2•skm•34m ago•0 comments

The IBM PC, Part 2: Tsunami – Creatures of Thought

https://technicshistory.com/2026/08/29/the-ibm-pc-part-2-tsunami/
1•rbanffy•35m ago•0 comments

Turned a $15 eBay "smart NIC" nobody could get working into a real 10GbE card

https://github.com/nicologiuliani6/cavium-cn6640-snic10e-octeon-ii-nic
2•mchan•36m ago•0 comments

C Is Not a Low-Level Language

https://queue.acm.org/detail.cfm?id=3212479
2•tosh•36m ago•0 comments