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!

Ironies of Automation

https://en.wikipedia.org/wiki/Ironies_of_Automation
1•py4•1m ago•0 comments

MCPs, CLIs, and skills: when to use what?

https://jngiam.bearblog.dev/mcps-clis-and-skills-when-to-use-what/
1•ankit84•1m ago•0 comments

Ukraine's $1k interceptor drones The Pentagon wants to buy

https://www.militarytimes.com/news/pentagon-congress/2026/03/11/these-are-ukraines-1000-intercept...
1•mizzao•7m ago•0 comments

Global Maritime Chokepoints

https://ryanshook.org/chokepoints/
1•RyanShook•9m ago•0 comments

VeryAI raises $10M to build palm-scan identity system on Solana

https://cointelegraph.com/news/polychain-backs-veryai-s-10m-raise-to-build-palm-scan-identity-sys...
1•adrianwaj•12m ago•0 comments

Vite 8.0 Is Out

https://vite.dev/blog/announcing-vite8
4•kothariji•15m ago•0 comments

Some Simple Economics of AGI

https://arxiv.org/abs/2602.20946
1•aray07•18m ago•0 comments

ScraperNode – Scraping API for LinkedIn, Instagram, TikTok, and More

https://scrapernode.com
1•emery_p•18m ago•0 comments

Hugging Face Storage Buckets Storage Bucket

https://huggingface.co/storage
1•tamnd•19m ago•0 comments

2011-2026 time lapse: rebuilding after Tōhoku earthquake and tsunami [video]

https://www.youtube.com/watch?v=ZE-JgL_UUkI
1•kazinator•20m ago•1 comments

Ask HN: Does anyone here use Discord as their work chat tool?

2•Poomba•27m ago•3 comments

AI-generated passwords aren't random, it just looks that way

https://www.theregister.com/2026/02/18/generating_passwords_with_llms/
1•pabs3•28m ago•1 comments

Show HN: ClawRemove – Inspect and clean AI agent environments

https://github.com/tianrking/ClawRemove
1•tianrking•28m ago•1 comments

A Multilingual, IRGC-affiliated Influence Operation on X, Instagram, and Bluesky

https://open.clemson.edu/cgi/viewcontent.cgi?article=1009&context=mfh_reports
1•longislandguido•30m ago•0 comments

Who Will Remember Us When the Servers Go Dark?

https://newdesigncongress.org/en/pub/who-will-remember-us-when-the-servers-go-dark/
2•pabs3•34m ago•0 comments

Native CLI scaffolds consistently outper-form OpenCode when using the same model

https://arxiv.org/abs/2603.08640
1•xdotli•34m ago•1 comments

Show HN: Droeftoeter, a Terminal Coding Toy

https://github.com/whtspc/droeftoeter
1•whtspc64•35m ago•0 comments

Show HN: Freelancer Profitability Calculator

https://soloboss.app/freelancer-profitability-calculator
1•SoloBossFounder•37m ago•0 comments

Faulty urine tests may have inflated alcohol levels in California criminal cases

https://www.sfchronicle.com/bayarea/article/urine-tests-alcohol-level-faulty-california-22073795.php
3•littlexsparkee•41m ago•0 comments

Important Updates to GitHub Copilot for Students

https://github.com/orgs/community/discussions/189268
1•angst•42m ago•1 comments

From Optician to $62k MRR in 3 Months: AI Code Editors Reshaping SaaS

2•jackcofounder•48m ago•0 comments

CLI-Anything

https://github.com/HKUDS/CLI-Anything
4•tardismechanic•51m ago•0 comments

We compare model quality in Cursor

https://cursor.com/blog/cursorbench
2•xdotli•54m ago•0 comments

An Overview of the Amoeba Distributed Operating System – Tanenbaum

https://dl.acm.org/doi/pdf/10.1145/1041500.1041502
1•ivanbelenky•56m ago•0 comments

T4a – Terminals for Agents

https://github.com/denoland/t4a
1•garrettjoecox•58m ago•0 comments

Fast non-Chromium browser for AI agents: LightPanda

https://lightpanda.io
1•daniel_iversen•1h ago•0 comments

Kobalt Tools

https://kbalt.com/
2•Throwthrowbob•1h ago•1 comments

Give Your AI Agent a Live Status Page

https://clawjetty.com/###
1•andes314•1h ago•2 comments

Enabling Media Router by default undermines Brave's privacy claims

2•noguff•1h ago•0 comments

Rackup, a Toolchain Manager for Racket

https://samth.github.io/rackup/
2•samth•1h ago•0 comments