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

Comments

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

Rethinking the Stack: AI-Native Operating Systems and Tools

https://cacm.acm.org/news/rethinking-the-stack-ai-native-operating-systems-and-tools/
1•bikenaga•8s ago•0 comments

Mdspec.dev – let us heavylift your cluttering md files

https://mdspec.dev
1•zameermfm•1m ago•1 comments

Ask HN: Use-Cases for an Operating System with a Custom Kernel

1•ayush_xeneva•2m ago•0 comments

Exploring the ocean with Raspberry Pi–powered marine robots

https://www.raspberrypi.com/news/exploring-the-ocean-with-raspberry-pi-powered-marine-robots/
1•Brajeshwar•3m ago•0 comments

It Depends

https://idiallo.com/blog/it-depends-experts-never-give-straight-answers
1•Brajeshwar•3m ago•0 comments

AI Engineer will be the LAST job

https://www.latent.space/p/ainews-ai-engineer-will-be-the-last
1•Brajeshwar•4m ago•0 comments

5 Years of Founder's Grind

https://twitter.com/byanhtho/status/2024863500468629584
1•jdenquin•4m ago•0 comments

I Built: Visualize Your AI Chat Context

https://99helpers.com/tools/visual-contextual-chat
1•nickk81•5m ago•0 comments

Show HN: Adversa – Monitor competitor websites with AI summaries

https://adversa.io/
1•robinweller•5m ago•0 comments

Interview with Marc Vilanova – hidden frequencies of embodied sound experiences

https://www.creativeapplications.net/project/interview-with-marc-vilanova-the-hidden-frequencies-...
1•bryanrasmussen•5m ago•0 comments

A Moment of Peace and Tranquility

https://greenville.substack.com/p/a-moment-of-peace-and-tranquility
1•andytratt•6m ago•0 comments

IBM unveils first ever "half-Möbius" molecule aided by quantum computing

https://www.scientificamerican.com/article/ibm-scientists-unveil-the-first-ever-half-moebius-mole...
1•stevenjgarner•7m ago•0 comments

Worried about LLM-written modules

https://discuss.pixls.us/t/worried-about-llm-written-modules/56430
1•patrakov•8m ago•0 comments

Elon Musk's Sci-Fi Hyperloop Failed

https://washingtonian.com/2026/02/12/how-elon-musks-sci-fi-hyperloop-failed/
4•raattgift•11m ago•0 comments

Procraste: Pay R$5 via Pix to watch an AI procrastinate in a terminal for 1 hour

https://procraste.com.br
2•arthurborgesdev•11m ago•1 comments

AI is a Mood, Not A Method essay

https://robmealey.substack.com/p/ai-is-a-mood-not-a-method
1•vorkosigan•14m ago•0 comments

Climate breakdown is putting the food in peril – in maps and charts

https://www.theguardian.com/environment/ng-interactive/2025/dec/18/how-climate-breakdown-is-putti...
1•bryanrasmussen•14m ago•0 comments

Building a Licensing System from First Principles

https://seg6.space/posts/software-protection-system/
2•seg6•16m ago•0 comments

I built a site to browse and vote on LLMs across N dimensions

https://llm-matrix.vercel.app/
2•nagi_builds•19m ago•0 comments

Show HN: WebXR AI 3D Showroom for E-commerce (Three.js Demo)

https://shop-webplikacija.pages.dev
1•mmsoftstudio•19m ago•1 comments

Show HN: GovConToday – Daily SAM.gov contract digest matched to your NAICS codes

https://govcontoday.com
1•watsoft•19m ago•0 comments

Addicted to Claude Code–Help

8•aziz_sunderji•21m ago•2 comments

Show HN: AI agents built this – paste one line into Claude, AI team in 5 min

https://github.com/reflectt/reflectt-node
2•reflectt•21m ago•1 comments

The Gathering, an open standards effort for human and machine-readable content

https://tg.community
2•doguabaris•21m ago•1 comments

Skills-Maxxing with Agent Harness Engineering

https://blog.yen.chat/p/skills
1•saddington•23m ago•1 comments

The Aria EV Shows the Potential of EV Battery Swapping

https://spectrum.ieee.org/ev-battery-swapping-aria-ev
1•rbanffy•24m ago•0 comments

Verification debt: the hidden cost of AI-generated code

https://fazy.medium.com/agentic-coding-ais-adolescence-b0d13452f981
7•xfz•25m ago•1 comments

Usage Specification

https://usage.jdx.dev/spec/
1•todsacerdoti•26m ago•0 comments

DiVine Web – Short-Form Looping Videos on Nostr

https://divine.video/discovery/classics
1•janandonly•26m ago•0 comments

Asteroid defense mission shifted the orbit of more than its target

https://arstechnica.com/science/2026/03/nasas-dart-mission-shifted-the-orbits-of-two-asteroids/
1•rbanffy•28m ago•0 comments