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!

Loopers, Robovacs and the Death of the /Prompt

https://medium.com/@vektormemory/loopers-robovacs-and-the-death-of-the-prompt-404946da77f8
1•vektormemory•3m ago•0 comments

I assume I'm below average

https://sive.rs/below-average
1•vikrum•4m ago•0 comments

Show HN: RedgeDB – Redis-compatible storage with a sharper edge (OpenSource)

https://redgedb.com
1•SamuelRecio•5m ago•0 comments

Show HN: Vibecoded local Azure emulator inspired by LocalStack and localgcp

https://github.com/link-society/localaz
1•linkdd•6m ago•0 comments

Berry

https://tasmota.github.io/docs/Berry/
1•tosh•7m ago•0 comments

Show HN: Rust Implementation of Symphony

https://github.com/anantjain-xyz/symphony-rust
1•anant90•9m ago•0 comments

How Clipboards Work

https://cynical.me/blog/how-clipboards-work
1•king_zee•11m ago•0 comments

What was the Amiga community's actual reaction to Doom?

https://old.reddit.com/r/amiga/comments/1u3zi5s/what_was_the_amiga_communitys_actual_reaction_to/
3•doener•12m ago•0 comments

Show HN: Montmark – A lightweight, fast pure-Python Markdown parser

https://github.com/desgeeko/montmark
1•desgeeko•13m ago•0 comments

DN42 is a large dynamic VPN

https://wiki.dn42.us/Home
1•latchkey•17m ago•0 comments

Five AIs Predict the World Cup

https://blog.omgmog.net/AIWC26/
1•omgmog•19m ago•0 comments

LLMs use recurring ghost authors and personalities

https://arxiv.org/abs/2606.02184
1•Gaishan•20m ago•0 comments

In an ant colony, the queen isn't in charge. So who is?

https://phys.org/news/2026-05-ant-colony-queen-isnt.html
2•indynz•22m ago•0 comments

Ask HN: Depression

3•hnthrow10282910•24m ago•4 comments

Pangolin 1.19: Browser Remote Access – SSH, RDP, VNC and More

https://pangolin.net/news/1-19-release
2•miloschwartz•25m ago•0 comments

>400 AUR Packages Compromised with NPM post-install malware

https://archlinux.org/news/active-aur-malicious-packages-incident/
1•lorenzohess•26m ago•1 comments

SpaceX soars after trading begins in largest IPO of all time

https://abcnews.com/Business/spacex-ipo/story?id=133713436
2•evo_9•26m ago•0 comments

Show HN: An AI coaching team in Claude Code that's forbidden from judging you

https://github.com/ibm777p2/Intelligence-Emotions
1•ibm777p2•30m ago•0 comments

Justice Department Approves Paramount's Acquisition of Warner Bros

https://www.politico.com/news/2026/06/12/paramount-acquisition-warner-bros-approved-00960300
4•alephnerd•33m ago•0 comments

Gordon Pask, I Think

https://www.guidavid.com/writing/gordon-pask-i-think
1•gdss•36m ago•0 comments

Free browser-based developer tools I built for everyday front end work

https://0918.us/
1•vicbiz•36m ago•0 comments

Serverless Server Canvas

https://pixelparty-was-taken.vercel.app/
1•GrimFang•39m ago•0 comments

Eric S. Raymond: How to Become a Hacker

https://www.catb.org/esr/faqs/hacker-howto.html
3•dtj1123•42m ago•0 comments

Daytona is going closed source

https://www.daytona.io/dotfiles/updates/daytona-is-going-closed-source
3•majdalsado•42m ago•3 comments

Elon Musk is a real-life Bond villain

https://www.ft.com/content/77affaa7-5da8-4a85-bc7c-eb59b75a72b0
10•doener•43m ago•10 comments

My last observation re: Anthropic's sabotage

https://xcancel.com/deanwball/status/2064665679307985244
3•SilverElfin•46m ago•1 comments

Paramount-WBD merger wins approval from DOJ

https://www.cnbc.com/2026/06/12/paramount-wbd-merger-approval-doj.html
1•root-parent•46m ago•0 comments

The Tests We Skipped

https://ajeygore.in/content/the-tests-we-skipped
1•cdrnsf•47m ago•0 comments

Ask HN: Show your AI coded games [June 2026]

5•franze•49m ago•8 comments

Vibe Trading

https://zhenyi.gibber.blog/vibe-trading
3•zhenyi•49m ago•0 comments