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!

Show HN: Brightened Engine – deterministic incremental computation benchmarks

https://thebrokenway.github.io/brightened-benchmarks/
1•thebrokenway•1m ago•0 comments

Linux Sandboxes and Fil-C

https://fil-c.org/seccomp
1•pizlonator•2m ago•0 comments

Crises disrupt long-term increase in stress, negativity, and simplicity in songs

https://www.nature.com/articles/s41598-025-28327-5
1•PaulHoule•2m ago•0 comments

AI Boom Threatens to Suck Resources Away from Road, Bridge Work

https://www.bloomberg.com/news/newsletters/2025-12-12/ai-data-center-boom-may-suck-resources-away...
1•spenvo•3m ago•0 comments

The AI Economics of the Netflix and Warner Bros. Deal

https://medium.com/@gp2030/the-ai-economics-of-the-netflix-warner-bros-deal-bb593a5da26a
2•light_triad•8m ago•0 comments

Why code search at scale is essential when you grow beyond one repository

https://sourcegraph.com/blog/why-code-search-at-scale-is-essential-when-you-grow-beyond-one-repos...
1•handfuloflight•9m ago•0 comments

Spirit of Walt but no Mickey Mouse in Disney's planned desert community

https://www.theguardian.com/us-news/2025/nov/28/disney-community-palm-springs-california
1•PaulHoule•13m ago•0 comments

MCP Writing Code to Call MCP: MCPs All the Way Down

https://rouxbot.com/p/mcp-code-mode
2•rouxbot•15m ago•0 comments

First all-optical XPU processing system

https://www.akhetonics.com/
1•bohnohboh•15m ago•0 comments

UN: World must tackle climate change, pollution, biodiversity and land loss

https://www.pbs.org/newshour/science/un-says-world-must-jointly-tackle-issues-of-climate-change-p...
2•Anon84•15m ago•0 comments

Flat-pack washing machine spins a fairer future

https://www.positive.news/society/flat-pack-washing-machine-spins-a-fairer-future/
3•ohjeez•22m ago•0 comments

My AI Knows Me Better Than Anyone

https://www.asad.pw/my-ai-knows-me-better-than-anyone/
1•ingve•23m ago•0 comments

$1,500 robot cooks dinner while I work

https://www.theverge.com/tech/840599/posha-robot-chef-review
3•sohkamyung•26m ago•0 comments

Get Better at Programming?

2•vaasfps•27m ago•2 comments

Keep a Changelog

https://keepachangelog.com/en/1.1.0/
1•colonCapitalDee•28m ago•0 comments

Venezuela explained in 10 maps and charts

https://www.aljazeera.com/news/2025/11/28/venezuela-explained-in-10-maps-and-charts
1•Anon84•30m ago•0 comments

Circular Dependencies Kill Your Microservices

https://systemdr.substack.com/p/how-circular-dependencies-kill-your
2•birdculture•32m ago•0 comments

Show HN: I made a HumanLayer-clone Claude Code plugin

https://billlyzhaoyh.github.io/hacks/human-layer-clone/
1•yz494•32m ago•0 comments

Show HN: Troql – Auto-generate architecture maps from GitHub repos

https://www.troql.com/
1•Yashkr123•33m ago•0 comments

Samsung to halt SATA SSD production, leaker warns

https://www.notebookcheck.net/Samsung-to-halt-SATA-SSD-production-leaker-warns-of-up-to-18-months...
4•doublepg23•35m ago•0 comments

How to Turn Off AI Tools Like Gemini, Apple Intelligence, Copilot

https://www.consumerreports.org/electronics/artificial-intelligence/turn-off-ai-tools-gemini-appl...
2•ohjeez•36m ago•0 comments

Canada Mobilizes a People's Army

https://charlieangus.substack.com/p/canada-mobilizes-a-peoples-army
2•debo_•36m ago•0 comments

Variability of Technology Learning Rates

https://www.sciencedirect.com/science/article/pii/S2666792425000460
1•JumpCrisscross•38m ago•0 comments

Phytomining

https://en.wikipedia.org/wiki/Phytomining
2•cainxinth•41m ago•0 comments

Circuit Sparsity

https://huggingface.co/openai/circuit-sparsity
1•ray__•44m ago•0 comments

Linux System Calls

https://www.matheusmoreira.com/articles/linux-system-calls
2•enz•45m ago•0 comments

Arizona city rejects data center after AI lobbying push

https://www.politico.com/news/2025/12/12/arizona-city-rejects-data-center-after-ai-lobbying-push-...
6•ohjeez•55m ago•3 comments

From profiling to kernel patch: the journey to an eBPF performance fix

https://rovarma.com/articles/from-profiling-to-kernel-patch-the-journey-to-an-ebpf-performance-fix/
2•todsacerdoti•56m ago•0 comments

Ask HN: Are You Considering Leaving Tech All Together?

3•karakoram•59m ago•6 comments

Compare compensation and rating for different companies when looking for a job

https://compchart.fyi/
1•jacks4jokers•59m ago•0 comments