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

Comments

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

Hackers Expose Age-Verification Software Powering Surveillance Web

https://www.therage.co/persona-age-verification/
2•speckx•6m ago•0 comments

End-to-End Test-Time Training for Long Context

https://arxiv.org/abs/2512.23675
2•handfuloflight•6m ago•0 comments

Show HN: Omni-Glass – Rust app that turns screen pixels into MCP tool calls

https://github.com/goshtasb/omni-glass
2•goshtasb•9m ago•0 comments

Show HN: Unbiassly – No more hiding behind cameras

https://unbiassly.com/
2•hashim21•10m ago•1 comments

The Origins of Computers on Overhead Projectors [video]

https://www.youtube.com/watch?v=uASRAWlDZQo
2•zdw•11m ago•0 comments

The Government Is Hiring Tech People Again

https://presentofcoding.substack.com/p/the-government-is-hiring-tech-people
2•brandonb•11m ago•0 comments

Cyber-attacks may disrupt smart factories by targeting time

https://www.uel.ac.uk/about-uel/news/2026/february/cyber-attacks-may-disrupt-smart-factories-targ...
2•geox•16m ago•0 comments

Can the government 'steal' equity from seized homes?

https://www.usatoday.com/story/news/politics/2026/02/21/supreme-court-equity-foreclosure-property...
2•SilverElfin•18m ago•0 comments

Polymorphic HOCs in React with TypeScript

https://jsdev.space/polymorphic-hocs-ts/
2•javatuts•22m ago•0 comments

SIMD in Pure Python (2024)

https://www.da.vidbuchanan.co.uk/blog/python-swar.html
2•macleginn•23m ago•0 comments

AI-augmented threat actor accesses FortiGate devices at scale

https://aws.amazon.com/blogs/security/ai-augmented-threat-actor-accesses-fortigate-devices-at-scale/
2•campuscodi•24m ago•0 comments

Who's liable when your AI agent burns down production?

https://reading.sh/whos-liable-when-your-ai-agent-burns-down-production-039193d82746?sk=4921ed2db...
3•zenoware•24m ago•1 comments

Opinion: How to Solve AI's 'Jagged Intelligence' Problem

https://undark.org/2026/02/19/opinion-jagged-intelligence/
2•EA-3167•25m ago•0 comments

Fighting games have a product design problem

https://cthor.me/Fighting-games-product-design
2•bentcorner•27m ago•0 comments

Show HN: My Degenerate Craps Simulator

https://infinitecraps.com/
2•nutwinkle•28m ago•0 comments

Shell Permission Errors for Busy Coding Agents

https://www.da.vidbuchanan.co.uk/blog/agent-perms.html
2•FrojoS•28m ago•0 comments

Emacs native/idiomatic Claude Code UI

https://github.com/gdanov/emacs-gravity
2•gdanov•29m ago•0 comments

Reshaping What Sustainable Cognition Looks Like

https://alanscottencinas.com/sustainable-cognition-ai-energy-architecture/
2•encinas88•29m ago•0 comments

Show HN: BetaZero, a diffusion climb generator for system boards

https://climb-frontend-production-21f5.up.railway.app
2•EvanMcCormick•31m ago•0 comments

Show HN: Ktop – a themed terminal monitor for GPU, CPU, RAM, temps and OOM kills

https://github.com/brontoguana/ktop
3•brontoguana•31m ago•0 comments

Software Devaluation Starts

https://medium.com/@ggonweb/software-devaluation-starts-79b1b925c012
5•ggonweb•32m ago•1 comments

Org Politics 101 – The Myth of the Just World (2013)

https://www.manager-tools.com/2013/04/politics-101-chapter-3-myth-just-world-part-1
2•walterbell•33m ago•0 comments

Self-Hosting

https://en.wikipedia.org/wiki/Self-hosting_(compilers)
1•tosh•36m ago•0 comments

Shandu – open-source DeepResearch system

https://github.com/jolovicdev/shandu
1•jolovicdev•39m ago•1 comments

Those who can, teach history

https://www.historytoday.com/archive/making-history/those-who-can-teach-history
1•hhs•39m ago•0 comments

Peter Steinberger on Hacker News

https://twitter.com/i/status/2025334681047015791
3•iamronaldo•40m ago•1 comments

Open APIs Are Over

https://tomtunguz.com/defense-comes-to-software/
2•mooreds•40m ago•0 comments

Two years of vector search at Notion: 10x scale, 1/10th cost

https://www.notion.com/blog/two-years-of-vector-search-at-notion
1•zagwdt•42m ago•0 comments

Challenges and trends in sparse matrix multiplication on HPC workloads [video]

https://www.youtube.com/watch?v=GH6WUlyNAPQ
1•teleforce•42m ago•0 comments

Western US gripped by extreme snow drought: 'I've never seen a winter like this'

https://www.theguardian.com/us-news/2026/feb/11/snow-drought-oregon-colorado-utah
8•PaulHoule•42m ago•2 comments