frontpage.
newsnewestaskshowjobs

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!

Nvidia reportedly halts GeForce RTX 5090 production in favor of data center GPUs

https://www.tomshardware.com/pc-components/gpus/nvidia-reportedly-halts-geforce-rtx-5090-producti...
1•elorant•5m ago•0 comments

KubeNPU Per-Pod NPU/GPU Usage on Kubernetes via eBPF

https://github.com/jrzayev/kubenpu
2•rzcavid•10m ago•0 comments

A city-building game in which the city would prefer you didn't

https://housing.over.pizza/
1•JumpCrisscross•10m ago•0 comments

Yet another open source tool to display air quality in Europe and Middle East

https://coperni.azukibeans.dev/places/
1•marcopavanelli•13m ago•0 comments

Kiesel JavaScript Engine v0.4.0

https://linus.dev/posts/kiesel-devlog-15/
1•ErenayDev•14m ago•0 comments

Show HN: prx – Automated PR Reviews in macOS Menu Bar

https://github.com/vs4vijay/prx
1•vs4vijay•14m ago•0 comments

Trump calls for stop to attacks on Russian oil refineries, Zelenskyy replacement

https://www.politico.com/news/2026/10/10/trump-zelenskyy-russia-ukraine-01115841
5•MilnerRoute•15m ago•3 comments

Ario – a bounded agent runtime where a local PASS cannot become global truth

https://zenodo.org/records/23132717
1•SepehrGhanbari•15m ago•0 comments

I am so tired of startups doing worse than me

1•sankde•17m ago•6 comments

Show HN: Tutor, a self-hosted LLM tutor that teaches you your books or docs

https://github.com/demetrius-edelin/tutor
1•edelind•18m ago•0 comments

Oksana Masters: From Chernobyl victim to 24-medal paralympic medalist

https://whyy.org/episodes/oksana-masters-went-from-chernobyl-to-the-paralympic-podium/
1•dxs•20m ago•0 comments

OpenAI's Astra model is shockingly good at robotics

https://www.understandingrobots.org/p/openais-astra-model-is-shockingly
1•gmays•21m ago•0 comments

Cyber Resilience Guide: Zero Trust, AI Security and Ransomware Recovery

https://phpscientist.com/blog/cyber-resilience-implementation-guide-ai-ransomware-zero-trust/
1•senthil_kr•24m ago•0 comments

AI Browser Agents: SEO, Security and Implementation Playbook for 2026

https://phpscientist.com/blog/ai-browser-agents-seo-security-implementation-playbook-2026/
1•senthil_kr•25m ago•0 comments

Try On-Device AI with FM

https://eclecticlight.co/2026/10/10/try-on-device-ai-with-fm/
1•frizlab•25m ago•0 comments

Is AI conscious? Anthropic says 'maybe'

https://www.machinesociety.ai/p/why-anthropic-thinks-claude-might
2•mikelgan•26m ago•0 comments

A domain by any other name

https://kgolubic.com/posts/does-your-top-level-domain-matter/
1•taubek•27m ago•0 comments

Ask HN: MS Outlook login without an extra email address

2•narevent•27m ago•0 comments

Investigating unintended model actions in our evaluations and internal use

https://www.anthropic.com/research/investigating-unintended-model-actions
2•based2•30m ago•0 comments

Show HN: I made Leisure Suit Larry 1 multiplayer co-op

https://matrix.davor.se/lsl/
1•davorb•31m ago•0 comments

Cloudflare acquires Deno to improve its Workers programming model

https://techcrunch.com/2026/10/10/cloudflare-acquires-deno-to-improve-its-workers-programming-model/
1•sbulaev•35m ago•0 comments

Tehas: A Pi Software Factory

https://tehas.app/
1•velmu•39m ago•0 comments

Niall Ferguson and Balaji on Reinventing Education [video]

https://www.youtube.com/watch?v=QYhM0w5EFR0
2•simonebrunozzi•39m ago•0 comments

Show HN: Pale Engine – a Doom-like game created by Opus 5.5

https://triptych.github.io/web-games-andrew/game-054/index.html
1•triptych•41m ago•0 comments

Rolling Release Distros Superior to LTS in the Patch-Heavy GenAI Era?

https://www.phoronix.com/news/Rolling-Releases-GenAI-Era
1•dxs•41m ago•0 comments

50MB operating system can resurrect your old PC

https://www.makeuseof.com/this-50mb-operating-system-can-resurrect-your-old-pc/
4•makerdiety•42m ago•0 comments

Tools for Thought

https://cel.cs.brown.edu/csci-1377-s26/
3•smartmic•47m ago•0 comments

The state of AI-assisted reverse-engineering of Apple Macs

https://github.com/aurora-silicon/linux/discussions/70
2•cromka•50m ago•0 comments

Integrated Circuits, AI, and Wallabies

https://walkingtheworld.substack.com/p/integrated-circuits-ai-and-wallabies
1•dxs•50m ago•0 comments

Build Fast, Ship Slow

https://viaknox.com/blog/fast-to-build-slow-to-ship
1•pjpoulose•51m ago•0 comments