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

Comments

zljdanceholic•10mo 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: Spectator, a Programming Language for Cybersecurity

1•CzaxTanmay•2m ago•0 comments

Show HN: Literalizer – convert JSON and YAML into native

https://github.com/adamtheturtle/literalizer
1•adamtheturtle•2m ago•0 comments

Schedule Claude Code tasks on the web

https://code.claude.com/docs/en/web-scheduled-tasks
5•iBelieve•14m ago•0 comments

How Natural Tradeoff and Failure Components?

https://www.astralcodexten.com/p/how-natural-tradeoff-and-failure
2•paulpauper•16m ago•0 comments

Implementing YOLOv8 Object Detection with OpenCV in Rust Using ONNX Models

https://linzichun.com/posts/rust-opencv-onnx-yolov8-detect/
2•auraham•18m ago•0 comments

Vibe Coding Ships Broken

https://wire.wise-relations.com/news/2026-03-27-vibe-coding/
2•chelm•19m ago•0 comments

Ohm's Peg-to-WASM Compiler

https://ohmjs.org/blog/2026/03/12/peg-to-wasm
1•azhenley•21m ago•0 comments

Show HN: Superfast – Cognitive Memory Graphs for Enterprise AI Agents

1•prabhatkr•23m ago•0 comments

Cross-platform desktop app with YOLOv8, Tauri, Rust, and SvelteKit

https://linzichun.com/posts/tauri-image-desktop-app-rust-sveltekit/
1•auraham•25m ago•0 comments

Goedel-Code-Prover: Hierarchical Proof Search for Open SotA Code Verification

https://goedelcodeprover.github.io/
2•matt_d•26m ago•0 comments

K8s security with graph-based attack paths (like Wiz, but affordable)

https://juliet.sh/
1•rodrickbrown•28m ago•0 comments

ABOM – Map your GitHub Actions supply chain (built after the Trivy compromise)

https://github.com/JulietSecurity/abom
1•rodrickbrown•33m ago•0 comments

What if you codebase was living all along and you were a surgeon

https://twitter.com/rs545837/status/2037382115457933720
1•as290608•34m ago•0 comments

JoyConf: A live emoji reaction app for presentations

https://tracyatteberry.com/posts/joyconf/
1•sea-gold•38m ago•0 comments

Ship with Claude – Free Starter Pack (Maintainable AI-Assisted Projects)

https://panavy.gumroad.com/l/skmaha
1•panavm•40m ago•1 comments

Developers are faster than ever. So why isn't anything shipping?

https://www.linkedin.com/pulse/bottleneck-cascade-timur-fatykhov-nm4ce
1•tfatykhov•42m ago•0 comments

Systemd-free antiX 26: Debian 13, in bonsai form

https://www.theregister.com/2026/03/24/antix_26_bonsai_trixie/
2•thunderbong•42m ago•0 comments

Ask HN: How has your DevOps/SRE changed since AI was adopted in your company?

1•paperplaneflyr•46m ago•1 comments

Show HN: Sylve – A management plane for FreeBSD (ZFS, VMs, jails, clustering)

https://sylve.io
2•arch1e•48m ago•0 comments

Does a hit song really need 9 writers? (2019)

https://www.bbc.com/news/entertainment-arts-48395059
1•1659447091•51m ago•0 comments

If you are a published author you may be entitled to compensation

https://www.anthropiccopyrightsettlement.com
2•october8140•55m ago•0 comments

Tom paxton – lyndon Johnson told the nation [video]

https://www.youtube.com/watch?v=uXcG3tXYNF8
2•marysminefnuf•1h ago•0 comments

OpenCodex – A developer hub to showcase projects and profiles

https://opencodex.app
1•barrazadev•1h ago•1 comments

Sign Errors in "The Four Laws of Black Hole Mechanics"

https://arxiv.org/abs/2603.25171
2•mellosouls•1h ago•0 comments

Show HN: Agent Kernel – 3 MD files that turn any AI into a self-aware Agent

https://agent-kernel.dev/?release=v1.23.0
2•obilgic•1h ago•0 comments

Show HN: AgentGuard – An open-source firewall to secure autonomous AI agents

https://github.com/Caua-ferraz/AgentGuard
2•millimercure•1h ago•0 comments

Why the Minnesota Starvation Experiment Doesn't Generalize to Modern Dieting

https://greyenlightenment.com/2026/03/21/why-the-minnesota-starvation-experiment-doesnt-generaliz...
2•paulpauper•1h ago•0 comments

Why most AI projects fail after the demo works

https://thenewstack.io/ai-demo-to-production/
1•msolujic•1h ago•0 comments

Scale AI X Prediction Markets

https://reppo.ai/
1•rgvrmdya•1h ago•1 comments

What's the Deal with Forward Deployed Engineers?

1•rubyrenegade•1h ago•2 comments