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•1y ago

Comments

zljdanceholic•1y 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!

CIFSwitch: A non-universal Linux local root vulnerability

https://heyitsas.im/posts/cifswitch/
1•campuscodi•1m ago•0 comments

Why I'm still building a SaaS company in 2026

https://www.vincentchan.vc/why-im-building-a-saas-company-during-the-saaspocalypse
1•cvince•6m ago•0 comments

Dell, Snowflake, and Ford show how the AI boom is spreading: Alpha Check

https://finance.yahoo.com/markets/article/dell-snowflake-and-ford-show-how-the-ai-boom-is-spreadi...
1•wslh•6m ago•0 comments

Why aren't we addressing the borderline impossible nature of getting noticed

2•FILLMOBILE•11m ago•1 comments

Show HN: Lite-Harness – Self-Hosted Cursor Agents (Use Claude Code/OpenCode)

https://github.com/LiteLLM-Labs/lite-harness
2•detente18•11m ago•0 comments

OpenRouter more than doubles valuation to $1.3B in a year

https://techcrunch.com/2026/05/26/openrouter-more-than-doubles-valuation-to-1-3b-in-a-year/
1•gmays•12m ago•0 comments

Keep AI Weird

https://www.economist.com/by-invitation/2026/04/01/the-it-department-where-ai-goes-to-die
1•sanj•17m ago•0 comments

Algebra of Contexts

https://suign.github.io/
1•suiGn•20m ago•0 comments

Exotic prime numbers could be hiding inside black holes

https://www.scientificamerican.com/article/are-prime-numbers-hiding-inside-black-holes/
3•ah27182•22m ago•0 comments

US Military personnel are being targeted using location data

https://www.reuters.com/business/media-telecom/pentagon-says-us-military-personnel-are-reportedly...
2•black6•24m ago•0 comments

Robots are redefining the war in Ukraine – and forcing Russia onto the back foot

https://www.cnn.com/2026/05/30/europe/ukraine-robots-drones-russia-war-intl
3•lexandstuff•27m ago•0 comments

The Kingdom of Rui Reis

https://forbetterscience.com/2026/05/19/the-kingdom-of-rui-reis/
1•luckys•28m ago•0 comments

Autonomous Retail Experiment 2

https://shish.substack.com/p/from-photo-to-figurine-an-autonomous
1•5h15h•31m ago•0 comments

A case for an Autonomy Kernel

https://autonomykernel.org/
1•offbeatport•33m ago•1 comments

Microsoft degrades functionality of perpetually-licensed offline products

https://consumerrights.wiki/w/Microsoft_Office_2019_and_2021_for_Mac_view-only_conversion_(2026)
49•antipurist•36m ago•7 comments

The Case for California's Billionaire Wealth Tax

https://www.nytimes.com/interactive/2026/05/26/opinion/wealth-tax-california-billionaire.html
5•JumpCrisscross•41m ago•1 comments

AI Hardware

https://www.categoryvc.com/writing/where-the-ai-hardware-market-is
1•gmays•44m ago•0 comments

I am against GenAI and everything it stands for

https://lpcvoid.com/blog/0018_why_i_am_against_genai/index.html
7•theapache64•45m ago•0 comments

A quick reading level quiz to guide student reading

https://happy-meadow-0c1a27010.7.azurestaticapps.net/
2•dockerworker•46m ago•0 comments

Forget LASIK: Safer, cheaper vision correction without lasers or surgery

https://www.sciencedaily.com/releases/2026/05/260528074032.htm
3•bookmtn•48m ago•0 comments

Custom Errors Are Non-Negotiable in My Rust Applications

https://tristonarmstrong.com/blog/custom-errors-are-non-negotiable-in-my-rust-applications
5•tristonarmstron•48m ago•0 comments

The Manifesto for Dimensional Design

https://dimensionaldesign.org/
1•etothepii•53m ago•0 comments

Who Follows Whom?

https://www.cambridge.org/core/elements/who-follows-whom/C40139F0F3B85BB2924E738AB43D5CC6
1•Anon84•54m ago•0 comments

Poetry for Engineers: Cyborg Laboratory by Paul Jones

https://spectrum.ieee.org/poetry-for-engineers-cyborg-laboratory
1•DrBenCarson•56m ago•0 comments

Show HN: HermesBench – workflow reliability evals for personal AI agents

https://verkyyi.github.io/hermesbench/
1•verkyyi26•59m ago•0 comments

Productivity Growth in the U.S. Medical Care Sector [pdf]

https://www.bea.gov/sites/default/files/papers/BEA-WP2026-11.pdf
2•paulpauper•59m ago•0 comments

Technology Moves Gradually. Job Losses Often Don't

https://gadlevanon.substack.com/p/technology-moves-gradually-job-losses
1•paulpauper•59m ago•0 comments

As floods get worse, Britain tries a new solution: beavers

https://www.npr.org/2026/05/21/nx-s1-5738979/beavers-britain-climate-change-flooding
1•paulpauper•1h ago•0 comments

Is Huawei's new chip scaling law a true breakthrough, or mere hype

https://www.scmp.com/tech/tech-trends/article/3355314/huaweis-new-chip-scaling-law-true-breakthro...
1•teleforce•1h ago•0 comments

Cheese Paper: a text editor specifically designed for writing

https://brie.gay/cheese-paper/
15•sohkamyung•1h ago•4 comments