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

Comments

zljdanceholic•12mo 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!

Sony Accidentally Created a Camera That Could See Through Clothing

https://commonplacefacts.com/2022/11/30/camera-that-could-see-through-clothing/
1•evo_9•37s ago•0 comments

Aide-Memory – persistent memory for AI coding agents and teams

https://www.aide-memory.dev/blog/launch
1•ameky•40s ago•0 comments

Troubleshooting USB speed issues with Claude Code

https://gjolly.fr/blog/usb-cable-bottleneck/
3•warenhor•3m ago•1 comments

Schooling Has a Meaning Crisis. Paradoxically, AI Can Help

https://betterschooling.in/collection/schooling-has-a-meaning-crisis.-paradoxically-ai-can-help.
1•ChaitanyaSai•6m ago•0 comments

Show HN: Stateful Inference with 99% Token Savings

https://github.com/umbecanessa/neural-ledger-system
1•wasnaga•7m ago•0 comments

The New Tap-In, Tap-Out

https://www.shibaprasadb.com/2026/04/29/tokenmaxxing-tap-in.html
1•shibaprasadb•7m ago•0 comments

Ask HN: Is AI resulting in net revenue gain for non-tech companies?

1•jusonchan81•8m ago•0 comments

Anthropic has overtaken OpenAI on secondary markets

https://twitter.com/pitdesi/status/2049593815749865859
2•malshe•10m ago•2 comments

Ubuntu's AI plans have Linux users looking for a 'kill switch'

https://www.theverge.com/tech/920723/linux-ubuntu-ai-features-ai-kill-switch
2•rolph•11m ago•0 comments

House panels probe Airbnb, Anysphere over use of Chinese AI models

https://www.nextgov.com/artificial-intelligence/2026/04/house-panels-probe-airbnb-anysphere-over-...
6•jethronethro•13m ago•2 comments

Traditional models still outperform AI for extreme weather forecasts

https://www.carbonbrief.org/traditional-models-still-outperform-ai-for-extreme-weather-forecasts/
1•layer8•15m ago•0 comments

Show HN: Reli – a sampling profiler and VM state inspector for PHP

https://github.com/reliforp/reli-prof
1•sji•19m ago•0 comments

Show HN: Exploding Hamsters

https://explodinghamsters.com
2•pompomsheep•20m ago•0 comments

Utilyze measures how efficiently your GPU is doing useful work

https://github.com/systalyze/utilyze
2•nateb2022•22m ago•0 comments

ubuntu.com is down

https://status.canonical.com/
3•scoops_•22m ago•0 comments

Does Prop 13 explain California's relatively lower birth rates?

https://maxmautner.com/2026/04/25/prop13-fertility.html
1•mslate•22m ago•1 comments

The math behind how LLMs are trained and served

https://www.dwarkesh.com/p/reiner-pope
1•gmays•22m ago•0 comments

Does Postgres Scale?

https://www.dbos.dev/blog/benchmarking-workflow-execution-scalability-on-postgres
3•KraftyOne•26m ago•0 comments

Half a Month of Consolation Writing Advice

https://www.astralcodexten.com/p/half-a-month-of-consolation-writing
2•paulpauper•27m ago•0 comments

The 3rd Annual Blog Post Competition, Extravaganza, and Jamboree

https://www.experimental-history.com/p/the-3rd-annual-blog-post-competition
1•paulpauper•28m ago•0 comments

Cook Like an Engineer

https://www.exfatloss.com/p/cook-like-an-engineer
2•paulpauper•28m ago•0 comments

Reading the Book

https://www.natemeyvis.com/on-actually-reading-the-book/
2•jimsojim•28m ago•0 comments

Is Creativity a Young Person's Game?

https://thereader.mitpress.mit.edu/is-creativity-a-young-persons-game/
1•spking•30m ago•0 comments

Picture-in-picture is expanding to more viewers

https://support.google.com/youtube/thread/425771437/picture-in-picture-is-expanding-to-more-viewe...
1•Tomte•31m ago•0 comments

Shipping containerization, born at Port Newark, marks 70 years

https://www.ajot.com/news/shipping-containerization-born-at-port-newark-marks-70-years
2•Tomte•32m ago•0 comments

If Apple makes an iPad Neo, it's all over

https://www.techadvisor.com/article/3128472/if-apple-makes-an-ipad-neo-its-all-over.html
13•ndr42•34m ago•5 comments

VPNs and Residential Proxies Are Used in Abuse

https://ipinfo.io/blog/vpns-residential-proxies-abuse-findings-rsac-2026
1•speckx•34m ago•0 comments

Terminal AI Coding Agents Comparison Table

https://terminaltrove.com/compare/ai-coding-agents/
3•pelcg•36m ago•0 comments

What we learned at YC's AI alumni event: running AI-native companies

https://antonyevans.com/blog/engineering/c068-coo-job-is-building-ai-operating-system/
1•technotony•38m ago•0 comments

The Human Creativity Benchmark – Evaluating Generative AI in Creative Work

https://contralabs.com/research/human-creativity-benchmark
2•0bytematt•38m ago•0 comments