frontpage.
newsnewestaskshowjobs

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!

More fun with high-speed rail in the UK

https://www.theguardian.com/uk-news/2026/jun/29/pause-hs2-reset-until-you-are-confident-it-can-be...
1•zabzonk•3m ago•0 comments

Sway typeahead command palette for the memory constrained

https://www.nilcoast.com/blog/sway-command-palette
1•be_erik•16m ago•0 comments

LLM Optimization

https://www.youtube.com/watch?v=9tvJ_GYJA-o
1•kidbomb•21m ago•0 comments

You might not need a service worker

https://www.jayfreestone.com/writing/you-might-not-need-a-service-worker/
2•Fudgel•25m ago•0 comments

Micron Suggests Apple Helped Cause Memory Price Crisis

https://www.macrumors.com/2026/06/26/micron-suggests-apple-helped-cause-memory-crisis/
7•mgh2•25m ago•1 comments

Reacting to Two French Entrepreneurs Who Built a $100K SaaS

https://thenewassociationwebmasters.blogspot.com/2026/06/from-20000-to-100000month-raw.html
1•odilelof•26m ago•0 comments

China cracks down on rule-bending offshore investments

https://www.economist.com/finance-and-economics/2026/06/28/china-cracks-down-on-rule-bending-offs...
4•andsoitis•30m ago•2 comments

The Truth about Space Data Centers [video]

https://www.youtube.com/watch?v=_qpdUNMt2yg
3•tambourine_man•36m ago•0 comments

Why can't India's government build a decent website?

https://www.economist.com/asia/2026/06/28/why-cant-indias-government-build-a-decent-website
6•andsoitis•40m ago•3 comments

A faster bump allocator for rust

https://owen.cafe/posts/stumpalo/
3•birdculture•47m ago•0 comments

AI 'exuberance' risks ending in lengthy investment bust

https://www.ft.com/content/e81ce414-e4bd-4e8c-bac7-94f7bf17def4
4•petethomas•55m ago•1 comments

Show HN: Image2JXL – a native macOS JPEG XL converter

https://old.reddit.com/r/givebest/comments/1ueh3v4/i_built_image2jxl_a_native_macos_app_for_local/
3•givebest•1h ago•0 comments

Self-learning skill for Claude: let the agent capture its own hard-won patterns

https://github.com/Kulaxyz/self-learning-skills
3•kulaxyz•1h ago•0 comments

Show HN: A site that emails you the day your Bitcoin stack hits $1M

https://amimillionaire.com/
2•pro_methe5•1h ago•2 comments

Show HN: Calybris Core, a deterministic audit engine for decisions in Rust

https://github.com/emirhuseynrmx/calybris-core
3•emirhuseyininci•1h ago•0 comments

Show HN: wavecat – a fully local personal agent that watches your screen

https://wavecat.ai/
3•sdkpanda•1h ago•0 comments

Better Images of AI

https://betterimagesofai.org/
3•Curiositry•1h ago•0 comments

We need tech news sources which exclude AI

34•botfriendsarent•1h ago•8 comments

AI Agent Credential Crisis: Six Months of Incidents

https://devfortress.net/blog/semi-annual-2026
3•arian_•1h ago•0 comments

Stanford's Hoover Inst: "The Wealth Tax: Recipe for Economic Disaster"Lionaire [video]

https://www.youtube.com/watch?v=x6k4W5Qzg8U
2•stmw•1h ago•1 comments

Mux – A tmux overlay for managing Claude Code sessions

https://github.com/fashton28/mux
3•fashton28•1h ago•0 comments

A Fresh Equation Born from Hacker News Chaos

https://zenodo.org/records/21015132
3•GerbaitedLol•1h ago•0 comments

The Grim and the Dark: Jon Heder's journey into the world of Grimdark art [video]

https://www.youtube.com/watch?v=SBJefwNkLqo
2•andystanton•1h ago•0 comments

Company Cleaning Up the Reflecting Pool Says It Has 'Nothing to Hide'

https://www.wsj.com/us-news/lincoln-memorial-reflecting-pool-california-greenwater-services-729be960
5•petethomas•1h ago•0 comments

AI Agent Triggers Nuclear Strike After Getting Outmaneuvered in Civilization VI

https://decrypt.co/371877/ai-agent-nuclear-strike-civilization-vi-benchmark
7•Khaine•1h ago•1 comments

On cigarettes

https://funnelfiasco.com/blog/2026/06/28/on-cigarettes/
30•aendruk•2h ago•29 comments

Side-Stepping the Secretary Problem

https://www.evalapply.org/posts/side-step-secretary-problem-hiring/index.html
5•Curiositry•2h ago•0 comments

The Usefulness of AI Agents

https://erikjohannes.no/posts/20260408-on-the-usefulness-of-ai-agents/index.html
2•Curiositry•2h ago•0 comments

/Dev/Notion

https://www.notion.com/product/dev
5•handfuloflight•2h ago•0 comments

AI glasses are aiding cheating in exams. Test-obsessed Asia is ground zero

https://www.cnn.com/2026/06/26/asia/ai-glasses-cheating-exams-intl-hnk
4•pseudolus•2h ago•0 comments