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!

2026 Cocodona Livestream Day 1 [video]

https://www.youtube.com/watch?v=dWhF6tTn8zI
1•BiraIgnacio•2m ago•0 comments

VSCode Dark Islands – Safe Version

https://github.com/raaid3/vscode-dark-islands
1•raaid3•3m ago•1 comments

Metalenz Has Figured Out a Way to Make Face ID Invisible

https://www.wired.com/story/metalenz-has-figured-out-a-way-to-make-face-id-invisible/
1•0in•5m ago•0 comments

An unbiased benchmark for how well agents can read your docs

https://docsalot.dev/benchmarks/docs
1•fazkan•8m ago•0 comments

America's retail army came to rule the stock market

https://www.ft.com/content/ee8a0604-84cb-44da-bb33-f36818944581
2•petethomas•9m ago•0 comments

Started Exploring Payment Infrastructure for Online Businesses (Stripe, API)

https://chain2pay.cloud
1•fintraxx•10m ago•0 comments

The Open Social Web Needs Section 230 to Survive

https://www.techdirt.com/2026/05/04/the-open-social-web-needs-section-230-to-survive/
3•HotGarbage•16m ago•0 comments

When Decoded Isn't Verified: Closing a Trust-Boundary Gap in Envoy's JWT Filter

https://netguard24-7.com/blog/envoy-jwt-authn-confused-deputy-pr-43630
1•cybrdude•19m ago•0 comments

The Roomba Guy's Second Act: A Robot You'll Want to Snuggle

https://www.wsj.com/tech/ai/familiar-machines-and-magic-robot-c8711e45
1•aanet•19m ago•1 comments

April 2026 Links

https://nomagicpill.substack.com/p/april-2026-links
1•nomagicpill•21m ago•0 comments

Cerebras Leads Crop of IPOs Rushing to Tap Market Before SpaceX

https://techcrunch.com/2026/05/04/openais-cozy-partner-cerebras-is-on-track-for-a-blockbuster-ipo/
2•giwook•23m ago•0 comments

ARPA-H allocates $35M to osteoarthritis reversal therapy

https://www.colorado.edu/today/2026/04/06/simple-shot-shows-promise-reverse-osteoarthritis-within...
1•warbaker•24m ago•0 comments

Hantavirus crops up on a cruise ship – what scientists are watching

https://www.nature.com/articles/d41586-026-01450-7
1•warbaker•31m ago•0 comments

The Grand Theory of Everything (2007)

https://dl.acm.org/doi/pdf/10.1145/1281421.1281430
2•jruohonen•32m ago•0 comments

Ask HN: Cryptic refusals of credit cards with Firefox?

1•everybodyknows•33m ago•1 comments

KDE Plasma gesture handling and other input related news

https://blogs.kde.org/2026/05/03/gestures-in-graz-and-beyond/
2•f_r_d•33m ago•0 comments

Bringing WolfHSM to STM32H5 TrustZone: Production-Grade HSM on a Cortex-M33

https://www.wolfssl.com/bringing-wolfhsm-to-stm32h5-trustzone-production-grade-hsm-on-a-cortex-m33/
1•aidangarske•33m ago•0 comments

The A.I. Industry Is Booming. When Will It Make Money?

https://www.newyorker.com/news/the-financial-page/the-ai-industry-is-booming-when-will-it-actuall...
4•petethomas•35m ago•0 comments

Show HN: Continuum, a pedantic recreation of the OMNI font

https://github.com/ChristopherDrum/continuum/
2•ChristopherDrum•36m ago•0 comments

The First Firmware TPM with Post-Quantum Cryptography

https://www.wolfssl.com/the-first-firmware-tpm-with-post-quantum-cryptography/
1•aidangarske•37m ago•0 comments

SEC vs. Consent Motion for Entry of Final Judgement [pdf]

https://www.sec.gov/files/litigation/complaints/2026/judgment26548.pdf
1•ksherlock•39m ago•0 comments

The First COSE Implementation with ML-DSA

https://aidangarske.github.io/wolfCOSE/blog/wolfcose-pqc-cose/
1•aidangarske•42m ago•0 comments

The case against OpenAI is getting markedly stronger

https://twitter.com/garymarcus/status/2051347785761616101
4•abriosi•43m ago•0 comments

Why Waste Money?

https://rentry.co/it937bh4
2•gavmor•44m ago•1 comments

Show HN: 10K English words traced to 4 foundations(Space, Time, Energy, Pattern)

1•sauronsrv•46m ago•0 comments

Ask HN: Where are you getting your AI news from?

4•baetylus•47m ago•0 comments

SprintiQ – open-source sprint planning for Claude Code

https://github.com/SprintiQ-Incorporated/sprintiq
2•sprintiq•49m ago•0 comments

One Map Key, One Lookup

https://testing.googleblog.com/2026/04/one-map-key-one-lookup.html
2•birdculture•52m ago•0 comments

Must We 'Do Lunch'?

https://www.ft.com/content/13265324-7614-40a2-a3f6-0066ffb83c21
1•JumpCrisscross•54m ago•0 comments

Nothing Is Something

https://blog.jim-nielsen.com/2024/nothing-is-something/
2•SpyCoder77•55m ago•0 comments