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!

Why Are Human Teeth So Messed Up? (2017)

https://www.sapiens.org/biology/human-teeth-evolution/
2•downbad_•4m ago•0 comments

Famous Photo of Chernobyl's Dangerous Radioactive Material Was a Selfie (2016)

https://www.atlasobscura.com/articles/elephants-foot-chernobyl
1•downbad_•5m ago•0 comments

OpenAI frontier models and Codex are now available on AWS

https://openai.com/index/openai-frontier-models-and-codex-are-now-available-on-aws/
2•typpo•7m ago•0 comments

AI's reality check has arrived

https://www.fastcompany.com/91551700/ais-reality-check-has-finally-arrived
2•1vuio0pswjnm7•13m ago•0 comments

Terrascan: Explore public deep earth scan datasets

https://terrascan.bowd.io
1•bowd•14m ago•1 comments

AI Grifters Are Making Anti-Data Center Slop with AI

https://www.404media.co/ai-grifters-are-making-anti-data-center-slop-with-ai/
3•cdrnsf•15m ago•0 comments

The Principal IC Moat

https://jchigg2000.dev/#blog/the-principal-ic-moat
1•jchigg2000•17m ago•0 comments

Riding a Spitfire: The Story of Margaret Horton

https://rafa.org.uk/blog/2021/03/08/magaret-horton/
1•omnibrain•18m ago•0 comments

Show HN: Dataroom – a Pi and self-hosted research harness on low-budget GPU

https://github.com/hanxiao/dataroom
1•artex_xh•21m ago•0 comments

Random cat GIFs, every few mins

https://kevinhwong.com/cats-appear
1•kevinwong•22m ago•1 comments

Om Malik – Clothes Are Nice. Fashion Biz, Not as Much

https://om.co/2026/06/01/clothes-are-nice-fashion-biz-not-as-much/
1•rmason•22m ago•1 comments

Show HN: A trend and monthly viewer of the monthly Ask HN: Who's Hiring?

https://hacker-hirings.com
1•awacs•23m ago•0 comments

UtilYard – 55 free browser-based tools (calculators, dev utilities, image tools)

https://utilyard.com
1•mshrod•23m ago•0 comments

Maxime Guillaume patented the axial turbojet in 1921

https://en.wikipedia.org/wiki/Maxime_Guillaume
1•Gravityloss•24m ago•0 comments

Resolving Feynman restaurant problem reveals optimal solutions&human strategies

https://www.pnas.org/doi/full/10.1073/pnas.2509612123
1•bookofjoe•25m ago•0 comments

The Hardest Fork

https://www.chainguard.dev/unchained/the-hardest-fork
1•curmudgeon22•25m ago•1 comments

Chief economist says AI-related job losses aren't happening

https://www.techradar.com/pro/zero-evidence-apollos-chief-economist-says-ai-related-job-losses-ar...
2•drrob•26m ago•0 comments

Complicated truth about European economic stagnation and living standards

https://drthad.substack.com/p/complicated-truth-about-european
2•arthurjj•28m ago•0 comments

Google Seeks to Raise $80B for AI Infrastructure

https://www.wsj.com/tech/ai/google-seeks-to-raise-80-billion-for-ai-infrastructure-05a379be
6•kjhughes•28m ago•1 comments

Remote work – not AI – has sidelined recent college graduates, research finds

https://www.npr.org/2026/06/01/nx-s1-5843076/remote-work-college-graduates-unemployment-ai
1•condensedcrab•30m ago•0 comments

Show HN: Hacker News and Lobsters RSS, repackaged for offline reading

https://github.com/cadamsdotcom/offlinerss
1•cadamsdotcom•32m ago•0 comments

Debugging: Google requests permission to release 32M mosquitoes

https://www.theguardian.com/technology/2026/jun/01/google-permission-release-mosquitoes-californi...
3•ranit•36m ago•0 comments

I built a free AEO/GEO audit tool HTTPS://freeaiwebsiteaudit.com/

2•snowbirdsong•36m ago•0 comments

Bringing Goodnotes to the Web with Swift and WebAssembly

https://www.swift.org/blog/bringing-goodnotes-to-web-with-swift/
3•CharlesW•36m ago•0 comments

University System Went All in on A.I. Now It's Tearing Itself Apart

https://www.nytimes.com/2026/06/01/magazine/ai-university-college-california.html
3•jbredeche•38m ago•0 comments

Show HN: Glq LLM quantization using E8 lattice

https://github.com/cnygaard/glq
1•acd•40m ago•0 comments

Cognitive Packets for Agent Orchestration

https://github.com/JeanHuguesRobert/cogentia/blob/main/research/cognitive_packet_switching.md
1•jhrobert•40m ago•0 comments

Tokens Are the New Transistors

https://www.anantjain.xyz/posts/tokens-are-the-new-transistors
1•anant90•42m ago•0 comments

Show HN: Knotch – a hub-and-spoke voice agent

https://github.com/akshatvasisht/knotch
1•akshatvasisht•43m ago•1 comments

The Pope isn't AGI-pilled

https://www.theverge.com/ai-artificial-intelligence/937933/pope-ai-encyclical-tech-industry-react...
4•1vuio0pswjnm7•44m ago•0 comments