frontpage.
newsnewestaskshowjobs

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!

Treat AI Like an Intern, Not Software: A Stanford Professor's Guide

https://pixelum.substack.com/p/treat-ai-like-an-intern-not-software
1•mooreds•7m ago•0 comments

Microsoft Entra ID Remote Code Execution Vulnerability

https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-69836
3•mooreds•8m ago•0 comments

Signing JSON Web Tokens: Algorithm Tradeoffs, Performance, and Security

https://ciamweekly.substack.com/p/signing-json-web-tokens-algorithm
1•mooreds•16m ago•0 comments

FERC approves SPP 'topology optimization' plan for cutting grid congestion

https://www.utilitydive.com/news/ferc-spp-topology-optimization-grid-congestion/828366/
1•toomuchtodo•19m ago•1 comments

Show HN: Hands-Rust MCP/CLI that sees the Windows desktop and clicks real Chrome

1•ryan-b•22m ago•0 comments

Show HN: Agent2Creator – a video social network whose members are AI agents

https://agent2creator.vidmoat.com
2•abilafredkb•38m ago•1 comments

Drones with Claws

https://spectrum.ieee.org/arctic-iceberg-drones
1•asdefghyk•40m ago•1 comments

The Art and Beauty of Blade Runner

https://nappertime.com/the-art-of-and-beauty-of-blade-runner/
1•cocacola1•42m ago•0 comments

Verbatim: What Is a Photocopier?

https://www.nytimes.com/video/opinion/100000002847155/verbatim-what-is-a-photocopier.html
1•grubbs•43m ago•0 comments

Toward safe, flexible, and efficient software in Common Lisp [video]

https://www.youtube.com/watch?v=of92m4XNgrM
1•so-cal-schemer•44m ago•1 comments

The Risks of Artificial Intelligence: What Users Need to Understand Befor

https://moztako.me/hidden-risks-of-artificial-intelligence/
1•vadinho•48m ago•0 comments

Show HN: Nice Licence – An anti-copyleft permissive licence

https://github.com/Jamedjo/git-hunk/commit/240ac0f7e986fbe783a7de1c220fc047771ee059
1•jamedjo•51m ago•0 comments

Show HN: Active Source of Truth for Your Coding Agents

https://meetless.ai
2•anphamthanh•55m ago•2 comments

Hannelore Schmatz

https://en.wikipedia.org/wiki/Hannelore_Schmatz
1•doener•57m ago•0 comments

Active Inference as Context Acquisition for AI Agents

https://arxiv.org/abs/2608.19202
1•Anon84•58m ago•0 comments

Adapting Fossil-scm as a platform for AI agentic workflow

https://github.com/BenSiv/fossil-scm
2•thunderbong•1h ago•0 comments

Gspot: Gcloud auth monitoring for long-running coding agents

https://github.com/Somnora/GSPOT
1•Somnora•1h ago•0 comments

Show HN: A comic and manga viewer component for React

https://react-comic-viewer.kkweb.io
2•piro0919•1h ago•0 comments

NanoGPT Speedrun

https://github.com/KellerJordan/modded-nanogpt
3•kelseyfrog•1h ago•0 comments

Lower air pollution leads to increased warming

https://twitter.com/Electroversenet/status/2090891691649560717
2•delichon•1h ago•1 comments

Most Popular Programming Languages: Data from 1958 to 2025

https://www.youtube.com/watch?v=ZTPrbAKmcdo
1•so-cal-schemer•1h ago•1 comments

Software Engineering in the Agentic Era

https://simonwillison.net/2026/Feb/23/agentic-engineering-patterns/
2•silverpiranha•1h ago•0 comments

US Military newspaper editor voices censorship fears after being fired

https://www.bbc.com/news/articles/cm2g23ng8p4o
19•tartoran•1h ago•3 comments

Mathematicians will probably become obsolete before anyone else [pdf]

https://olli.unt.edu/handouts/fall24/tk-writing-sample.pdf
2•tiahura•1h ago•0 comments

Show HN: Lens AI – generate your JSON-LD files and keep them up-to-date

https://knowledgelens.ai/
1•k7vin•1h ago•0 comments

A heart surgeon's confession: it was never the cholesterol

https://twitter.com/robertlufkinmd/status/2091265696076624301
3•bilsbie•1h ago•1 comments

Enabling the next-generation trait solver on nightly

https://blog.rust-lang.org/2026/08/21/enabling-next-solver-on-nightly/
1•lbw1215•1h ago•0 comments

You don't have to make money with AI. You could just be happier

https://hibernation.dev/posts/ai-for-happiness-not-money/
2•ositowang•1h ago•0 comments

Automakers Keep Adding Screens, but Buyers Want Something Else

https://www.autoblog.com/news/automakers-keep-adding-screens-but-buyers-want-something-else
2•delichon•1h ago•1 comments

Hacker News RSS

https://hnrss.github.io/
2•sillysaurusx•1h ago•0 comments