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

Comments

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

Bep/gallerydeluxe: Fast Hugo gallery theme/module suitable for lots of images

https://github.com/bep/gallerydeluxe
1•Tomte•3m ago•0 comments

PgAdmin: The Most Popular PostgreSQL Admin Tool

https://www.pgadmin.org/
1•doener•4m ago•0 comments

Some Notes on AI

https://www.math.columbia.edu/~woit/wordpress/?p=15672
1•jjgreen•7m ago•0 comments

RAG isn't memory. It's Ctrl+F with embeddings

https://medium.com/@vbcherepanov/rag-isnt-memory-it-s-ctrl-f-with-embeddings-c461b90ac7b1
2•vbcherepanov•10m ago•0 comments

•11m ago

How GitHub lost its way

https://substack.com/@usiddique09/p-196195940
1•usmansidd•11m ago•0 comments

clang-format configurator v2

https://clang-format-configurator.site/
1•gjvc•14m ago•0 comments

Apple just gave a clue that a big AI acquisition may be in the cards

https://www.marketwatch.com/story/apple-just-gave-a-subtle-clue-that-a-splashy-ai-acquisition-may...
2•dalvrosa•14m ago•0 comments

First Nations students are teaching themselves

https://www.cbc.ca/news/canada/edmonton/frog-lake-cree-language-app-9.7185348
1•01-_-•15m ago•0 comments

Convicted former Harvard scientist rebuilds brain computer lab in China

https://www.reuters.com/world/china/convicted-former-harvard-scientist-rebuilds-brain-computer-la...
2•01-_-•16m ago•0 comments

Looking for Employers for the job fair and hiring with Meeting C++

https://www.meetingcpp.com/meetingcpp/news/items/Looking-for-Employers-for-the-job-fair-and-hirin...
1•dalvrosa•17m ago•0 comments

Gall's Law – Yagnipedia

https://yagnipedia.com/wiki/galls-law
3•ankitg12•20m ago•0 comments

Neomd: A minimal terminal email client for people who write in Markdown

https://neomd.ssp.sh/
1•handfuloflight•22m ago•0 comments

The Discord migration that didn't happen

https://productimpossible.com/articles/discord-migration-that-didnt-happen/
1•sebakubisz•27m ago•0 comments

Show HN: Autorank – Rank on Google and AI search while you sleep

https://www.getautorank.ai/
1•alokjnv10•28m ago•0 comments

How fast is a macOS VM, and how small could it be?

https://eclecticlight.co/2026/05/02/how-fast-is-a-macos-vm-and-how-small-could-it-be/
2•moosia•29m ago•0 comments

ZenBusiness Data Breach

https://haveibeenpwned.com/Breach/ZenBusiness
1•amazonhut•31m ago•0 comments

How Casey Newton is revamping his newsletter to compete with AI

https://www.niemanlab.org/2026/04/more-scoops-less-aggregation-and-analysis-how-casey-newton-is-r...
1•giuliomagnifico•31m ago•0 comments

US to Withdraw Troops from Germany

https://www.dw.com/en/us-to-withdraw-thousands-of-troops-from-germany/a-77016071
2•pera•35m ago•0 comments

Dazzle Camouflage

https://en.wikipedia.org/wiki/Dazzle_camouflage
2•tosh•36m ago•0 comments

AMD Posts HDMI 2.1 FRL Patches for Their Amdgpu Linux Driver

https://www.phoronix.com/news/AMDGPU-HDMI-2.1-FRL-Patches
1•type0•37m ago•0 comments

Andrej Karpathy: From Vibe Coding to Agentic Engineering

https://www.youtube.com/watch?v=96jN2OCOfLs
3•swolpers•40m ago•0 comments

Study: AI models that consider user's feeling are more likely to make errors

https://arstechnica.com/ai/2026/05/study-ai-models-that-consider-users-feeling-are-more-likely-to...
1•rbanffy•46m ago•0 comments

Show HN: I built Male Hormone Lab Interpreter that does what LLMs can't

https://www.longevity-tools.com/male-hormones-interpreter
2•zsolt224•47m ago•0 comments

Spirit Airlines Is Winding Down All Operations

https://spiritrestructuring.com/
1•KoftaBob•48m ago•0 comments

Show HN: Shutt – Turn Strava activities into shareable photo/video posts

https://shutt.run
1•zzarcon•50m ago•0 comments

Who's the First Person in History Whose Name We Know? (2015)

https://www.nationalgeographic.com/science/article/whos-the-first-person-in-history-whose-name-we...
2•downbad_•50m ago•1 comments

Show HN: Browser-based light pollution simulator using real photometric data

https://iesna.eu/?wasm=skyglow_demo
7•holg•51m ago•0 comments

Show HN: PythonStarter – now with Bitcoin Lightning payments

https://pythonstarter.co/
1•dan_easterman•54m ago•0 comments

Intel Inside the Micro Revolution: 8008 Origins

https://thechipletter.substack.com/p/intel-inside-the-micro-revolution
1•klelatti•55m ago•0 comments