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!

Coinbase AWS Service Disruption

https://status.coinbase.com/incidents/frg5wqm113dh
1•aghuang•1m ago•0 comments

Show HN: Corsproxy – Fix CORS Errors Instantly – Free for Development

https://corsproxy.io/
1•mariusbolik•1m ago•0 comments

Notes from Inside China AI Labs

https://www.interconnects.ai/p/notes-from-inside-chinas-ai-labs
1•eamag•2m ago•0 comments

Police advised to disable Bluetooth on Axon body-worn cameras to avoid detection

https://www.abc.net.au/news/2026-05-08/police-advised-turn-bodycams-to-flight-mode-over-security-...
1•stubish•12m ago•0 comments

Diagrammer: Tell the model, get the diagram or the graphical map

https://github.com/IdraDev/Diagrammer
1•idradev•14m ago•1 comments

0ctx – Local-first project memory for AI workflows

1•som3on3•16m ago•0 comments

Memories of David Attenborough as he turns 100

https://www.theguardian.com/tv-and-radio/2026/may/08/david-attenborough-at-100-memories-encounters
1•yreg•18m ago•0 comments

How the NSA obtains and uses airline reservations (2013)

https://papersplease.org/wp/2013/09/29/how-the-nsa-obtains-and-uses-airline-reservations/
1•downbad_•19m ago•1 comments

I, robe-ot: the Android monk working to reboot the faith of S. Korea's Buddhists

https://www.theguardian.com/world/2026/may/08/jogyesa-temple-south-korea-humanoid-ai-robot-gabi
1•ta988•20m ago•0 comments

Nullsoft, 1997-2004 AOL kills off the last maverick tech company (2004)

https://slate.com/technology/2004/11/the-death-of-the-last-maverick-tech-company.html
1•downbad_•22m ago•1 comments

IIT Madras establishes Menlo Park Centre to help Indian startups scale globally

https://www.fortuneindia.com/business-news/international-arm-of-iit-madras-establishes-a-us-centr...
1•porridgeraisin•23m ago•0 comments

Ask HN: What is the most exciting development in your field?

1•chistev•25m ago•1 comments

Ask HN: We just had an actual UUID v4 collision...

4•mittermayr•26m ago•2 comments

HIV pandemic's origins located (2014)

https://www.ox.ac.uk/news/2014-10-03-hiv-pandemics-origins-located
1•thunderbong•29m ago•0 comments

Platform Engineering End-to-End

https://www.lucavall.in/blog/platform-engineering-end-to-end
1•ingve•32m ago•0 comments

The complete Claude Code course for engineers and technical founders

https://code-agents.ai
2•onder_ceylan•32m ago•0 comments

Show HN: Runs AI coding agents inside isolated Docker containers

https://github.com/marvincaspar/agent-sanbox
2•matt_callmann•36m ago•0 comments

Best Free Agentic AI Course in 2026 with Real Projects, and No-Code Learning

https://simplai.ai/simplai-university
2•shanmugarajsk•40m ago•0 comments

Show HN: Mideo – Translate Video to MIDI

https://cafedelcadence.github.io
1•bbrwx•40m ago•0 comments

Building for the future: Cloudflare lays off 1,100 employees

https://blog.cloudflare.com/building-for-the-future/
1•pabs3•43m ago•1 comments

Nintendo confirms Switch 2 price rises, consoles now $500 in the US

https://www.videogameschronicle.com/news/nintendo-confirms-switch-2-price-rises-consoles-now-500-...
2•01-_-•43m ago•0 comments

What Microsoft Executives Thought About OpenAI in 2018

https://www.wired.com/story/microsoft-executives-discuss-openai-sam-altman-2018/
2•01-_-•44m ago•0 comments

Show HN: Meeseeks Driven Development

https://github.com/lukehedger/meeseeks
1•levelout•46m ago•0 comments

Virtual private networks and the protection of children online

https://www.europarl.europa.eu/thinktank/en/document/EPRS_ATA(2026)782618
2•mvdwoord•50m ago•1 comments

60% of MD5 password hashes are crackable in under an hour

https://www.theregister.com/security/2026/05/07/60-of-md5-password-hashes-are-crackable-in-under-...
1•signa11•51m ago•0 comments

The Canvas Hack Is a New Kind of Ransomware Debacle

https://www.wired.com/story/canvas-hack-shinyhunters-ransomware-instructure/
1•signa11•53m ago•0 comments

Show HN: I instructed AI to create tool to clean AI-generated text: undsh.com

https://undsh.com/
1•kkarpkkarp•55m ago•0 comments

I hate soldering existentially

https://user8.bearblog.dev/rant/
3•James72689•56m ago•0 comments

Token Coffee

https://testflight.apple.com/join/VHaxgb3B
1•Brrainz•57m ago•0 comments

AI is technology, not a feature

https://senkorasic.com/articles/ai-is-tech-not-feature
3•taubek•58m ago•0 comments