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

Comments

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

Concerned about safety in your community and beyond?

https://icemap.app
2•cranberryturkey•43s ago•0 comments

Show HN: G0 – Detect LLM hallucinations with a 3-criterion grounding metric

https://huggingface.co/spaces/aphoticshaman/g0-detector
1•benthicshadow•1m ago•0 comments

Deadly sins of software engineers productivity

https://strategizeyourcareer.com/p/the-7-deadly-sins-of-software-engineers-productivity
1•birdculture•3m ago•0 comments

We Stopped CI, Abandoned Code Review, and Embraced AI Pair Programming

https://www.arcblock.io/blog/en/first-principles-of-ai-native-engineering
1•robmao•6m ago•1 comments

Show HN: AskUCP – UCP protocol explorer showing all products on Shopify

https://askucp.com/
1•possiblelion•6m ago•0 comments

ARIA accessible text transcripts of Dilbert comics from 1989 to 2023

https://github.com/jvarn/dilbert-archive
1•rcarmo•7m ago•0 comments

Twelfth LangSec Workshop

https://langsec.org/spw26/
1•transpute•9m ago•0 comments

Stop Bloating Your Claude.md: Progressive Disclosure for AI Coding Tools

https://alexop.dev/posts/stop-bloating-your-claude-md-progressive-disclosure-ai-coding-tools/
1•m-hodges•10m ago•0 comments

I Stored a Banana image within the Wikipedia edit history

https://github.com/MadAvidCoder/Bananapedia
1•MadAvidCoder•10m ago•2 comments

Radboud University selects Fairphone as standard smartphone for employees

https://www.ru.nl/en/staff/news/radboud-university-selects-fairphone-as-standard-smartphone-for-e...
1•ardentsword•13m ago•0 comments

MTOTP: Wouldn't it be nice if you were the 2FA device?

https://github.com/VBranimir/mTOTP/tree/develop
11•brna-2•14m ago•2 comments

Show HN: RouterLab – open-source AI API with Swiss hosting

https://routerlab.ch
1•ScioNos•15m ago•0 comments

European alternatives to tech brands: Add yours

https://www.uniqkey.eu
1•utsavchopra•19m ago•2 comments

Thoughts and Observations Regarding Apple Creator Studio

https://daringfireball.net/2026/01/thoughts_and_observations_regarding_apple_creator_studio
1•tambourine_man•20m ago•0 comments

Reading and Writing JFR Files Programmatically

https://mostlynerdless.de/blog/2026/01/19/reading-and-writing-jfr-files-programmatically/
1•mfiguiere•21m ago•0 comments

Icebreakers in the Arctic: An Overlooked Environmental Concern

https://steadystate.org/icebreakers-in-the-arctic-an-overlooked-environmental-concern/
1•onearth•23m ago•0 comments

Buona fine e buon principio – CinEmanuele #16

https://cinemanuele.substack.com/p/buona-fine-e-buon-principio-cinemanuele
1•grouchoromano•25m ago•0 comments

Developer patches Wine to make Photoshop 2021 and 2025 run on Linux

https://www.tomshardware.com/software/linux/developer-patches-wine-to-make-photoshop-2021-and-202...
1•tambourine_man•26m ago•0 comments

Some C habits I employ for the modern day

https://www.unix.dog/~yosh/blog/c-habits-for-me.html
2•signa11•32m ago•0 comments

Explainable Unsupervised Query Tagging

https://emiruz.com/post/2026-01-17-qu-tagger/
1•usgroup•33m ago•0 comments

PicoPCMCIA

https://www.yyzkevin.com/picopcmcia/
1•rcarmo•35m ago•0 comments

Ask HN: Does Hacker News pull posts about Greenland from the front page?

5•subjektivation•37m ago•10 comments

On The Coming Industrialisation of Exploit Generation with LLMs

https://sean.heelan.io/2026/01/18/on-the-coming-industrialisation-of-exploit-generation-with-llms/
1•long•39m ago•0 comments

Show HN: Document Copy Planner – plan safe offline copies of your documents

https://proofpocket.com/doc-copy-planner-app
1•fenrirx22•40m ago•3 comments

Traintrackr – Live LED Maps

https://www.traintrackr.co.uk/
1•recursion•43m ago•0 comments

Ed Zitron on big tech, backlash, boom and bust

https://www.theguardian.com/technology/2026/jan/19/ed-zitron-on-big-tech-backlash-boom-and-bust-a...
2•mindracer•50m ago•0 comments

What's new in Android Studio Otter [video]

https://www.youtube.com/watch?v=WQhiA25aExI
1•777asdfjkl•56m ago•0 comments

Self-Reproducing Programs [video]

https://www.youtube.com/watch?v=QGm-d5Ch5JM
1•f1shy•58m ago•0 comments

Show HN: Compare Data Between Two Stacks of Documents Using Regex

https://patterns.voidrab.com/
1•sudostar•59m ago•0 comments

Amgr – CLI tool for managing agent configurations across projects

https://github.com/OzTamir/amgr
1•oztamir•1h ago•0 comments