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!

Show HN: Open Daily, a chill and deep convenience store SIM

https://www.opendaily.app/
1•BSOhealth•25s ago•0 comments

Change Orders – Get the Signature Before You Pick Up the Tool

https://www.documentorium.com/blog/change-orders-get-the-signature-before-you-pick-up-the-tool
1•documentorium•1m ago•0 comments

Surveillance vendors caught abusing access to telcos to track people's locations

https://techcrunch.com/2026/04/23/surveillance-vendors-caught-abusing-access-to-telcos-to-track-p...
1•mentalgear•2m ago•0 comments

AI Assistance Reduces Persistence and Hurts Independent Performance

https://arxiv.org/abs/2604.04721
2•ihrimech•4m ago•0 comments

802.1Qav – Forwarding and Queuing Enhancements for Time-Sensitive Streams

https://www.ieee802.org/1/pages/802.1av.html
1•Lwrless•5m ago•0 comments

Because Webfetch Sucks

https://github.com/bxxd/mcp-fetch-ux
1•breed101•6m ago•1 comments

The Ever-changing Art of the Screensaver (2022)

https://eyeondesign.aiga.org/the-ever-changing-art-of-the-screensaver/
1•arbesman•8m ago•0 comments

Streamable Volumetric Video Is Here on Apple Vision Pro (and It's Wild)[video]

https://www.youtube.com/watch?v=YtFEbNLb4wo
1•ndr42•8m ago•0 comments

The Sinclair ZX Spectrum White Edition

https://www.heise.de/news/The-Spectrum-White-Edition-Eine-Retro-Legende-bekommt-eine-Neuauflage-1...
1•i_don_t_know•9m ago•1 comments

Inter-Process Remote Execution: Low-latency IPC/RPC using merged address spaces

https://libriscv.no/assets/files/Emulator_remote_execution_using_merged_address_spaces-4-6ad2a2b8...
1•ingve•10m ago•0 comments

UK Biobank health data listed for sale in China, government confirms

https://www.bbc.co.uk/news/articles/cpvxgl3n138o
2•mellosouls•12m ago•0 comments

LLM as Judge: Reproducible Evaluation for LLM Systems

https://nemorize.com/roadmaps/llm-as-judge-reproducible-evaluation-for-llm-systems
1•reverseblade2•13m ago•0 comments

The Guide to Claude Opus 4.7

https://www.productcompass.pm/p/claude-opus-4-7-guide
1•Anon84•14m ago•0 comments

French weather service alerts police after suspicious Polymarket bets

https://www.ft.com/content/89be7df3-b7b8-4b4a-8b88-e24e877b439d
3•chrisaycock•15m ago•0 comments

Show HN: Token Saving Tinyscreenshot Skill

https://github.com/franzenzenhofer/tinyscreenshot
1•franze•16m ago•0 comments

AI BPR: The Day We Stopped Asking "What's Your Problem?"

https://aws.amazon.com/jp/blogs/news/ai-driven-business-process-re-engineering/
1•icoxfog417•16m ago•0 comments

What Have We Dumped on the Moon?

https://hackaday.com/2026/04/22/what-have-we-dumped-on-the-moon/
2•pkaeding•18m ago•0 comments

Show HN: Pokemon Roulette – Random Team Generator for Nuzlocke Runs

https://pokemonroulette.com
1•caoq•19m ago•0 comments

Fortran-Based Languages

https://en.wikipedia.org/wiki/Fortran
1•tosh•20m ago•0 comments

Tesla announces HW4 Plus with doubled memory – will HW4 follow HW3 to the grave?

https://electrek.co/2026/04/23/tesla-hw4-plus-upgrade-will-hw4-follow-hw3/
1•breve•20m ago•0 comments

I often think of Jef Raskin's disdain for files and folders

https://galjot.si/death-to-files-and-folders
1•sedovsek•20m ago•0 comments

Show HN: Honker – Postgres NOTIFY/LISTEN Semantics for SQLite

https://github.com/russellromney/honker
8•russellthehippo•21m ago•0 comments

All mechanical music machine making [video]

https://www.youtube.com/watch?v=zVojuK_CXJM
1•hgo•21m ago•0 comments

Blink: An AISearch Engine

https://blink-oi.vercel.app
1•Pascal1997•22m ago•0 comments

Sneaky spam in conversational replies to blog posts

https://shkspr.mobi/blog/2026/04/sneaky-spam-in-conversational-replies-to-blog-posts/
3•ColinWright•24m ago•0 comments

NativeWright – Patchright browser daemon for AI coding agents

https://github.com/lipski-lite/nativewright
1•L10N•25m ago•0 comments

Commenting and Approving Pull Requests

https://www.jakeworth.com/posts/on-commenting-and-approving-pull-requests/
2•jwworth•26m ago•0 comments

The Definitive Guide to Importing Your Cloud Resources into IaC

https://blog.cloudgeni.ai/the-definitive-guide-to-importing-your-cloud-resources-into-iac/
1•davletdz•27m ago•0 comments

Elon Musk's court battle with Sam Altman exposes Silicon Valley secrets

https://www.washingtonpost.com/technology/2026/04/23/musk-altman-lawsuit-trial-openai/
1•ot•28m ago•0 comments

Archaeologists find copy of Homer's Iliad inside ancient Egyptian mummy

https://www.independent.co.uk/news/science/archaeology/mummy-egyptian-homer-iliad-gut-b2962343.html
1•bookofjoe•28m ago•0 comments