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!

Show HN: Plonk – Spotlight Search style Python interpreter

https://github.com/JosephRedfern/plonk
1•JosephRedfern•2m ago•0 comments

Possession (1981 Film)

https://en.wikipedia.org/wiki/Possession_(1981_film)
1•mooreds•3m ago•0 comments

Modern passport systems leave little room for bureaucratic heroism

https://reason.com/2026/05/20/the-modern-passport-has-eliminated-fraud-forgery-and-heroes-who-can...
1•leephillips•3m ago•0 comments

Blind Waymo Users Revel in the Joy of Riding Alone

https://www.nytimes.com/2026/05/24/us/waymo-robot-taxis-blind.html
1•bookofjoe•4m ago•1 comments

Ask HN: Who uses Aurora Store here?

1•g-b-r•4m ago•0 comments

So, Where Does Next-Token Prediction Leave Us?

https://pop.rdi.sh/where-does-next-token-prediction-leave-us/
1•0x5FC3•6m ago•0 comments

Pope Leo XIV's Magnifica Humanitas, Markdown Version

https://github.com/cucho/magnifica-humanitas/blob/master/markdown/en.md
2•cucho•8m ago•0 comments

Show HN: Open Satchel – local-first PDF editor (early)

https://opensatchel.dev/
1•jqmccleary•8m ago•0 comments

Show HN: Hackobar – One feed for AI news

https://hackobar.com/
3•rahu_•8m ago•0 comments

Show HN: GhostChat – A 10KB privacy-first live chat widget (open source)

https://github.com/ghostchat-dev/widget
1•jorbach•8m ago•0 comments

Why did T. rex have tiny arms? Scientists now think they know why

https://www.cnn.com/2026/05/25/science/t-rex-tiny-arms-function
1•edward•10m ago•0 comments

Monte Cimone v3: Where RISC-V Stands in High-Performance Computing

https://arxiv.org/abs/2605.22831
1•Brajeshwar•13m ago•0 comments

Show HN: TiltBump, a mobile web game controlled by phone tilt

https://tiltbump.com
1•eropatori•14m ago•0 comments

Ask HN: Archiving Family Photos?

2•helterskelter•15m ago•0 comments

Agentic AI Patterns

https://github.com/agentpatterns-ai/website
1•ankitg12•16m ago•0 comments

How are you auditing what your AI agents do in production?

https://www.tryagentgate.com/
1•ElamOlame•17m ago•0 comments

Tiny DIY Voice to Text Note Taking Device [video]

https://www.youtube.com/watch?v=3t0k7E7WiOQ
1•analogpixel•20m ago•0 comments

Show HN: A tool to replace x.com with tweet.md for X threads as Markdown

https://tweet.md
1•buildItN0w_•20m ago•0 comments

Show HN: Symbol Combos Copy and Paste

https://symbolcombo.com/
1•artiomyak•21m ago•0 comments

Addressing Technical Debt

https://yusufaytas.com/addressing-technical-debt
5•ayven•22m ago•0 comments

Classic HN: A Story About 'Magic'

http://catb.org/jargon/html/magic-story.html
1•ColinWright•23m ago•0 comments

Show HN: JustBookmarks – a simple browser-independent bookmark manager

https://github.com/SellswordSoftware/justbookmarks
1•sellswordsoft•24m ago•0 comments

Implications of Predicting the Next Token

https://www.lesswrong.com/posts/AzRRPDNmeEoJdSiib/implications-of-predicting-the-next-token
1•cubefox•24m ago•1 comments

My new obsession: A horse-racing board game of pure luck

https://alexanderbjoy.com/horse-race-board-game/
1•surprisetalk•26m ago•0 comments

No honor among (ad-tech) thieves

https://pluralistic.net/2026/05/25/lying-spies/
1•Brajeshwar•26m ago•0 comments

Mark Cuban has been right every time the crowd said he was wrong

https://www.the-ai-corner.com/p/mark-cuban-has-been-right-every-time
2•mooreds•26m ago•0 comments

Additive ban could change New York's pizza and bagels, some say for the better

https://6abc.com/post/proposed-additive-ban-could-change-new-yorks-pizza-bagels-say-better/19167465/
1•brandonb•27m ago•0 comments

Five Takeaways from Day One of Data Centre Live 2026

https://datacentremagazine.com/news/the-top-five-takeaways-from-day-one-of-data-centre-live-2026
1•mooreds•27m ago•0 comments

I built a local proxy to catch IDOR/BOLA bugs. Looking for feedback

https://github.com/rodrigo-areyzaga/accguard
1•hackerone_n6hy1•28m ago•0 comments

Generative Engine Optimization

https://agentpatterns.ai/geo/
1•ankitg12•28m ago•0 comments