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: PureMark – JSON, Base64, Diff tools that never send data to a server

https://json.puremark.app
1•tommy_worklab•56s ago•0 comments

Show HN: An OTLP observability plugin for OpenClaw AI agents in Grafana

https://github.com/awsome-o/grafana-lens
1•AwesomeO3000•1m ago•1 comments

A simplified PostgreSQL-backed ordered message queue with webhook delivery

https://github.com/alaminopu/pypgmq
1•alaminopu•3m ago•0 comments

The Mirror and the Gift

https://www.robpanico.com/articles/display/?entry_short=the-mirror-and-the-gift
1•retrocog•5m ago•1 comments

CERN upgrade to LHCb experiment threatened by UK funding cuts

https://physicsworld.com/a/cern-upgrade-to-lhcb-experiment-threatened-by-uk-funding-cuts/
1•elashri•5m ago•0 comments

Poet-X Enables Billion-Parameter LLM Training on Single H100 GPU

https://www.simplenews.ai/news/poet-x-enables-billion-parameter-llm-training-on-single-h100-gpu-ktw3
1•goldkey•7m ago•0 comments

Show HN: A simple habit tracker focused on clarity and consistency

https://play.google.com/store/apps/details?id=com.shadowstudios.habitonlinetracker&hl=en_US
1•Belsonsan•7m ago•0 comments

Show HN: Kaeso: an OAuth hub for AI agents

1•devinoldenburg•8m ago•0 comments

Show HN: WebBridge turns any website into MCP tools by recording browser traffic

https://github.com/jalabulajunx/WebBridge
2•nonstopnonsense•9m ago•0 comments

You were born without an account

https://simplex.chat/why/
1•Cider9986•10m ago•0 comments

Crowning the protein that makes jellyfish glow green as a model

https://phys.org/news/2026-02-crowning-protein-jellyfish-green-scientists.html
1•PaulHoule•12m ago•0 comments

Show HN: MultiPowerAI – Trust and accountability infrastructure for AI agents

https://multipowerai-trust.vercel.app
1•rogergrubb•14m ago•0 comments

Java beats Go, Python and Node.js in MCP server benchmarks

https://www.tmdevlab.com/mcp-server-performance-benchmark.html
1•lprimak•14m ago•0 comments

Show HN: Single-header C++ libraries for LLM APIs – zero deps beyond libcurl

1•Shmungus•15m ago•0 comments

Show HN: OpenGuard

https://openguard.sh
1•everlier•16m ago•0 comments

I built a tool to transcribe podcasts after struggling to learn languages

1•marstyl•17m ago•0 comments

Why Language Models Hallucinate (2025)

https://arxiv.org/abs/2509.04664
1•doener•17m ago•0 comments

Ask HN: What Are Your Biggest Career Regrets?

2•karakoram•17m ago•1 comments

There Was a Time before Mathematica (2013)

https://writings.stephenwolfram.com/2013/06/there-was-a-time-before-mathematica/
2•masfuerte•19m ago•1 comments

Russian Ransomware Administrator Pleads Guilty to Wire Fraud Conspiracy

https://www.justice.gov/usao-md/pr/russian-ransomware-administrator-pleads-guilty-wire-fraud-cons...
2•737min•21m ago•1 comments

Show HN: Rust-First L3 Limit Order Book Backtesting Engine with Python Bindings

https://github.com/chasemetoyer/Backtesting-Engine
1•chasemetoyer•21m ago•0 comments

Show HN: Ovumcy – self-hosted menstrual cycle tracker

https://github.com/terraincognita07/ovumcy
1•terrain07•22m ago•0 comments

Show HN: Sheila, an AI agent that replaced our accounting flow

https://soapbox.pub/blog/announcing-sheila/
4•knewter•30m ago•2 comments

Qualcomm CEO: 'Resistance Is Futile' as 6G Mobile Revolution Approaches

https://fortune.com/2026/03/03/qualcomm-ceo-resistance-is-futile-6g-mobile-revolution-approaches/
2•m463•31m ago•1 comments

Show HN: NeoNetrek – modernizing the internet's first team game (1988)

https://neonetrek.com
1•yuriksan•33m ago•0 comments

Show HN: Natural language queries for Prometheus Kafka metrics (StreamLens)

https://github.com/muralibasani/streamlens
1•muralibasani•33m ago•0 comments

Satellite firm pauses imagery after revealing Iran's attacks on US bases

https://arstechnica.com/space/2026/03/satellite-firm-pauses-imagery-after-revealing-irans-attacks...
1•consumer451•35m ago•0 comments

China Suspected in Breach of FBI Surveillance Network

https://www.wsj.com/politics/national-security/china-suspected-in-breach-of-fbi-surveillance-netw...
5•JumpCrisscross•35m ago•1 comments

Show HN: I created list of directories (1000) to create free backlinks

https://kitful.ai/directories
1•eashish93•37m ago•0 comments

Fishing crews in the Atlantic keep accidentally dredging up chemical weapons

https://arstechnica.com/health/2026/03/fishing-crews-in-the-atlantic-keep-accidentally-dredging-u...
3•jnord•39m ago•0 comments