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!

Rewrite System Showdown: Stochastic Search vs. EqSat

https://arxiv.org/abs/2605.19005
1•pcfwik•4m ago•0 comments

Scheme Interpreter

https://cs61a.org/proj/scheme/
1•HiPHInch•6m ago•0 comments

Understanding KV Cache: The Hidden Memory Cost of Serving LLMs

https://melchi.me/posts/kv-cache/
1•colescodes•9m ago•0 comments

Opn-Chat

https://opn-chat-v1-freebuff.vercel.app
1•fcapuz•9m ago•0 comments

Workers in India are training robots that may replace them

https://indianexpress.com/article/business/workers-india-training-robots-replace-factory-10698712/
3•methuselah_in•10m ago•0 comments

Why does the arrow (->) operator in C exist?

https://stackoverflow.com/questions/13366083/why-does-the-arrow-operator-in-c-exist
2•gnabgib•14m ago•0 comments

Trump admin didn't want Ebola-exposed Americans, sent them to Berlin, Prague

https://arstechnica.com/health/2026/05/trump-admin-didnt-want-ebola-exposed-americans-sent-them-t...
3•donutshop•17m ago•0 comments

Housekeeping Wages to Top $110K Year in New York City by Early 2030s

https://loyaltylobby.com/2026/05/20/housekeeping-wages-to-top-110k-year-in-new-york-city-by-early...
1•lxm•20m ago•0 comments

Amazon E-Bikes Take Root in Manhattan and Brooklyn

https://www.nytimes.com/2026/05/19/business/amazon-cargo-bikes-delivery.html
1•lxm•21m ago•0 comments

Google's open source distributed agent runtime

https://github.com/google/ax
2•rnella01•24m ago•0 comments

Birth Rate Debate: 40% of Girls Will Never Be Mothers [video]

https://www.youtube.com/watch?v=8eCM3NTBeb4
2•poiuyt098•24m ago•2 comments

Why does the arrow (->) operator in C exist?

https://lobste.rs/s/garq37/why_does_arrow_operator_c_exist
2•maxloh•27m ago•1 comments

Why Fashion Needs a World Model

https://twitter.com/ArkidMitra/status/2057130009203298693
1•Arkid•28m ago•1 comments

Web5-Mesh (IAON)

https://github.com/mamanga1/Web5-Mesh/tree/main
1•mamanga•32m ago•1 comments

Show HN: SafeRun – Replay debugging and inline prevention for AI agents 3

1•Tidianez•33m ago•0 comments

25 years ago Sega figured out the internet with Phantasy Star Online

https://www.avclub.com/sega-phantasy-star-online-gaming
2•debo_•36m ago•0 comments

Show HN: Agent Chat Bridge – give AI IDE agents an async callback

https://github.com/sathvikc/agent-chat-bridge
1•sathvikchinnu•37m ago•0 comments

Xcodes: Command-line Xcode version manager

https://github.com/XcodesOrg/xcodes
1•Lwrless•40m ago•0 comments

Show HN: SnapAPI – Screenshot, metadata extraction, and PDF generation API

https://snap.michaelcli.com
1•msmolkin•41m ago•0 comments

Timmy the Whale Got Stranded Off the German Coast. Then Things Got Weird

https://www.nytimes.com/2026/05/20/world/europe/timmy-whale-dead-denmark-rescue.html
1•duxup•42m ago•1 comments

Figma Design Agent

https://www.figma.com/blog/the-figma-agent-is-here/
3•satvikpendem•43m ago•0 comments

The Google AI Pro plan just got a quiet downgrade

https://www.androidcentral.com/apps-software/ai/google-ai-pro-plan-just-got-a-quiet-downgrade
3•geox•45m ago•0 comments

Trump Executive Order Expands Bank Secrecy Act

https://www.therage.co/trump-executive-order-expands-bank-secrecy-act/
3•Cider9986•47m ago•2 comments

MoonRay, DreamWorks Animation's Open Source Production Renderer

https://www.aswf.io/news/moonray-dreamworks-animations-open-source-production-renderer-joins-the-...
3•qainsights•51m ago•1 comments

Ignis: Run Obsidian as a self-hosted web app

https://github.com/Nystik-gh/ignis
1•thunderbong•52m ago•0 comments

Apple's new iPhone comes with Israeli chips

https://nonogra.ph/apples-new-iphone-comes-with-israeli-chips-05-21-2026
12•han1•58m ago•1 comments

To study how chips work, MIT researchers built their own operating system

https://www.csail.mit.edu/news/study-how-chips-really-work-mit-researchers-built-their-own-operat...
3•littlexsparkee•1h ago•0 comments

I'm Filing for Justice Samuel Alito's Disbarment

https://cmarmitage.substack.com/p/samuel-alito-has-exposed-himself
23•ze0ng•1h ago•6 comments

Ultima Underworld Remake Released

https://kweepa.itch.io/unity-underground
2•vancroft•1h ago•0 comments

Androids Are All Dying, Except Google Pixel [video]

https://www.youtube.com/watch?v=Ph-TMMku1xk
2•mgh2•1h ago•1 comments