frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•8mo ago

Comments

zljdanceholic•8mo 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!

Fansubbing and Encoding Guides Index

https://github.com/zeriyu/fansub-guide
1•usefulposter•7m ago•0 comments

Trump says U.S. operation captured Venezuela's president Nicolas Maduro

https://www.cnbc.com/2026/01/03/trump-us-operation-captured-venezuela-president-nicolas-maduro.html
7•edweis•7m ago•0 comments

Show HN: Tibet-Audit – Like Lynis, but for Regulations (GDPR, AI Act, PIPA, LGPD

https://github.com/jaspertvdm/tibet-audit
1•jaspervdmeent•8m ago•0 comments

Show HN: ΔX – When an AI System Is Allowed to Stay Silent

https://zenodo.org/records/18100154
1•DELTA-X•9m ago•0 comments

Chinese Tennis Playing Robot

https://supercarblondie.com/chinese-humanoid-robot-perfect-strokes-in-tennis/
1•tromp•14m ago•0 comments

What I've done with all the extra time gained from learning the Ian Knot

https://blog.klungo.no/2025/12/31/two-years-of-the-ian-knot/
1•danielskogly•21m ago•0 comments

Late night pizzeria nearby The Pentagon has suddenly surged in traffic

https://twitter.com/PenPizzaReport/status/2007347706017251535
71•nomilk•25m ago•37 comments

XLibre XServer 25.1 Changes

https://github.com/X11Libre/xserver/wiki/XLibre-XServer-25.1-Changes
2•bmacho•27m ago•0 comments

Ask HN: Replacement for MacUpdater which reached EOL on 2026-01-01

1•croemer•29m ago•2 comments

How to Win Friends and Influence People: Unrevised Version

https://socialskillswisdom.com/
2•MrBuddyCasino•29m ago•1 comments

The Day We Touch the Source Code of Reality – Written for 100 Years Later

https://pajuhaan.medium.com/the-day-we-touch-the-source-code-of-reality-written-for-100-years-lat...
1•pajuhaan•29m ago•1 comments

Trump says Venezuela's Maduro captured after strikes

https://www.reuters.com/world/americas/trump-says-us-has-captured-venezuela-president-maduro-2026...
13•thewavelength•29m ago•0 comments

Replacement for MacUpdater which reached EOL on 2026-01-01)

https://www.corecode.io/macupdater/index.html
1•croemer•30m ago•1 comments

U.S. Captures Venezuelan President Nicolás Maduro

https://www.wsj.com/livecoverage/venezuela-strikes
10•stikit•33m ago•0 comments

Trump says Maduro 'captured and flown out' of Venezuela

https://www.france24.com/en/americas/20260103-live-venezuela-declares-state-of-emergency-after-re...
8•quotz•34m ago•1 comments

U.S. Has Captured Venezuelan President Nicolas Maduro

https://www.twz.com/news-features/explosions-ring-out-across-caracas-as-u-s-special-ops-helicopte...
8•monerozcash•35m ago•0 comments

Ask HN: How to Make the Most of an Acquisition?

1•francoispiquard•38m ago•0 comments

Show HN: Weft – A reactive and interactive Python experience

https://play.weft.sh/
2•zeapo•39m ago•2 comments

Tell HN: No continental US flights due to attack on Venezuela

6•lsb•39m ago•3 comments

Epstein Brought Race Science and Climate Culling to Silicon Valley AI Elite

https://bylinetimes.com/2025/12/05/how-epstein-channelled-race-science-and-climate-culling-into-s...
3•Krasnol•40m ago•0 comments

US captures Venezuelan leader, Trump says

https://www.nytimes.com/live/2026/01/03/world/trump-united-states-strikes-venezuela
14•Fraterkes•40m ago•7 comments

Show HN: ScrollBump – adding friction to scrolling instead of blocking it

https://www.scrollbump.com/
1•nexgea•42m ago•0 comments

America's 'Death Line' Goes Viral in China

https://www.newsweek.com/americas-death-line-goes-viral-in-china-11269490
3•zonghao•43m ago•0 comments

Solid is not so solid

https://solid-is-not-solid.com/
1•aivarsk•49m ago•1 comments

Resources, Events, Agents

https://en.wikipedia.org/wiki/Resources,_Events,_Agents
1•tosh•49m ago•0 comments

Trump bombed Venezuela, what are the implications to the tech industry?

https://www.bbc.com/news/live/c5yqygxe41pt
9•binsquare•51m ago•3 comments

Trump says Nicolás Maduro has been captured and flown out of Venezuela

https://www.ft.com/content/46ee8a0f-d421-4f7d-9514-297a576ec346
4•perihelions•51m ago•0 comments

Wpex: WireGuard packet relay for NAT traversal

https://github.com/weiiwang01/wpex
1•fanf2•53m ago•0 comments

Show HN: Boxed – Sovereign exec engine for AI agents (Vercel Sandbox inspired)

https://github.com/akshayaggarwal99/boxed
4•akshayaggarwal•53m ago•0 comments

Rocky Linux

https://rockylinux.org/
1•tosh•58m ago•0 comments