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

Comments

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

T9 in the Terminal for Codex, Claude, Gemini

https://github.com/Xsamsx/T9T
1•kyivctoner•3m ago•1 comments

Writing my own text editor, and daily-driving it

https://blog.jsbarretto.com/post/text-editor
1•todsacerdoti•3m ago•0 comments

Why Systems Optimized for Metrics Eventually Drift from Reality [pdf]

https://offbrandguy.com/wp-content/uploads/2026/03/optimization-trap-reality-drift-framework-2023...
1•realitydrift•4m ago•1 comments

Show HN: OpenClaw skill for think-tank style analysis of crises like Iran war

https://github.com/vassiliylakhonin/global-think-tank-analyst
1•vassilbek•7m ago•0 comments

Ask HN: What are some good lectures or talks like this one? [pdf]

https://www.labouseur.com/projects/codeReckon/papers/The-Emperors-Old-Clothes.pdf
1•jdironman•10m ago•1 comments

New Design for Firefox.com

https://www.firefox.com/en-US/
2•pentagrama•18m ago•0 comments

Recursive Problems Benefit from Recursive Solutions

https://jnkr.tech/blog/recursive-benefits-recursive
1•luispa•20m ago•0 comments

Lovable I.A Credits at a Discount

https://mestredalovable.lovable.app/
1•Sebastiao_Tatu•24m ago•1 comments

How HN: Specwatch – Generate OpenAPI specs by watching live API traffic

https://github.com/rajeevramani/specwatch
1•rajeevramani•28m ago•1 comments

Storm [video]

https://www.youtube.com/watch?v=HhGuXCuDb1U
1•nomilk•31m ago•0 comments

Zig – Type Resolution Redesign and Language Changes

https://ziglang.org/devlog/2026/#2026-03-10
2•Retro_Dev•42m ago•0 comments

The tests are the code now

https://softwaredoug.com/blog/2026/03/10/the-tests-are-the-code-now.html
4•zdw•43m ago•0 comments

Show HN: Assemble – Claude Code skill for parallel AI team execution

https://github.com/LakshmiSravyaVedantham/assemble
1•sravyavedantham•46m ago•0 comments

Breaking Control Flow Integrity by Abusing Modern C++ (Coroutines) – BH USA 2025 [video]

https://www.youtube.com/watch?v=hxIPoi4ONNA
2•matt_d•51m ago•0 comments

Show HN: ImageHost.ing – burn-after-reading image host on Cloudflare's free tier

https://imagehost.ing
1•lzy•51m ago•0 comments

Show HN: Polymorph (YC W26) – AI personalization for consumer app engagement

https://usepolymorph.com/
1•andrewsy•52m ago•0 comments

The Highly Exclusive Way That Everybody Shops Now

https://www.theatlantic.com/culture/2026/03/shopping-drop-exclusive-selling-out/686308/
1•paulpauper•53m ago•2 comments

Programming the Loop

https://ianbarber.blog/2026/03/10/programming-the-loop/
1•matt_d•56m ago•0 comments

Terence Tao had a paper rejected

https://mathstodon.xyz/@tao/113721209277409929
2•paulpauper•58m ago•0 comments

Ask HN: How do you review gen-AI created code?

3•captainkrtek•59m ago•3 comments

Pristan: The simplest way to create a plugin infrastructure in Python

https://github.com/mutating/pristan
1•pomponchik•1h ago•0 comments

Pact – contracts-first multi-agent coding (212/212 ICPC vs. 79-92% Claude Code)

https://jmcentire.github.io/pact/
1•jmcentire2025•1h ago•0 comments

VPNs surge in Australia as mandatory age verification for adult content begins

https://www.techradar.com/vpn/vpn-privacy-security/vpns-surge-in-australia-as-mandatory-age-verif...
2•reassess_blind•1h ago•1 comments

xAI wins permit to build power plant in Mississippi despite pollution concerns

https://www.cnbc.com/2026/03/10/elon-musk-xai-permit-for-mississippi-plant-despite-pollution-conc...
2•spenvo•1h ago•2 comments

The No World Order: Meir Kahane, Netanyahu, Trump, and the War Beyond Iran

https://sarahkendzior.substack.com/p/the-no-world-order
3•hkhn•1h ago•0 comments

Show HN: ULLI – A Linux installer without a live USB flash drive

https://github.com/rltvty2/ulli
1•AlOwain•1h ago•0 comments

NYC considers increasing minimum wage to $30 by 2030

https://ny1.com/nyc/all-boroughs/mornings-on-1/2026/03/10/city-council-considers-increasing-minim...
2•geox•1h ago•0 comments

Show HN: Readhn – AI-Native Hacker News MCP Server (Discover, Trust, Understand)

https://github.com/xodn348/readhn
2•xodn348•1h ago•0 comments

Curly Prompt – An AI Prompting Language with Local LLM Powered AI Agent

https://github.com/jimthunderbird/curlyprompt
2•jimthunderbird•1h ago•0 comments

Saudi Arabia declares 2026 as the Year of AI

https://twitter.com/spagov/status/2031365339376660682
2•sibilsalim•1h ago•1 comments