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

Comments

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

Taiwan rattled by 7.0 magnitude quake, no major damage reported

https://www.reuters.com/business/environment/taiwan-rattled-by-70-magnitude-quake-2025-12-27/
1•keepamovin•1m ago•0 comments

Show HN: Goodreads Analyzer – AI roast and book recs from your reading history

https://goodreads-analyst.vercel.app/
1•DoingSomeThings•3m ago•0 comments

General strike cripples Bolivia over so-called "Gasolinazo"

https://en.mercopress.com/2025/12/23/general-strike-cripples-bolivia-over-so-called-gasolinazo
2•clanky•5m ago•1 comments

Eilmeldung, a TUI RSS Reader

https://github.com/christo-auer/eilmeldung
1•christo-auer•15m ago•0 comments

Ask HN: STB libraries make your work easier or you makes no difference?

2•DenisDolya•15m ago•0 comments

Misspelled learning center receives $4M

https://www.foxnews.com/politics/misspelled-learning-center-no-children-inside-emmer-presses-walz...
2•silexia•15m ago•0 comments

So I started cloning the Wii U gamepad [video]

https://www.youtube.com/watch?v=jlbcKuDEBw8
2•ingve•16m ago•0 comments

Show HN: I built a MCP Server for stock analysis (9% alpha vs. VOO)

https://github.com/danielrz/investbuddy-mcp-server
2•investbuddy•17m ago•1 comments

A Century of Noether's Theorem

https://arxiv.org/abs/1902.01989
2•fanf2•18m ago•0 comments

New York to require social media platforms to display mental health warnings

https://www.reuters.com/legal/litigation/new-york-require-social-media-platforms-display-mental-h...
3•pseudolus•18m ago•1 comments

Claude Life Assistant: Personal accountability coach in your filesystem

https://github.com/lout33/claude_life_assistant
1•lout332•23m ago•0 comments

Flickers – Thoughts on consciousness, sentience, perception, and the self in AI

https://samanthawhite274794.substack.com/p/flickers
1•Errorcod3•24m ago•1 comments

The Era of Private Space Stations Launches in 2026

https://singularityhub.com/2025/12/26/the-era-of-private-space-stations-launches-in-2026/
1•Brajeshwar•25m ago•0 comments

How technocracy made us doubt progress

https://www.freethink.com/the-material-world/techno-humanist-manifesto-chapter-9-section-2
1•Brajeshwar•25m ago•0 comments

AI boom adds $500B to net worth of US tech billionaires in 2025

https://www.ft.com/content/9dcd770a-1ca7-4533-980c-08c5704c9670
2•Brajeshwar•25m ago•0 comments

ShipNative, a production-ready Expo/React Native starter kit

https://www.shipnative.app/
1•kasparnoor•26m ago•1 comments

Why broadband quality matters more than speed

https://www.thinkbroadband.com/news/why-broadband-quality-matters-more-than-speed
2•ksec•27m ago•0 comments

This Year in Rails

https://rubyonrails.org/2025/12/26/this-week-in-rails
4•sergiotapia•30m ago•0 comments

Ask HN: What code escrow companies do you recommend?

1•peytons•32m ago•0 comments

Realtime 3D fractal Explorer in browser

https://gmt-152535429025.us-west1.run.app/
1•nnnnico•32m ago•1 comments

Gnome in 2025: Some Numbers

https://blogs.gnome.org/sophieh/2025/12/27/gnome-in-2025-some-numbers/
1•ksec•33m ago•0 comments

What If Our Ancestors Didn't Feel Anything Like We Do?

https://www.theatlantic.com/magazine/2026/01/human-ancestors-emotion-history/684959/
1•XzetaU8•33m ago•0 comments

Show HN: Krypto Markets – Real-time financial dashboard built in <2 days with AI

https://krypto.markets
1•stfurkan•34m ago•1 comments

Show HN: PatchMyGear – a living map for your studio gear (cables and checklist)

https://patchmygear.com
1•sumamedi•38m ago•0 comments

A Sheriff, a Murder – and a Southern Town That Wants None of It

https://slate.com/news-and-politics/2025/11/tennessee-buford-pusser-wife-murder-the-rock.html
1•_tk_•39m ago•1 comments

Show HN: Simulation of 1M Flocking Birds

https://mega-flock-6087.dazl.live
2•pistolpete__•43m ago•0 comments

Forget WebAssembly – WebGPU Is the Real Revolution Developers Should Watch

https://bhavyansh001.medium.com/forget-webassembly-webgpu-is-the-real-revolution-developers-shoul...
1•handfuloflight•43m ago•0 comments

VICTORY DAY: W43 (Claude book about Russian math/geography)

https://claude.ai/public/artifacts/e15e106a-afc6-4ffc-ac70-cd1ad4744e26/embed
1•i574n•44m ago•1 comments

QSV got too busy, so Claude modernized XSV

https://github.com/faradayio/xsv2
1•seamusabshere•47m ago•1 comments

Show HN: TimeSeal – Cryptographic time-locked vaults with Dead Man's Switch

https://github.com/Teycir/Timeseal
2•teycirb•48m ago•1 comments