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!

5× faster fast_blur in image-rs

https://apas.tel/blog/optimizing-image-rs-blur
1•fanf2•2m ago•0 comments

Graphic Organizer for Concepts and Idea Mapping

https://www.wps.com/tools/cuadro-sinoptico/
1•basil-ajmal•2m ago•0 comments

Show HN: Time Blocking vs. To-Do Lists: They Solve Different Problems

1•sergey_commit•4m ago•0 comments

One Problem, Four Languages, Two Paradigms (2021)

https://www.ashermancinelli.com/csblog/2021-10-19-Leetcode-And-Distributed-Computing.html?highlig...
1•tosh•6m ago•0 comments

Show HN: How-to-train-your-GPT. Every line commented

https://github.com/raiyanyahya/how-to-train-your-gpt
2•mateenah•7m ago•0 comments

Robot Dogs Are a Security Nightmare – Benn Jordan [video]

https://www.youtube.com/watch?v=lA8WuXDXfcI
1•lionkor•9m ago•0 comments

Where to buy a non-Apple, non-Google smartphone

https://www.theregister.com/on-prem/2026/05/01/where-to-buy-a-non-apple-non-google-smartphone/521...
1•_____k•10m ago•0 comments

MLIR

https://mlir.llvm.org
1•tosh•12m ago•0 comments

Someone Shared a Real Monet Painting as AI and Asked for Critiques

https://petapixel.com/2026/05/14/someone-shared-a-real-monet-painting-as-ai-and-asked-for-critiques/
3•ZeljkoS•13m ago•1 comments

Capital Must Seek Delight

https://contraptions.venkateshrao.com/p/capital-must-seek-delight
1•jger15•16m ago•0 comments

Panopticon

https://en.wikipedia.org/wiki/Panopticon
1•soupspaces•17m ago•0 comments

We've made the world too complicated

https://user8.bearblog.dev/the-world-is-too-complicated/
2•James72689•19m ago•2 comments

Ghq: Remote repository management made easy

https://github.com/x-motemen/ghq
1•unvalley•19m ago•0 comments

We Pay Salesforce 83% More Than Last Year. But Stopped Using Notion

https://www.saastr.com/why-we-pay-salesforce-83-more-than-last-year-but-stopped-using-notion-enti...
1•tablet•20m ago•1 comments

ToolEasy – Free Online Tools for Everyday Tasks

https://tooleasy.org/
1•yimiqidage001•26m ago•0 comments

Show HN: Orchid Mantis – PoC Zero Knowledge Proof of Exploit (ZKPoX) Framework

https://github.com/unprovable/orchidmantis
1•unprovable•27m ago•0 comments

Note-taking software,Novel ideas

1•huaqing•32m ago•0 comments

Meet the Sad Wives of AI

https://www.wired.com/story/meet-the-sad-wives-of-ai/
3•pypt•40m ago•3 comments

Are We XLibre Yet? · X11Libre/Xserver Wiki

https://github.com/X11Libre/xserver/wiki/Are-We-XLibre-Yet%3F
1•xbmcuser•40m ago•0 comments

Six Million Selections Later: How the DMA Is Giving People Browser Choice

https://blog.mozilla.org/netpolicy/2026/05/11/six-million-selections-later-how-the-dma-is-giving-...
2•naves•44m ago•0 comments

Making Deep Learning Go Brrrr from First Principles

https://horace.io/brrr_intro.html
1•tosh•44m ago•0 comments

Electronics engineer – neurotech – London (hybrid/remote)

https://netholabs.com/electronics_engineer_812
1•catubc•48m ago•1 comments

Why Stanford Says AI Agents Become Marxist

https://www.flyingpenguin.com/why-stanford-says-ai-agents-become-marxist/
3•feigewalnuss•53m ago•1 comments

Palestinians forced to demolish own homes to make way for Israeli theme park

https://www.theguardian.com/world/2026/may/16/palestinians-demolish-family-homes-jerusalem-kings-...
4•hebelehubele•55m ago•0 comments

A message from kurdistan – my love for China and DeepSeek

https://old.reddit.com/r/DeepSeek/comments/1tadbm6/a_message_from_kurdistan_my_love_for_china_and/
1•chewz•57m ago•0 comments

Your VPS Is a Sitting Duck

https://github.com/rockballslab/vps-secure
2•rockballslab•59m ago•0 comments

Is Bitwarden Getting Enshitified?

https://www.fastcompany.com/91542655/bitwarden-scrubs-always-free-and-inclusion-values-from-its-w...
2•bobek•1h ago•1 comments

Experience Layer for AI

https://cortexdb.ai/blog/v1
1•prmalik•1h ago•0 comments

Pretext – pure-arithmetic text measurement for proportional fonts

https://somnai-dreams.github.io/pretext-demos/
2•Teever•1h ago•0 comments

TunnelForge, a L2TP client for Android 12

https://github.com/evokelektrique/tunnel-forge
1•femdiya•1h ago•0 comments