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•11mo ago

Comments

zljdanceholic•11mo 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!

A WhatsApp chatbot that becomes smarter the more you use it

https://opero.so/blog/how-your-ai-agent-gets-smarter-every-conversation
1•juancruzguillen•1m ago•0 comments

Enterprise AI does not have a model problem. It has an adoption problem

1•taariqlewis•1m ago•0 comments

Why would you want a 64 bit microprocessor, especially in a personal system? (19

https://www.bourguet.org/v2/comparch/mashey-byte-1991
1•fanf2•1m ago•0 comments

New IKEA Matter over Thread bulbs can be switched to Zigbee by powercycling 12x

https://old.reddit.com/r/homeassistant/comments/1sgstis/90_cri_1500lm_e27_zigbee_bulb_for_999_yes...
1•HeyMeco•1m ago•1 comments

Show HN: MCP Servers

https://awesomemcpservers.ai/
1•sh_tomer•1m ago•0 comments

Let's talk about LLMs

https://www.b-list.org/weblog/2026/apr/09/llms/
1•bsgada•2m ago•0 comments

Show HN: AIMock – One Mock Server for Your AI Stack

https://github.com/CopilotKit/aimock
1•nathan_tarbert•3m ago•0 comments

BojanSocial – A 2010s Microblogging Site

https://bojan.social
1•arrgeeebee•3m ago•0 comments

I quit drinking for a year out of spite

https://dynomight.net/drinking/
1•crescit_eundo•6m ago•0 comments

Hover Bovver (lawn mowing game)

https://en.wikipedia.org/wiki/Hover_Bovver
1•Glandalf•6m ago•0 comments

Why a Liberal Arts Education Will Soon Be More Valuable

https://www.noemamag.com/why-a-liberal-arts-education-will-soon-be-more-valuable-than-ever/
1•sonicrocketman•7m ago•0 comments

Wayland 1.25 Documentation Update

https://www.collabora.com/news-and-blog/news-and-events/wayland-1.25-documentation-update.html
2•losgehts•7m ago•0 comments

The 200k Ghost: Instruction Degradation in Long-Context LLM Sessions

https://github.com/WaspBeeNSOSWE/the-200k-ghost
1•ctoth•8m ago•0 comments

VMs Are Enough

https://github.com/devopsellence/devopsellence/blob/master/docs/vision.md
2•elvinefendi•11m ago•0 comments

Show HN: PageFly – Personal Knowledge OS Inspired by Karpathy's LLM Wiki

https://github.com/Yrzhe/pagefly
1•yrzhe•12m ago•0 comments

MIT Just Found the Cause of the AI Bubble

https://www.youtube.com/watch?v=1zlD0K09IKE
1•OhMeadhbh•12m ago•1 comments

styled-components 6.4 now available

https://github.com/styled-components/styled-components/releases/tag/styled-components%406.4.0
1•quantizor•12m ago•1 comments

I Let Claude Code Autonomously Run Ads for a Month

https://read.technically.dev/p/i-let-claude-code-autonomously-run
3•zdw•12m ago•1 comments

The Instant Messaging Freedom Knowledge Base

https://kb.imfreedom.org/
1•Baljhin•13m ago•1 comments

Level 5 – Weekly live demos from advanced AI users

1•bilaxten•14m ago•0 comments

Amazon CEO Says Chip Business 'On Fire' as AWS Steps Up Challenge to Nvidia

https://www.investors.com/news/technology/amazon-stock-jassy-letter-2025-ai-chips-nvidia/
1•SilverElfin•14m ago•0 comments

A Tour of Oodi

https://blinry.org/oodi/
1•zdw•15m ago•0 comments

Margin – Open annotation layer for the internet

https://margin.at/
1•embedding-shape•16m ago•0 comments

I Hired a Robot and Made Him Journal

https://www.wysr.xyz/p/i-hired-a-robot-and-made-him-journal
1•martialg•17m ago•0 comments

Show HN: AI Brief – daily AI news clustered by topic (aibrief.fyi)

https://aibrief.fyi/
1•vkr2020•17m ago•0 comments

Record-Breaking Drone Show [video]

https://www.youtube.com/watch?v=i1ho1-JBBmw
1•gnabgib•19m ago•0 comments

OpenAI Ad Settings

https://chatgpt.com/#settings/Advertising
1•BiraIgnacio•19m ago•0 comments

Israel got away with targeting healthcare in Gaza. Now doing it in Lebanon too

https://www.theguardian.com/commentisfree/2026/apr/08/lebanon-gaza-healthcare-targeting-israeli-a...
6•hebelehubele•20m ago•2 comments

AI, Unemployment and Work

https://marginalrevolution.com/marginalrevolution/2026/04/ai-unemployment-and-work.html
5•speckx•20m ago•0 comments

iCloud-Linux

https://github.com/IsmaeelAkram/icloud-linux
1•Cider9986•21m ago•0 comments