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!

A Deep Dive into Tinygrad AI Compiler

https://tinyblog-phi.vercel.app/tinygrad
1•ppadjin123•8m ago•0 comments

Strait of Hormuz Gameplay Demo [video]

https://www.youtube.com/watch?v=XVY7WAT4OdE
1•us321•8m ago•0 comments

Lawsuit over who owns top ranked coding bootcamp Codesmith

https://michaelnovati.substack.com/p/codesmith-in-court-the-hard-parts
1•michaelnovati•12m ago•0 comments

Apple Stops Accepting Orders for Some Mac Mini and Mac Studio Models

https://www.macrumors.com/2026/04/11/some-mac-mini-mac-studio-currently-unavailable/
1•Brajeshwar•15m ago•0 comments

Salesforce and ServiceNow are squaring off in the battle for the helpdesk

https://www.theregister.com/2026/04/11/salesforce_vs_servicenow_itsm_battle/
1•Brajeshwar•16m ago•0 comments

Show HN: Bullseye2D – A Dart library for cross-platform 2D games

https://github.com/bullseye2d/bullseye2d
2•joemanaco•16m ago•0 comments

Apple update looks like Czech mate for locked-out iPhone user

https://www.theregister.com/2026/04/12/ios_passcode_bug/
5•OuterVale•17m ago•0 comments

Phyphox – Physical Experiments Using a Smartphone

https://phyphox.org/
2•_Microft•18m ago•1 comments

Asha Bhosle: The sound of Bollywood dies aged 92

https://www.bbc.com/news/articles/c6ppd0qdp1do
1•Brajeshwar•21m ago•1 comments

Joborigo – Job application tracker with ghost detection and employer API

https://www.joborigo.com/
1•sasanin•22m ago•1 comments

On Division by Three

https://leahneukirchen.org/blog/archive/2023/11.html
1•jruohonen•22m ago•0 comments

Show HN: Food Decoder

https://github.com/adityaprasad-sudo/FoodDecoder
1•PotatoAditya•24m ago•1 comments

Angular Compiler in Rust – Experimental and 10x faster

https://voidzero.dev/posts/oxc-angular-compiler
1•AbuAssar•26m ago•0 comments

Podman Kube Generator – Web UI to Generate Kubernetes YAML and Quadlet Configs

https://github.com/Garfieldttt/podman-kube-generator
2•Garfieldttt•29m ago•0 comments

System Integrity Protection: The misunderstood (macos) setting

https://khronokernel.com/macos/2022/12/09/SIP.html
1•gurjeet•29m ago•0 comments

Can AI Think?

https://medium.com/@henry.ponco/can-ai-ever-truly-think-92d62e509862
1•ponco•31m ago•2 comments

Is Math Big or Small?

https://chessapig.github.io/talks/Big-Small
1•robinhouston•31m ago•0 comments

Show HN: Attempting to Design a Minimalistic Website

https://soham-saha.github.io/
1•omegacombinator•31m ago•0 comments

Sorting with Singeli

https://github.com/mlochbaum/SingeliSort
1•tosh•33m ago•0 comments

How to Read Headphone Measurements (2020)

https://crinacle.com/2020/04/08/graphs-101-how-to-read-headphone-measurements/
1•tosh•34m ago•0 comments

Ask HN: How do you retain what you learn from podcasts?

2•LifeOfKP•38m ago•2 comments

A/B/U Review System

https://openresearchinstitute.org/onboarding/A_B_U.html
1•patcon•39m ago•0 comments

ORAC-NT – A 3D Tactical Bridge for NASA Kepler/Tess Star Stability

https://orac-nt.streamlit.app/
2•DREDREG•40m ago•1 comments

How the "AI Loser" may end up winning

https://adlrocha.substack.com/p/adlrocha-how-the-ai-loser-may-end
1•adlrocha•41m ago•0 comments

The big math changes to small math by same change and solve in Matlab BVP4C

https://www.nature.com/articles/s41598-025-18302-5
1•internet_points•45m ago•0 comments

Build nice terminal UI with Bubble Tea

https://www.prskavec.net/post/bubbletea/
2•swq115•46m ago•0 comments

Ask HN: How is everyone dealing with the increase of code reviews?

2•Lethalman•50m ago•0 comments

The API Key Is Dead: A Blueprint for Agent Identity in the Age of MCP

https://kontext.security/content/oauth-for-mcp-agents
1•mc-serious•51m ago•0 comments

Show HN: OpenPolicy Plus – Cloud platform for managing your privacy policies

https://plus.openpolicy.sh/
2•jamie_davenport•52m ago•0 comments

DSPi – A powerful, open-source DSP

https://www.audiosciencereview.com/forum/index.php?threads/introducing-dspi-a-powerful-user-frien...
2•djsedaw•57m ago•1 comments