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!

Supply Chain Attack Targets Laravel-Lang Packages with Credential Stealer

https://www.aikido.dev/blog/supply-chain-attack-targets-laravel-lang-packages-with-credential-ste...
1•nullbio•4m ago•1 comments

Deepsec: The security harness for finding vulnerabilities in your codebase

https://vercel.com/blog/introducing-deepsec-find-and-fix-vulnerabilities-in-your-code-base
1•882542F3884314B•9m ago•0 comments

Perplexity Bumblebee: Read-Only Tool for Dev Supply Chain Checks on macOS/Linux

https://github.com/perplexityai/bumblebee
1•882542F3884314B•12m ago•0 comments

Show HN: ThinkLLM, A knowledge graph of AI models (HTTPS://thinkllm.dev)

https://thinkllm.dev
1•gkanellopoulos•13m ago•0 comments

All Model Labs Are Now Agent Labs

https://www.latent.space/p/ainews-all-model-labs-are-now-agent
1•swyx•14m ago•0 comments

Zero-dependency CLI that converts LinkedIn exports into Markdown for LLMs

https://linkedin2md.daza.ar/
1•juanmanueldaza•16m ago•0 comments

Show HN: Waiting for AI Grand Prix racing SIM? Me too So I made one

https://github.com/elodin-sys/ai-grand-prix
2•danAtElodin•17m ago•0 comments

The SpaceX IPO filing is filled with AI bets, Starship dreams

https://techcrunch.com/2026/05/20/the-spacex-ipo-filing-ai-bets-starship-dreams-elon-musk/
1•dotcoma•18m ago•0 comments

The analog computer museum's online library

https://www.analogmuseum.org/english/library.html
1•nill0•35m ago•0 comments

Being oncall taught me everything

https://yaoyue.org/blog/2026-oncall/
1•RyeCombinator•39m ago•1 comments

Product Launches, Tools and Builder Guides

https://nicklaunches.com/
2•theorchid•41m ago•3 comments

Google Is Killing ChromeOS: Aluminium OS, Its Android-Based Replacement

https://techjournal.org/google-aluminium-os-replacing-chromeos
11•pabs3•48m ago•2 comments

The Making of Indian Statistics

https://altermag.com/articles/the-making-of-indian-statistics
2•trojanalert•51m ago•0 comments

Microsoft reports AI is more expensive than paying human employees

https://fortune.com/2026/05/22/microsoft-ai-cost-problem-tokens-agents/
50•nreece•55m ago•13 comments

Most EVM systems have no memory

https://blog.bridgexapi.io/most-evm-systems-have-no-memory
2•Bridgexapi•56m ago•1 comments

Agent Substrate

https://github.com/agent-substrate/substrate
1•ahmedtd•57m ago•0 comments

Comparisons as Predictable as the Sunrise

https://pudding.cool/2026/05/similes/
1•newtwentysix•58m ago•0 comments

What Is an Air Gap?

https://www.ibm.com/think/topics/air-gap
1•teleforce•1h ago•0 comments

Ask HN: How concerned are you about a debt crisis?

6•bhag2066•1h ago•2 comments

Laravel Lang Compromised with RCE Backdoor Across 700 Versions

https://socket.dev/blog/laravel-lang-compromise
2•gpi•1h ago•0 comments

New kind of dark tourism emerging in online 'Backrooms,' study shows

https://phys.org/news/2026-05-kind-dark-tourism-emerging-online.html
1•WaitWaitWha•1h ago•0 comments

How the Library of Congress is using both AI and volunteers to unlock history

https://www.nextgov.com/artificial-intelligence/2026/05/how-library-congress-using-both-ai-and-vo...
1•WaitWaitWha•1h ago•0 comments

The Verification Tree: Turning AI bug report floods into a confidence signal

https://zenodo.org/records/20349904
2•yellow_glovez•1h ago•0 comments

Thousands evacuated in Garden Grove worry toxic chemicals in tank could explode

https://ktla.com/news/orange-county/thousands-evacuated-again-after-toxic-tank-leak-in-garden-grove/
2•Bender•1h ago•1 comments

Systemd 261-Rc1 Released with OS Installer, IMDS Subsystem and New Storagectl

https://www.phoronix.com/news/systemd-261-rc1
1•Bender•1h ago•0 comments

Feds unwittingly leak pilots' pre-crash conversation

https://www.theregister.com/science/2026/05/23/feds-unwittingly-leak-pilots-pre-crash-conversatio...
2•Bender•1h ago•0 comments

Kagi Search API is now in public preview

https://kagi.com/changelog#10622
3•mroche•1h ago•0 comments

A Visual Tour of Classical Electromagnetism (1960)

https://web.mit.edu/8.02t/www/802TEAL3D/visualizations/guidedtour/Tour.htm#_Toc27302365
2•nill0•1h ago•0 comments

My Hermes and Obsidian Setup and Use Cases

https://metedata.substack.com/p/013-my-hermes-and-obsidian-set-up
1•thunderbong•1h ago•0 comments

New rule requires most green-card applicants to apply from outside U.S.

https://www.washingtonpost.com/immigration/2026/05/22/new-rule-requires-most-green-card-applicant...
23•michaelsbradley•1h ago•11 comments