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!

FlavorDB: The Flavor Network

https://cosylab.iiitd.edu.in/flavordb2/
1•MKais•40s ago•0 comments

Aming Claw – Zero-orchestration multi-agent coding

https://github.com/amingclawdev/aming-claw/blob/main/docs/hn-demo/article.md
1•aming557•2m ago•0 comments

Safe Made Easy Pt.1: Single Ownership Is (Not) Optional

https://ergeysay.github.io/safe-made-easy-pt1.html
2•ergeysay•3m ago•0 comments

Xreal launches a cheaper AR glasses brand, starting with the $299 a01

https://www.theverge.com/gadgets/937944/x-by-xreal-subbrand-a01-ar-glasses-price-availability
1•HelloUsername•3m ago•0 comments

Rich-text editing was built for humans. Now we're rebuilding it around AI

https://twitter.com/khudonogov/status/2059633069171101712
1•hellodarknessmy•5m ago•0 comments

San Francisco rents spike 22% in a year, far outpacing other US cities

https://www.mercurynews.com/2026/05/27/san-francisco-rents-spike-22-in-a-year-far-outpacing-other...
2•littlexsparkee•5m ago•0 comments

Italy region: +200% tax on datacenters built in green/agricultural areas

https://en.ilsole24ore.com/art/lombardy-introduces-increased-charges-of-up-to-200-per-cent-for-da...
5•napolux•8m ago•0 comments

An Intensive Introduction to Cryptography

https://intensecrypto.org/public/index.html
3•ibobev•9m ago•0 comments

Blood test added to colorectal cancer screening options by cancer group

https://www.nbcnews.com/health/health-news/blood-test-added-colorectal-cancer-screening-options-c...
2•brandonb•10m ago•0 comments

Show HN: Disable Ugly Firefox Single Rounded Corner

https://connect.mozilla.org/t5/ideas/make-sidebar-address-bar-rounded-corner-toggleable/idi-p/87426
1•righthand•10m ago•0 comments

Elon Musk's SpaceX Has More Bitcoin Than Estimated, SEC Filing Shows [video]

https://www.youtube.com/watch?v=bs2cEzpvaow
2•mgh2•11m ago•0 comments

Show HN: Enju – humans, AI agents, and compute as peers on one workflow graph

https://github.com/tamerh/enju
1•timurg•11m ago•1 comments

One SQLite File and One Harness Is Enough for French Social Housing

https://github.com/charnould/pierre/blob/master/docs/documentation/2026-05-from-rag-to-sqlite-and...
1•charnould•12m ago•0 comments

Cssdb – Tracks the Implementation Status of Modern CSS Features

https://cssdb.org/
1•javatuts•13m ago•0 comments

Phantom-UI Creates Structure-Aware Skeleton Loaders from the DOM

https://github.com/Aejkatappaja/phantom-ui
1•javatuts•13m ago•0 comments

Scientists are raising new questions about vitamin B12 and cancer

https://www.sciencedaily.com/releases/2026/05/260526022009.htm
3•brandonb•13m ago•0 comments

Typewritten.org Vintage Computer and Technology Manuals

http://www.typewritten.org/Manual/
1•oldnetguy•14m ago•0 comments

Feed Validation Service

https://validator.w3.org/feed/
1•javatuts•14m ago•0 comments

Why AI Agents Cannot Change Software Systems

https://phroneses.com/articles/build/notes/agents-cannot-maintain-systems.html
5•jhevans•14m ago•1 comments

Pope Leo Schooled the Tech Bros on Tolkien

https://www.wired.com/story/pope-leo-schooled-the-tech-bros-on-tolkien/
2•theriddlr•14m ago•0 comments

For the First Time, AI Was My User

https://clairetsao.substack.com/p/for-the-first-time-ai-was-my-user
2•missmoss•16m ago•0 comments

One of the great unresolved embarrassments of physics

https://www.space.com/science/one-of-the-great-unresolved-embarrassments-of-physics-its-been-340-...
1•SVI•16m ago•0 comments

Show HN: PolyCSS – A 3D engine for the DOM (without WebGL)

https://polycss.com
1•rofko•18m ago•0 comments

Why does AI love writing about lighthouse keepers?

https://www.unite.ai/why-does-ai-love-writing-about-lighthouse-keepers/
2•50kIters•20m ago•1 comments

Pardon MIE? – Researchers Discover First Bypass of Apple's Memory Integrity

https://ironpeak.be/blog/bypassing-apple-mie/
2•birdculture•23m ago•0 comments

A helm plugin to show the manifests resource tree of a release

https://github.com/major1201/helm-tree
1•major1201•23m ago•0 comments

SSMS Copilot Is Messing with Your AI Prompts

https://www.brentozar.com/archive/2026/05/ssms-copilots-prompting-can-mess-with-your-ai-advice/
1•speckx•23m ago•0 comments

Whistle

https://abson.bearblog.dev/whistle/
3•Absonsonson•23m ago•3 comments

Show HN: Continuity-auth – Respect-weighted rate limits for the open web

1•danieltanfh95•24m ago•0 comments

Binary Compatible Critical Section Delegation

https://danglingpointers.substack.com/p/binary-compatible-critical-section
1•blakepelton•26m ago•0 comments