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!

Using AI for Just 10 Minutes Might Make You Lazy and Dumb, Study Shows

https://www.wired.com/story/using-ai-negative-impact-thinking-problem-solving-study/
1•gnabgib•32s ago•0 comments

Show HN: WordPress WebSocket Relay in Rust with Yjs CRDT Provider for WP 7.0

https://wpsignal.io/
1•jaredrethman•1m ago•0 comments

Show HN: HeatSpectra: Realtime 3D Surface Heat Simulation

https://github.com/tsun3doku/HeatSpectra
1•tsun3doku•6m ago•0 comments

An Oura ring starting at just $1 Welcome to Churu

https://churu.org
1•reieicucv•7m ago•0 comments

Roche to Buy PathAI for Up to $1.05B to Bolster AI Diagnostics Tools

https://www.wsj.com/business/deals/roche-to-buy-pathai-for-up-to-1-05-billion-to-bolster-ai-diagn...
1•SaaSasaurus•8m ago•0 comments

AniTroves – An anime database with a custom LLM-based discovery hub

1•anitroves•11m ago•0 comments

YouTube aspect ratios – no way to fix it?

1•mr-pink•11m ago•1 comments

Show HN: Agentctl, a local control plane for coding agents

https://github.com/chocks/agentctl
1•chocks•14m ago•0 comments

I made a simple, free family tree app that handled my 300 person, 5 gen. family

https://www.familytreeiq.com
1•mknweb•14m ago•1 comments

Upper bound for AI output is based on your taste/exposure

1•yehiaabdelm•23m ago•0 comments

Best Buy mandating four days in office for headquarters employees

https://www.startribune.com/best-buy-hybrid-four-days-change-shift-mandate-in-office/601828733
2•bjhess•23m ago•1 comments

I recently started a small experimental project recreating Star Fox 64

https://foxremake.com/star-fox-64-remake/
2•951560368•31m ago•3 comments

Proposed Revised Mailing Standards for Firearms

https://www.federalregister.gov/documents/2026/04/02/2026-06376/revised-mailing-standards-for-fir...
2•petethomas•33m ago•0 comments

AI Contributions to CPAN: The Copyright Question

https://blogs.perl.org/users/todd_rinaldo/2026/04/ai-contributions-to-cpan-the-copyright-question...
2•DASD•33m ago•0 comments

Mathematics Subject Classification (2020)

https://mathscinet.ams.org/mathscinet/msc/msc2020.html
2•nill0•38m ago•0 comments

Show HN: NyaayWatch – Observability layer for the Indian judiciary

https://nyaaywatch.in
2•Rudraksh06•39m ago•0 comments

The Privacy of Apple Location Services and Analytics

https://duti.dev/randoms/wip-location-services/
5•Cider9986•41m ago•0 comments

Jakarta airport's official site blocks international visitors, so I built my own

https://blog.terrydjony.com/i-built-a-better-cgk-airport-website/
2•terryds•41m ago•0 comments

A Dangerous New Attack on Press Freedom

https://www.theatlantic.com/ideas/2026/05/kash-patel-fitzpatrick-fbi-investigation/687077/
9•petethomas•56m ago•3 comments

Net May 15 Starship • Flight 12

https://spaceflightnow.com/launch-schedule/
3•bookmtn•56m ago•1 comments

AWS EC2 outage in use1-az4 (us-east-1)

https://health.aws.amazon.com/health/status?t=2026-05-07
18•philip1209•58m ago•5 comments

6 years of CS2 skin market data, indexed S&P-style (open methodology)

https://skintrackers.com/en
1•Jorgincs•1h ago•2 comments

The Long Journey from the Strait of Hormuz to the Gas Tank

https://www.nytimes.com/interactive/2026/05/07/world/middleeast/oil-tanker-strait-hormuz-iran-war...
3•voxadam•1h ago•1 comments

Yarbo Nat in My Backyard

https://github.com/Bin4ry/yarbo-nat-in-my-back-yard
3•greedo•1h ago•0 comments

UBC, SFU among universities affected by Canvas software cyber breach

https://www.cbc.ca/news/canada/british-columbia/ubc-sfu-canvas-cyber-breach-9.7191972
1•uladzislau•1h ago•0 comments

GPT-5.5 Price Increase: What It Costs

https://openrouter.ai/announcements/gpt55-cost-analysis
2•gmays•1h ago•0 comments

OpenAI end of lifes fine-tuning

https://developers.openai.com/api/docs/deprecations
2•dandiep•1h ago•1 comments

Pentagon CTO demonstrates Palantir's Maven system, used for military operations [video]

https://www.youtube.com/watch?v=Q5uVckUvGcQ
4•LostMyLogin•1h ago•0 comments

Netflix tests its own AI-powered voice search

https://www.lowpass.cc/p/ask-netflix-ai-voice-search
1•andsoitis•1h ago•0 comments

The IDE Should Become an Operating System for AI

https://avkcode.github.io/blog/ide-operating-system-ai.html
2•akrylov•1h ago•0 comments