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!

BirdyChat is now live in Europe

https://www.birdy.chat/blog/birdychat-is-now-live-in-europe
1•rmesters•1m ago•0 comments

Chaotic whale rescue shocks marine biologists

https://www.science.org/content/article/chaotic-whale-rescue-shocks-marine-biologists
1•_tk_•1m ago•0 comments

Show HN: Rore GUI – An Open Qt Alternative in Rust (WGPU, Zero-VDOM)

https://github.com/davlatov-tech/Rore
1•umid_davlatov•1m ago•1 comments

Community firmware for the Xteink X4 e-paper reader

https://github.com/crosspoint-reader/crosspoint-reader
1•dmos62•1m ago•0 comments

Show HN: An AI generated, online art exhibition

https://www.whatwesee.space/
1•sarreph•2m ago•0 comments

Show HN: Built a haptic rig for SIM racing

https://www.youtube.com/watch?v=7C1XoP6DIb4
1•helloduck1234•2m ago•0 comments

Independent Siggraph Paper: InfiniteDiffusion, Terrain Diffusion, Minecraft Demo

https://xandergos.github.io/terrain-diffusion/
1•xandergos•2m ago•1 comments

Canada Tax Calculator

https://takehome.tax
1•ccnomas•3m ago•0 comments

Plaster-making technique attributed to Romans appears 8K years earlier in Motza

https://phys.org/news/2026-05-plaster-technique-previously-attributed-romans.html
1•pseudolus•4m ago•0 comments

Copirate 365: Plundering in the Depths of Microsoft Copilot (CVE-2026-24299)

https://embracethered.com/blog/posts/2026/defcon-talk-copirate-365/
2•kerng•5m ago•0 comments

Smashing the Stack for Fun and Profit (1996)

https://phrack.org/issues/49/14
1•myth_drannon•5m ago•0 comments

LLMs running on my laptop can drive coding agents now

https://simonpcouch.com/blog/2026-04-16-local-agents-2/
1•speckx•5m ago•0 comments

Tre: The approximate regex matching library

https://github.com/laurikari/tre/
1•tosh•5m ago•0 comments

NASA just released 12k more pictures from Artemis II mission

https://eol.jsc.nasa.gov/SearchPhotos/ShowQueryResults-Table.pl?results=177791454696961
3•bookofjoe•7m ago•0 comments

Spawn and monitor swarms of local AI agents from an iPhone

https://onepilotapp.com
2•elearia•7m ago•0 comments

Show HN: Hexagonal, noisy, periodic Minesweeper in FreeDoom style

https://aiwai.eu/apps/doom-sweeper/
1•gkep•8m ago•0 comments

Tokentoll – Static analysis that catches LLM cost changes in code review

https://github.com/Jwrede/tokentoll
1•Jwrede•8m ago•0 comments

DigiCert: Misissued Code Signing Certificates

https://bugzilla.mozilla.org/show_bug.cgi?id=2033170
1•8organicbits•9m ago•0 comments

Microsoft Edge: Passwords end up in memory as plaintext

https://www.heise.de/en/news/Microsoft-Edge-Passwords-end-up-in-memory-as-plaintext-11281576.html
1•Topfi•9m ago•1 comments

Stripe.Dev Infinite Scroll Animates Developers Chant

https://stripe.dev/
1•skadamat•12m ago•0 comments

How HN: I aggregated 17 years of the Guardian's Blind Date column

https://blinddates.rory.codes/
1•mrroryflint•12m ago•1 comments

Encyclopedia Evalica

https://www.braintrust.dev/encyclopedia
1•i0exception•13m ago•0 comments

Google now offers up to $1.5M for some Android exploits

https://www.bleepingcomputer.com/news/security/google-now-offers-up-to-15-million-for-some-androi...
2•Brajeshwar•13m ago•0 comments

Opposition to AI Data Centers Is a 'Bipartisan Issue'

https://www.nytimes.com/2026/05/01/us/politics/liberals-conservatives-data-centers.html
1•npilk•14m ago•0 comments

The growing risk of a 'non-linear spike' in oil prices

https://www.ft.com/content/8ebecab1-552e-4e12-96cf-c36d738aeb2e
1•_tk_•14m ago•0 comments

Tell HN: Archive.ph Is Gone

2•_tk_•15m ago•0 comments

When Agent Memory Becomes a Platform Concern

https://medium.com/@wjackson_63436/when-agent-memory-becomes-a-platform-concern-4b6cd23af47f
1•rdwj•15m ago•1 comments

IPCC Admits Apocalyptic Climate Scenarios Are "Implausible"

https://dailysceptic.org/2026/05/05/ipcc-admits-apocalyptic-climate-scenarios-are-implausible-mea...
1•bilsbie•16m ago•1 comments

How AI Works Under the Hood: LLMs Explained with Code

https://nitayneeman.com/blog/how-ai-works-under-the-hood-llms-explained-with-code/
1•nitayneeman•17m ago•0 comments

Adobe's 'Modern' User Interface Is Just Webpages

https://pxlnv.com/linklog/adobe-modern-user-interface/
2•JumpCrisscross•17m ago•0 comments