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!

Shakespeare's World – I thought this would be simple but

https://knowwhereconsulting.co.uk/blog/shakespeares-world/
1•speckx•43s ago•0 comments

Counting Large Numbers of Events in Small Registers (1978) [pdf]

https://graphics.stanford.edu/courses/cs321/Private/Readings/p840-morris.pdf
1•tosh•1m ago•0 comments

Blitzy AI charges by LOC generated

https://blitzy.com/#pricing
1•_doctor_love•1m ago•0 comments

The Opportunity Atlas

https://opportunityatlas.org/
1•mmooss•3m ago•0 comments

Show HN: Stumbleback – A fun way to get through your reading list

https://chromewebstore.google.com/detail/stumbleback/fkmbjmmdkpfpcnmbgnpmnkhnhecieigk
1•jimsojim•3m ago•0 comments

NASA's Geostationary Lightning Mapper contract (Lockheed, 2007-2039) receives

https://www.usaspending.gov/award/23030/
1•thebuildout•3m ago•0 comments

Bit Twiddling Hacks

https://graphics.stanford.edu/~seander/bithacks.html
3•tosh•5m ago•0 comments

U.S. Seeks to Give Weapons-Grade Plutonium to Startups for Fuel

https://www.nytimes.com/2026/05/26/climate/plutonium-nuclear-weapons-fuel.html
2•stephenhuey•6m ago•0 comments

Multiple Byte Processing with Full-Word Instructions (1975)

https://www.microsoft.com/en-us/research/publication/multiple-byte-processing-full-word-instructi...
1•tosh•6m ago•0 comments

AI-Related Issues in Securities Cases: Privilege Pitfalls, 'AI Washing' Claims

https://www.law.com/thelegalintelligencer/2026/05/26/ai-related-issues-in-securities-cases-privil...
1•1vuio0pswjnm7•8m ago•0 comments

Codex for Everything Exfiltrates Connected Data

https://www.promptarmor.com/resources/codex-for-everything-exfiltrates-connected-data
1•jackson-mcd•8m ago•0 comments

Is having agents in the room meant to be chaotic?

https://slock.ai/resources/blog/is-having-agents-in-the-room-meant-to-be-chaotic/
1•cindyrzhao•9m ago•0 comments

Mikro-Gen

http://whereweretheynow.blogspot.com/2026/05/mikro-gen.html
1•elvis70•11m ago•0 comments

We reran this Google Cloud N2 benchmark 6 times over 2 weeks. It barely budged

https://webbynode.com/articles/google-cloud-vm-six-times-two-weeks-barely-changed
1•gsgreen•12m ago•1 comments

The world of 2050: What's possible

https://bigthink.com/science-tech/the-great-progression-2050/
1•dabinat•13m ago•0 comments

AI is killing All About Berlin

https://nicolasbouliane.com/blog/death-by-ai
3•nicbou•14m ago•0 comments

From the Annals of Dubious Achievement (2009)

https://mcfunley.com/from-the-annals-of-dubious-achievement
1•gm678•14m ago•0 comments

My –/.ssh folder has NO private keys

https://blog.imcotton.xyz/my-ssh-folder-has-no-private-keys
1•imcotton•14m ago•0 comments

Project Panama and Respect for Culture

https://yadin.com/notes/panama/
1•dryadin•14m ago•0 comments

Show HN: Cross-agent messaging and shared memory over the local filesystem

https://oacp.dev
2•haoranchg•15m ago•1 comments

Show HN: MacSurf, a web browser port of Netsurf for Mac OS 9 with native TLS

https://github.com/mplsllc/macsurf
1•mplsllc•15m ago•0 comments

Show HN: Yavchn – Yet Another Vibe-Coded Hacker News Wrapper

https://yavchn.parkscomputing.com/
1•paulmooreparks•15m ago•1 comments

Pheno: AI-Powered Personalized Health Platform

https://pheno.life/
1•felixmamrikov•15m ago•0 comments

Python library to solve certain P-hard problems in polynomial time

https://pypi.org/project/holant-tools/
1•pcoz•16m ago•1 comments

Presencing America's Ugly Truths: Collective Healing in a Time of Collapse

https://pocketproject.org/episode-50-presencing-americas-ugly-truths-collective-healing-in-a-time...
1•rendx•16m ago•0 comments

Ghost hackers: the cybersecurity mystery that nobody has solved

https://techcrunch.com/2026/05/26/ghost-hackers-the-cybersecurity-mystery-that-nobody-has-solved/
1•evo_9•16m ago•0 comments

Antcc: A Little C Compiler

https://codeberg.org/lsof/antcc
1•fanf2•17m ago•0 comments

Show HN: HarvestGuard – AI early warnings for crop failure and food crises

https://github.com/rishavsunny12/harvestGuard
1•rishavsunny12•18m ago•0 comments

Rogue states are putting AI agents to work on sanctions evasion

https://www.theregister.com/ai-ml/2026/05/26/rogue-states-are-putting-ai-agents-to-work-on-sancti...
1•Bender•19m ago•0 comments

Not update your dependencies in 2026

https://www.mendral.com/blog/you-should-not-update
1•shad42•19m ago•0 comments