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

Comments

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

Show HN: Multi-agent task management for Claude and Gemini

https://agentrq.com
1•mrtnx•2m ago•0 comments

Enumerations

https://astronomy487.com/all/
1•downboots•4m ago•0 comments

ChatGPT vs. Gemini vs. Claude: The Best LLM Subscription You Should Buy

https://www.artificialintelligencemadesimple.com/p/chatgpt-vs-gemini-vs-claude-the-best
1•imranmk•8m ago•0 comments

I made Claude Code at least 30% more efficient (for me anyway)

https://github.com/noahkirsch/Claude-Code-Glow
1•noahkirsch•8m ago•1 comments

Intro to Mech Interp

https://www.dropbox.com/scl/fi/nt3b3oskr9xk37bh56etd/SAIRC-Introduction-to-Subfields-Mechanistic-...
1•imranmk•8m ago•0 comments

Loomfeed – where AI agents and humans post and vote as equals

https://www.loomfeed.com
1•nomadquest•10m ago•0 comments

The Software Factory Age: Why 2026 May Be the End of Artisan Coding

https://argssh.substack.com/p/the-software-factory-age-why-2026
2•argssh•17m ago•0 comments

Ran into a fake "LP" at a YC after-party and I need to vent

3•danish00111•19m ago•0 comments

The e-graph data structure

https://www.cole-k.com/2023/07/24/e-graphs-primer/
2•SchwKatze•24m ago•0 comments

Show HN: 5-translation RAG matrix fixing LLM religious hallucinations

https://github.com/salaamalykum/quran-semantic-search
2•uk9854321•39m ago•0 comments

Surely no brand is more hated by web users that Cloudflare

7•chrisjj•40m ago•3 comments

Keycard – API keys scoped to one subprocess, gone when it exits

https://www.keycard.studio/zh/
3•jijane•42m ago•0 comments

Hermes Agent by Nous Research

https://hermes-agent.nousresearch.com
2•dnw•42m ago•0 comments

TensorRT LLM

https://github.com/NVIDIA/TensorRT-LLM
2•kristianpaul•48m ago•0 comments

A visual guide to Artemis II and previous missions to the moon

https://www.aljazeera.com/news/2026/4/6/a-visual-guide-to-artemis-ii-and-previous-missions-to-the...
1•mooreds•50m ago•0 comments

Passkeys are one of the worst consumer rollouts I ever witnessed

https://bsky.app/profile/jennschiffer.com/post/3mjrpkrqjm22a
4•mooreds•51m ago•1 comments

Bluetooth tracker hidden in postcard and mailed to warship exposed its location

https://www.tomshardware.com/tech-industry/cyber-security/bluetooth-tracker-hidden-in-a-postcard-...
4•thunderbong•56m ago•1 comments

Show HN: Server builds, wallet signs — a non-custodial Web3 checkout pattern

https://blauenlabs.com/blog/web3-checkout-pattern/
1•thanders•57m ago•0 comments

Writing Liveness

https://contraptions.venkateshrao.com/p/writing-liveness
1•jger15•59m ago•0 comments

AI agent called every pub in Ireland to index the cost of a Guinness

https://guinndex.ai
2•bilekas•1h ago•0 comments

Show HN: Building compiler from scratch without the help of LLMs [video]

https://www.youtube.com/watch?v=THIkjQnqsbw
2•aarnphm•1h ago•0 comments

Global freedom declined for the 20th consecutive year in 2025

https://freedomhouse.org/report/freedom-world/2026/growing-shadow-autocracy
2•Cider9986•1h ago•0 comments

Show HN: Mac-computer-use, an open-source clone of Codex Computer Use

https://github.com/TheGuyWithoutH/mac-computer-use
3•guywithnoh•1h ago•0 comments

Colombia will euthanize Pablo Escobar's invasive 'cocaine hippos'

https://www.scientificamerican.com/article/colombia-will-euthanize-pablo-escobars-invasive-cocain...
1•zdw•1h ago•0 comments

Fatal Accident Occurs in Nurburgring Langstrecken-Serie (NLS)

https://www.bbc.com/sport/motorsport/articles/crl1wwdegkno
1•linzhangrun•1h ago•0 comments

Bounce Off the Atmosphere at Reentry? (2016)

https://space.stackexchange.com/questions/19296/bounce-off-the-atmosphere-at-reentry
1•susam•1h ago•0 comments

F-14 Central Air Data Computer

https://en.wikipedia.org/wiki/F-14_CADC
1•unsnap_biceps•1h ago•1 comments

Verkada Deceives School That Verkada Cameras Would Not "Brick"

https://ipvm.com/reports/verkada-school-brick
3•jhonovich•1h ago•2 comments

CTX is a cognitive memory layer for AI systems

https://github.com/diegoxtr/ctx-open
2•diegoxtr•1h ago•0 comments

Show HN: FluxTest for testing network performance of self-hosted infrastructure

https://github.com/siddheshgunjal/flux-test
1•siddheshgunjal•1h ago•0 comments