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!

What Happened in There? A Tamper-Evident Audit Trail for AI Agents

https://nono.sh/blog/secure-agent-audit
1•decodebytes•37s ago•0 comments

AI and Democracy: Mapping the Intersections

https://carnegieendowment.org/research/2026/01/ai-and-democracy-mapping-the-intersections
1•verybad•1m ago•0 comments

Intentional Amnesia: Why I Wipe My AI Agents' Memories Every 15 Minutes

https://kubestellar.medium.com/intentional-amnesia-why-i-wipe-my-ai-agents-memories-every-15-minu...
1•andan02•4m ago•0 comments

$400 Audemars Piguet Swatch

https://www.swatch.com/en-us/royal-pop.html
1•reconnecting•5m ago•0 comments

O Americano, Outra Vez (By Richard P. Feynman)

https://southerncrossreview.org/81/feynman-brazil.html
1•Michelangelo11•6m ago•0 comments

Tonic is joining the gRPC project

https://luciofranco.com/blog/tonic-joins-grpc/
1•siver_john•8m ago•0 comments

Meta layoffs starting this week stress harsh reality inside Zuckerberg company

https://www.cnbc.com/2026/05/18/metas-layoffs-starting-this-week-underscore-zuckerbergs-ai-realit...
1•1vuio0pswjnm7•9m ago•0 comments

Ask HN: Have I Become a Luddite?

3•holistio•9m ago•0 comments

Understanding the Go Runtime: The Select Statement

https://internals-for-interns.com/posts/go-runtime-select/
1•thunderbong•10m ago•0 comments

PostgreSQL 19 Beta: The Four Features You'll Feel

https://thebuild.com/blog/2026/05/18/postgresql-19-beta-the-four-features-youll-actually-feel/
1•gsky•10m ago•0 comments

Ask HN: Why invoice matching still pain in the ass in 2026?

1•whitemyrat•12m ago•0 comments

Show HN: I reviewed 271 event tech tools and turned the data into a visual story

https://youreventkit.com/event-tech-wrapped/
1•techedlaksh•13m ago•0 comments

Microsoft's Durabletask Package on PyPI Compromised. Mini Shai Hulud

https://www.aikido.dev/blog/durabletask-package-compromised-mini-shai-hulud
2•mjtk•13m ago•0 comments

Graduates are booing pep talks on AI at college commencements

https://www.boston25news.com/news/business/graduates-are-booing/A42H2XSTVQ2ZHHVBCKC3X7P32Y/
3•1vuio0pswjnm7•14m ago•0 comments

Antigravity 2.0

https://antigravity.google/product/antigravity-2
1•Wingy•14m ago•0 comments

What We Talk About When We Talk About the Weather

https://lithub.com/what-we-talk-about-when-we-talk-about-the-weather/
1•gmays•15m ago•0 comments

U.S. Authorities Move to Resolve Gautam Adani's Legal Woes

https://www.law.com/newyorklawjournal/2026/05/18/us-authorities-move-to-resolve-gautam-adanis-leg...
1•1vuio0pswjnm7•16m ago•2 comments

Using WebAssembly SIMD to Fingerprint CPU Models from the Browser

https://blog.azerpas.com/writing/wasm-simd-fingerprinting/
2•azerpas•17m ago•0 comments

Show HN: Bench-Bets – A World Cup Prediction App Built with Nuxt and SQLite

https://bench-bets.com/
1•devopsian•21m ago•0 comments

There Shall Be Cathedrals

https://zachill.substack.com/p/there-shall-be-cathedrals
1•speckx•22m ago•0 comments

Introducing Kiro Web: Build, delegate, and steer right from the browser

https://kiro.dev/blog/introducing-kiro-web/
2•siegers•23m ago•0 comments

Show HN: AgentShield – Stop AI agents from spending money unsupervised

https://agentshieldv2-dashboard-production.up.railway.app/
2•lucarizzo1010•25m ago•1 comments

Gemini Omni

https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-omni/
3•strongpigeon•26m ago•0 comments

Wild Young People

https://asteriskmag.com/issues/14/these-wild-young-people
1•littlexsparkee•26m ago•0 comments

Deciphering the Hashihara Castle Town Map

https://www.obayashi.co.jp/en/kikan_obayashi/detail/kikan_64_project.html
2•1970-01-01•27m ago•0 comments

On Blind, Anxious Tech Workers Get the Lowdown on Layoffs

https://www.nytimes.com/2026/05/19/business/tech-layoffs-blind.html
4•tekdude•27m ago•0 comments

The Iranian Government Filtering Cloud Is Trying to Get Into Mozilla

https://github.com/publicsuffix/list/pull/2917
2•ent101•28m ago•0 comments

Google Changes Its Search Box for the First Time in 25 Years

https://www.nytimes.com/2026/05/19/business/google-seach-bar-ai-gemini.html
2•golfer•28m ago•0 comments

Gemini CLI will stop working from June 18, 2026

https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/
3•primaprashant•28m ago•3 comments

Cat Organ

https://en.wikipedia.org/wiki/Cat_organ
1•petethomas•29m ago•0 comments