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!

Manifesto on Symbiosis: A New Paradigm for Civilization Part IV

1•acehs•2m ago•0 comments

Loom – a zero-dependency C++20 blog engine (one binary, one command)

https://github.com/1ay1/loom
1•tfeayush•2m ago•0 comments

Coding Agents for Data Analysis

https://simonwillison.net/2026/Mar/16/coding-agents-for-data-analysis/
1•samuel246•3m ago•0 comments

Manifesto on Symbiosis: A New Paradigm for Civilization Part III

1•acehs•4m ago•0 comments

Always 'Copy Clean Link' When Possible on Firefox, with UserChrome.css

https://joshua.hu/firefox-always-copy-clean-link-url-userchrome-css
1•mmsc•8m ago•0 comments

A Day in the Life of an Enshittificator [video]

https://www.youtube.com/watch?v=T4Upf_B9RLQ
1•celsoazevedo•11m ago•0 comments

TypeScript's rise in the AI era: Insights from Anders Hejlsberg (2025)

https://github.blog/developer-skills/programming-languages-and-frameworks/typescripts-rise-in-the...
1•pramodbiligiri•20m ago•0 comments

Donut Lab Battery Test 4 Changes Everything [video]

https://www.youtube.com/watch?v=5cpYeT4VmSY
1•fencedload•22m ago•0 comments

NYC Once Banned Free Legal Advice over Radio

https://newsletter.pessimistsarchive.org/p/nyc-once-banned-free-legal-advice
1•walterbell•25m ago•0 comments

True 4-Bit Quantized CNN Training on CPU – 92.34% on Cifar-10

https://arxiv.org/abs/2603.13931
1•shivnathtathe•28m ago•0 comments

My Willing Complicity in "Human Rights Abuse"

https://ussri.substack.com/p/my-willing-complicity-in-human-rights
1•oxw•31m ago•0 comments

Ask HN: When do you start considering to 'separate' service designed with DDD

2•Lazy_Player82•37m ago•1 comments

Public Access Databases

https://robertsdotpm.github.io/software_engineering/public_databases.html
2•Uptrenda•37m ago•0 comments

You train robots and don't even know it

https://twitter.com/k1rallik/status/2033530122150502482
1•dsr12•39m ago•0 comments

Show HN: MCP Inspector – connect and test any MCP server

https://glama.ai/mcp/inspector
1•punkpeye•46m ago•0 comments

Kagi Translate now supports LinkedIn Speak as an output language

https://translate.kagi.com/?from=en&to=LinkedIn+speak
64•smitec•52m ago•11 comments

J Epstein Perma Twitter

2•benjaminklick•53m ago•1 comments

Threading Async Together

https://github.com/TavariAgent/Py-TokenGate
2•Tavari•54m ago•1 comments

Ask HN: People reverse engineering web apps, what are you doing it for?

3•keepamovin•59m ago•0 comments

Can You Brute Force the NYT Connections with Math? [video]

https://www.youtube.com/watch?v=POGGNamZoHQ
2•Timothee•59m ago•0 comments

RetroAgent: From Solving to Evolving via Retrospective Dual Intrinsic Feedback

https://github.com/zhangxy-2019/RetroAgent
1•frozenseven•1h ago•1 comments

New Nvidia DLSS Tech Gives Characters AI Slop Faces

https://kotaku.com/new-nvidia-dlss-tech-gives-characters-ai-slop-faces-2000679199
1•mikhael•1h ago•0 comments

human.json

https://evanhahn.com/human-dot-json/
3•nikolay•1h ago•1 comments

Nvidia DLSS 5 – AI-Powered Breakthrough in Visual Fidelity for Games [video]

https://www.youtube.com/watch?v=dJACkKbN-Eo
3•qingcharles•1h ago•0 comments

Show HN: Free library of 2k martial arts books – read in the browser

https://fightencyclopedia.com/library
2•acenji•1h ago•0 comments

The Power of Playtesting in the Classroom

https://landenlove.com/the-power-of-playtesting-in-the-classroom/
2•LandenLove•1h ago•2 comments

Drafting Earnout Agreements to Minimize Disputes After Sale of Private Companies

https://natlawreview.com/article/earnout-burnout-drafting-earnout-agreements-minimize-disputes-fo...
2•petethomas•1h ago•0 comments

Zenclora OS

https://zenclora.org/
17•debo_•1h ago•13 comments

SEC Prepares Proposal to Eliminate Quarterly Reporting Requirement

https://www.wsj.com/finance/regulation/sec-prepares-proposal-to-eliminate-quarterly-reporting-req...
5•jonbaer•1h ago•0 comments

The third agent is me [video]

https://www.youtube.com/watch?v=HbWu_eYIHKQ
1•BeenSolo•1h ago•0 comments