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!

The HArc Stack – A Web Stack Built on Raku

https://harcstack.org
1•TheWiggles•2m ago•0 comments

Show HN: Apc-CLI – sync AI memory across Claude Code, Cursor, Copilot

https://github.com/FZ2000/apc-cli
1•FZ2000•5m ago•0 comments

Ask HN: Building on-device call screening–no cloud, just local ML. Realistic?"

1•dorjedev•6m ago•0 comments

"Warn about PyPy being unmaintained"

https://github.com/astral-sh/uv/pull/17643
1•networked•7m ago•0 comments

New Strides Made on Deceptively Simple 'Lonely Runner' Problem

https://www.quantamagazine.org/new-strides-made-on-deceptively-simple-lonely-runner-problem-20260...
1•tzury•8m ago•0 comments

Don't bet that The Pentagon – or Anthropic – is acting in the public interest

https://www.theguardian.com/commentisfree/2026/mar/03/anthropic-openai-pentagon-ethics
1•gnabgib•8m ago•0 comments

Peter Pan (1928)

https://www.gutenberg.org/cache/epub/78131/pg78131-images.html
1•petethomas•8m ago•0 comments

Local News

https://news.minir.ai/
1•MRviber•9m ago•1 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•Wjh555777•11m ago•0 comments

Chinese Open Source: A Definitive History

https://interconnect.substack.com/p/chinese-open-source-a-definitive
1•mountainview•12m ago•0 comments

The Hive Mind

https://jacquesmattheij.com/the-hive-mind/
1•BatFastard•14m ago•1 comments

Voice Agents Latency

https://substack.com/home/post/p-189696660
2•agentropy•16m ago•0 comments

Roblox Is Minting Teen Millionaires

https://www.bloomberg.com/news/articles/2026-03-06/roblox-s-teen-millionaires-are-disrupting-the-...
3•petethomas•22m ago•0 comments

Secure Snake Home (SSH)

https://snake.eieio.games
1•fratellobigio•22m ago•1 comments

How AI Is Turbocharging the War in Iran

https://www.wsj.com/tech/ai/how-ai-is-turbocharging-the-war-in-iran-aca59002
1•JumpCrisscross•27m ago•0 comments

Anthropic and The Pentagon

https://www.schneier.com/blog/archives/2026/03/anthropic-and-the-pentagon.htmll
1•benwen•28m ago•2 comments

British Columbia makes daylight saving time permanent

https://text.npr.org/nx-s1-5741076
2•bvanderveen•28m ago•1 comments

Will the U.S. confirm that aliens exist before 2027?

https://kalshi.com/markets/kxaliens/aliens/KXALIENS-27
1•pinkmuffinere•30m ago•0 comments

Metrics Make Us Miserable

https://www.derekthompson.org/p/how-metrics-make-us-miserable
1•gmays•31m ago•0 comments

Best Music Distributors in 2026

1•anonyxbiz•37m ago•0 comments

Pushing and Pulling: Three Reactivity Algorithms

https://jonathan-frere.com/posts/reactivity-algorithms/
1•frogulis•44m ago•0 comments

Science Fiction Is Dying. Long Live Post Sci-Fi?

https://www.typebarmagazine.com/science-fiction-is-dying-long-live-post-sci-fi/
9•KittenInABox•44m ago•0 comments

On the road to C4 rice: Advances and perspectives

https://onlinelibrary.wiley.com/doi/full/10.1111/tpj.14562
1•lawrenceyan•49m ago•0 comments

The Intelligence Monopoly Is Over

https://www.spatialintelligence.ai/p/the-intelligence-monopoly-is-over
1•beauzero•49m ago•1 comments

Why can't you just ask AI to find you a trading edge? You can now

https://github.com/augiemazza/varrd
1•varrd1•50m ago•2 comments

Cloud VM benchmarks 2026: performance/price for 44 VM types over 7 providers

https://devblog.ecuadors.net/cloud-vm-benchmarks-2026-performance-price-1i1m.html
23•dkechag•57m ago•1 comments

Human brain cells on a chip learned to play Doom in a week

https://www.newscientist.com/article/2517389-human-brain-cells-on-a-chip-learned-to-play-doom-in-...
3•doener•1h ago•0 comments

The San Francisco lunch that launched Silicon Valley 70 years ago

https://davidlaws.medium.com/the-san-francisco-lunch-that-launched-silicon-valley-70-years-ago-3b...
2•DavidLawsCHM•1h ago•0 comments

NexusMods (game modding application for Linux) code repo is now read-only

https://github.com/Nexus-Mods/NexusMods.App
1•wingmanjd•1h ago•1 comments

ClawPurse Micropayment Ecosystem

https://clawpurse.ai/
3•TheTikiCow•1h ago•0 comments