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!

AI product management: Familiar enough to start, different enough to fail

https://www.leadinginproduct.com/p/ai-product-management
1•benkan•3m ago•0 comments

Proxmox VE 7.0–8.0.3: unauthenticated, single-request root auth bypass

https://blog.nathangolez.com/2026/08/proxmox-ve-7-08-0-3-unauthenticated-single-request-root-auth...
1•neeythann•3m ago•0 comments

OpenMPTCProuter v0.64.1 – multi-WAN aggregation with Multipath TCP

https://www.openmptcprouter.com/
1•OpenMPTCProuter•8m ago•0 comments

What would Steve Jobs think?

1•ethanwillis•8m ago•0 comments

Show HN: Fly By – retro biplane flying game

https://michaelteter.com/flyby.html
1•michaelteter•8m ago•0 comments

Show HN: Commit Town

https://commit-town.vercel.app/landing
1•hawkeye77787•9m ago•0 comments

Fluorescent lamps (don't) have ears

https://blog.coredump.cx/p/fluorescent-lamps-dont-have-ears
1•surprisetalk•10m ago•0 comments

Coder hit In a supply chain attack serving malicious packages

https://github.com/coder/coder/security/advisories/GHSA-vx42-ghc9-gw65
1•someniak•11m ago•0 comments

Ask HN: How fast can you ship a production ready SaaS from scratch

1•codegladiator•13m ago•0 comments

1Password Supports the Ethnic Cleansing of Europe

https://www.alilleybrinker.com/blog/1password-funds-ethnic-cleansing/
2•salzig•14m ago•0 comments

Anatomy of a scam campaign, from the point of view of a link shortener

https://casparwre.de/blog/anatomy-of-a-scam-campaign/
1•caspii•16m ago•0 comments

The Rebuilder

https://twitter.com/sabben/status/2094670635616075924
1•petervansabben•18m ago•0 comments

Deepsec Reconstructed the Pwn2Own Microsoft Edge Sandbox Escape

https://www.darknavy.org/blog/patch_in_exploit_out_how_deepsec_reconstructed_the_pwn2own_microsof...
1•uneven9434•21m ago•0 comments

Show HN: Another Text Editor

https://kraa.io/about?s=hn
1•levmiseri•21m ago•2 comments

Manus Resumes Independent Operations

https://manus.im/blog/manus-resumes-independent-operations
2•doppp•27m ago•0 comments

Robinhood Chain runs a transaction filterer with no published criteria

https://xroot.dev/blog/robinhood-chain-read-directly
1•SulimanMukhtar•29m ago•0 comments

Think First, AI Second

https://douglevin.substack.com/p/think-first-ai-second
1•saikatsg•29m ago•0 comments

It’s okay to forget

https://ivy.boo/its-ok-to-forget/
1•tobr•30m ago•0 comments

How to Build a Startup with AI

https://contextgoblin.com/blog/how-to-build-a-startup-with-ai
1•clemens1010•30m ago•0 comments

Microsoft WorkIQ

https://github.com/microsoft/work-iq/
1•vismit2000•31m ago•0 comments

Some of the greatest artists are in fact extreme bureaucratic talents

https://twitter.com/i/status/2094462115192951011
1•Michelangelo11•37m ago•0 comments

The Hugging Face hack could indicate cultural issues at OpenAI

https://www.technologyreview.com/2026/08/31/1143180/hugging-face-hack-could-indicate-cultural-iss...
1•joozio•38m ago•0 comments

Reverse engineering an Wii game for the first time

https://en.blog.bobh0724.net/2025/08/25/reverse-engineer-puyo20-wii/
1•uneven9434•40m ago•0 comments

12V Deep Cycle Battery

https://www.jrepower.com/products/12v-deep-cycle-battery/
1•Jreecoasis•41m ago•0 comments

Hertzfeld, Andy oral history, part 1 of 2 (2025)

https://www.computerhistory.org/collections/catalog/300000188/
1•mpweiher•41m ago•0 comments

Countries gear up to create lunar standard time

https://mainichi.jp/english/articles/20260830/p2g/00m/0sc/043000c
2•BaudouinVH•41m ago•0 comments

Can your GrokBot conquer the world?

https://agentofempires.com/
1•midwitMBA•42m ago•0 comments

Drone simulator in Arduino serial monitor

https://kimsalmi.com/posts/2016/quadcopter/
1•infr88•43m ago•0 comments

Smuggled Infinities (2023)

https://adventurecapital.substack.com/p/smuggled-infinity
1•thoughtpeddler•44m ago•1 comments

How our agents build on-brand pages with design.md

https://vercel.com/blog/how-our-agents-build-on-brand-pages-with-design-md
1•vcfgdev•44m ago•0 comments