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•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!

Cutting Steel Gears with Electric discharge machining

https://hackaday.com/2026/05/05/cutting-steel-gears-with-homemade-edm/
1•afpx•40s ago•0 comments

Steam Controller CAD files under Creative Commons license

https://store.steampowered.com/news/group/45479024/view/702141174212723352
1•mrtimeman•2m ago•0 comments

'Nature' Retracts Paper on the Benefits of ChatGPT in Education

https://www.404media.co/nature-retracts-paper-on-the-benefits-of-chatgpt-in-education/
1•tjek•2m ago•1 comments

Australia will run an overt command economy by 2040

https://caseyhandmer.wordpress.com/2026/04/16/australia-will-run-an-overt-command-economy-by-2040/
2•surprisetalk•6m ago•0 comments

Show HN: BattleClaws – A battle arena where AI agents fight autonomously

https://battleclaws.ai/
1•bryhaw•6m ago•0 comments

Is Chrome's 4GB "weights.bin" file spyware? The truth behind the viral warnings

https://www.androidauthority.com/google-chrome-weights-bin-ai-model-download-explained-3664043/
1•Brajeshwar•6m ago•1 comments

Granite 4.1 LLMs: How They're Built

https://huggingface.co/blog/ibm-granite/granite-4-1
1•gmays•6m ago•0 comments

A supply of style guides, generated

https://www.designmd.supply/
1•teddyX•7m ago•0 comments

Proprietary Software, Hardware and Protocols Face AI-Driven Security Risk

https://www.infosecurity-magazine.com/blogs/why-software-faces-ai-driven/
5•dwitcher•8m ago•0 comments

Storied Toolmaker Closes Its Last Hometown Plant–and Blames Its Tape Measures

https://www.wsj.com/business/stanley-tools-factory-closes-8bac57ca
1•impish9208•9m ago•1 comments

A Programmer's Guide to Leaving GitHub

https://lord.io/leaving-github/
1•birdculture•10m ago•0 comments

Tell HN: I'm struggling formalizing 15 years of experience to my clodex agent

1•jb_briant•10m ago•0 comments

Show HN: Arden – Runtime policy enforcement and governance for AI agents

https://www.arden.sh/
2•rishabtandon•11m ago•0 comments

Solar activity above 67% peak makes space debris fall faster

https://www.frontiersin.org/news/2026/05/06/frontiers-astronomy-space-sciences-space-debris-orbit...
1•giuliomagnifico•12m ago•0 comments

Writers Are Going to Extremes to Prove They Didn't Use AI

https://www.wsj.com/tech/ai/writers-are-going-to-extremes-to-prove-they-didnt-use-ai-46e7c3f7
1•fortran77•12m ago•1 comments

DeepMind Takes Minority Stake in Maker of 'EVE Online', will get training data

https://www.bloomberg.com/news/articles/2026-05-06/google-deepmind-takes-minority-stake-in-maker-...
1•htrp•12m ago•0 comments

Show HN: AP-quiz.com – 23 AP subjects, practice AP on the go

https://ap-quiz.com
1•coolwulf•12m ago•0 comments

Most vibe-coded tools are not for you

https://passo.uno/tools-slop-is-a-problem/
1•theletterf•13m ago•0 comments

PanicMode – freezes broken Linux processes instead of killing them

https://github.com/BorisYamp/panicmode
1•borisyamp•14m ago•0 comments

Against DNSSEC (2015)

https://sockpuppet.org/blog/2015/01/15/against-dnssec/
1•jamilbk•14m ago•0 comments

OmniConvert: A private, token-based online converter for 50 file types

https://www.omniconvert.cloud
1•AlexBahlk•18m ago•0 comments

EVO SATA 2.5 inch 2TB SSD $1039.99

https://www.samsung.com/us/memory-storage/sata-ssd/870-evo-sata-2-5-ssd-2tb-sku-mz-77e2t0b-am/
3•paulnpace•18m ago•2 comments

Debategle: A new ranked Omegle like debate platform

https://debategle.com/
1•sawsymikey•18m ago•0 comments

"AI systems do not understand": New report flags systemic failures in AI coding

https://thenewstack.io/acm-vibe-coding-ai-agent/
3•Brajeshwar•19m ago•0 comments

Desktop Tracking Software: The Smart Way to Track Your Activities at Work

https://yakihonne.com/article/naddr1qvzqqqr4gupzqvcy9tkh3xq8x5m7mdsqxx7mcylxxrj8hdj6psdy89g8jaa2e...
1•jameswar0202•19m ago•0 comments

Detecting email service providers from raw Gmail headers

https://chromewebstore.google.com/detail/email-detective/jmflpchhakbogamlbfmlkglnpgfbhidl
1•onlito•20m ago•0 comments

Pure-Swift, cross-platform reimplementations of CLI tools for working with repos

https://github.com/Cocoanetics/SwiftPorts
2•ingve•21m ago•0 comments

Show HN: I'm 18 and built TacticMax, a free offline chess tactics app

https://tacticmax.netlify.app/
1•tacticmax_dev•22m ago•1 comments

Archestra LLM Gateway Now Supports All Types of LLM Auth

https://archestra.ai/blog/llm-proxy-auth-overview
3•motakuk•22m ago•0 comments

Ford factory workers get 40-hour week

https://www.history.com/this-day-in-history/may-1/ford-factory-workers-get-40-hour-week
1•gmays•23m ago•0 comments