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!

Dyson's $500 Leaking CameraJet Toothbrush Is Back, and We Now Know Why It Failed

https://www.wired.com/story/dyson-leaking-camerajet-toothbrush-is-back-and-we-now-know-why-it-fai...
1•bookofjoe•2m ago•1 comments

The After Math

https://peppaking8.github.io/the-after-math/
1•markus_zhang•3m ago•0 comments

Gaia unveils two-billion-star map of our galaxy and beyond

https://www.esa.int/articles/about-us/directorates/science/gaia/gaia-unveils-two-billion-star-map...
1•rexbee•7m ago•0 comments

In a Streaming World, Should You Stand Still

https://dl.acm.org/doi/abs/10.1145/3770855.3817495
1•teleforce•11m ago•0 comments

First Portion of NASA Hybrid Jet Engine Project Yields Successes

https://www.nasa.gov/general/first-portion-nasa-hybrid-jet-engine-project/
2•gmays•11m ago•0 comments

How to properly measure local LLM speed

https://blog.thepixelary.com/post/835211620290609152/how-to-properly-measure-llm-speed-finale
1•mikepan•14m ago•1 comments

Six Experts on Reclaiming AI for the Public Good

https://thereader.mitpress.mit.edu/six-experts-on-reclaiming-ai-for-the-public-good/
3•aanet•16m ago•0 comments

Open Music Theory

https://viva.pressbooks.pub/openmusictheory/
5•gregsadetsky•18m ago•0 comments

Show HN: Hexplained.dev – What's in This File?

https://hexplained.dev/
1•suresk•21m ago•0 comments

FreeBSD 15.2 Release Delayed Due to AI-Driven Security Advisories

https://www.phoronix.com/news/FreeBSD-15.2-RC2
2•mikece•25m ago•0 comments

GL.iNet admits using reverse shells on routers during breach response

https://www.bleepingcomputer.com/news/security/glinet-admits-using-reverse-shells-on-routers-duri...
2•colinprince•26m ago•0 comments

Behold the first footage of an anglerfish sucking prey into its toothed maw

https://www.cbc.ca/lite/story/9.7447059
2•colinprince•31m ago•0 comments

Show HN: Build a Research Empire Game

https://pubper.frontpageintelligence.ai/
1•dougSF70•33m ago•0 comments

The most elegant key change in all of pop music (2021) [video]

https://www.youtube.com/watch?v=epqYft12nV4
2•gregsadetsky•36m ago•0 comments

China proposes rules to stop people falling in love with humanoid robots

https://www.independent.co.uk/asia/china/china-rules-people-love-humanoid-robots-b3096103.html
1•Alien1Being•38m ago•1 comments

Ubuntu spent years patching GNOME, but things it can't fix are the real problem

https://www.xda-developers.com/ubuntu-has-been-patching-gnomes-missing-basics-since-2017-and-gnom...
1•cromka•42m ago•0 comments

Visualize: Agent Skill that turns a one-line request into a step-through visual

https://github.com/Aaryan1524/Visualize
1•thunderbong•46m ago•0 comments

A Gift Guide for Everyone, No One, and Karen, Who Has Dementia

https://longreads.com/2026/12/03/christmas-holiday-gift-guide-dementia/
1•gmays•47m ago•0 comments

Centralized AI Games, Centralized AI Prizes

https://www.pond.is/p/centralized-ai-games-centralized
1•StevenVincent•49m ago•0 comments

The 4D SU(N) Yang–Mills Mass Gap in Lean4

https://umpolungfish.github.io/yang-mills-lean4/
1•umpolungfish•51m ago•0 comments

Meltwater Pulse 1A

https://en.wikipedia.org/wiki/Meltwater_pulse_1A
3•PeterHolzwarth•57m ago•2 comments

Air France Crew Told to Track Passengers Who Didn't Eat or Drink

https://onemileatatime.com/news/air-france-crew-told-secretly-track-passengers-didnt-eat-drink/
7•malshe•57m ago•3 comments

SwarmHarm: Sandbox for emergent multi-agent swarm behaviors

https://swarmharm.com/
1•dagli•57m ago•0 comments

Deep learning for kidney cancer screening using non-contrast computed tomography

https://www.nature.com/articles/s44360-026-00223-w
6•marc__1•59m ago•0 comments

Production Companies, Literary Agents, Foreign Languages: AI-Driven Scams

https://writerbeware.blog/2026/08/28/production-companies-literary-agents-foreign-languages-ai-dr...
1•Alien1Being•1h ago•0 comments

The No AI Webring

https://baccyflap.com/noai/
1•pocksuppet•1h ago•0 comments

RAG vs. MCP: Which One Should Your Agent Use

https://openrouter.ai/blog/insights/rag-vs-mcp/
4•teleforce•1h ago•0 comments

Early peanut introduction linked to a 30% drop in food allergies

https://news.uq.edu.au/2026-12-food-allergies-have-dropped-30-parents-were-advised-introduce-pean...
4•thunderbong•1h ago•0 comments

The lean startup boom isn't making enough headlines; data says it's here and big

https://keydiscussions.com/2026/12/05/the-solo-founder-startup-boom-isnt-making-many-headlines-bu...
1•spenvo•1h ago•0 comments

Plummeting Denver Rents Are Upending the Market for Cheap Apartments

https://www.bloomberg.com/news/articles/2026-12-05/plummeting-rents-are-upending-the-market-for-c...
4•toomuchtodo•1h ago•3 comments