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!

Creator of Test That OpenAI Models Tried to Cheat Sounds Alarm

https://www.bloomberg.com/news/articles/2026-07-29/creator-of-test-that-openai-models-tried-to-ch...
1•sbulaev•1m ago•0 comments

The Vocabulary Bottleneck

https://moekhalil.substack.com/p/the-vocabulary-bottleneck
1•mfkhalil•2m ago•0 comments

Show HN: Mousecrack – Bypass bot detection with deep learning

https://github.com/puffinsoft/mousecrack
2•BeverlyHills001•3m ago•0 comments

Physicists Solve a Muon Mystery. Now, Old Results Don't Add Up

https://www.quantamagazine.org/physicists-solve-a-muon-mystery-now-old-results-dont-add-up-20260729/
2•jnord•3m ago•0 comments

Sell Your AI Skills?

https://capabase.ai/learn/sell-your-ai-skills
3•trebuh•7m ago•0 comments

Kimi K3's Design Secret May Be in Its Thinking Traces

https://notes.designarena.ai/kimi-k3s-design-secret-may-be-in-its-thinking-traces/
3•gmays•7m ago•0 comments

Show HN: Generate, Version and Host your resumé all via GitHub

https://github.com/sadigaxund/git-resume
1•sakhund•8m ago•0 comments

Largest battery storage in Germany set for partial commissioning

https://www.heise.de/en/news/Largest-battery-storage-in-Germany-set-for-partial-commissioning-113...
3•doener•10m ago•0 comments

Babe32 – Barely Adequate Browser ESP32

https://github.com/alunmorris/babe32-ESP32-web-browser-for-cheap-black-display
1•iamnothere•16m ago•1 comments

If you need plausible deniability, avoid devices that use wear-leveling

https://twitter.com/GrapheneOS/status/2082576645215412651
1•Cider9986•18m ago•1 comments

Meta shares drop on falling profits and weak sales forecast

https://www.ft.com/content/06d941ed-8136-46a4-a2ec-44bea1b35c3b
3•petethomas•18m ago•0 comments

The Pedagogy Behind the Studio

https://gail.wharton.upenn.edu/gen-ai-studio/the-generative-ai-studio-pedagogy/
2•ray__•20m ago•0 comments

The bond market to Kevin Warsh: What are you doing about inflation?

https://www.cnn.com/2026/07/29/business/bond-yields-fed-warsh
3•mapping365•22m ago•1 comments

Create multi-model coding workflows with Maestro

https://maestro-build.vercel.app/
2•Entropnt•23m ago•0 comments

US DOE to Convert Uranium Enrichment Facility into Data Center Campus

https://www.energy.gov/articles/energy-department-announces-partnership-expand-reliable-affordabl...
4•leecoursey•24m ago•3 comments

C++ float-to-int conversion can be undefined behavior

https://kttnr.net/blog/cpp-float-to-int-conversion-undefined-behavior/
3•Quentak•24m ago•0 comments

My Brain-Breaking Trick to Quit Using Facebook

https://tedium.co/2026/07/27/facebook-home-row-keyboard-trick/
2•latexr•30m ago•0 comments

TrophyLab – Shared space for enemy weapons research

https://trophylab.mod.gov.ua/en/
3•sebastian_z•36m ago•0 comments

How to get more coding productivity with LLMs

3•DaveParkCity•40m ago•0 comments

Gangstalking = "breaking hidden rules" = "Ignorance of the law is no excuse."

2•VitaSetLLC•41m ago•0 comments

LLMs and Xfwl4

https://www.spurint.org/journal/2026/07/llms-and-xfwl4
2•Gualdrapo•44m ago•0 comments

FCC: Ban on Foreign-Made Robots Includes Robot Vacuums

https://www.pcmag.com/news/fcc-ban-on-foreign-made-robots-includes-robot-vacuums
12•dataneedscoffee•45m ago•0 comments

Remove watermarks and free pdf tools

https://www.removewatermarks.net/
2•adgine•45m ago•0 comments

Engineering a plant-derived nanofoundry to power mammalian cells

https://www.cell.com/cell/abstract/S0092-8674(26)00518-0
2•maxall4•46m ago•0 comments

From Academic Research to a Frontier LLM: A Case Study in DPO [video]

https://www.youtube.com/watch?v=rhA7pLVt4E0
2•erichocean•49m ago•0 comments

Companies' Handling of Users Privacy Rights Spurs States' Probe (2025)

https://news.bloomberglaw.com/privacy-and-data-security/companies-handling-of-users-privacy-right...
3•1vuio0pswjnm7•49m ago•0 comments

The Productivity Mirage

https://frantic.im/mirage/
7•msephton•50m ago•0 comments

We Can Spend $50B a Year Effectively

https://www.cgdev.org/blog/we-can-spend-50-billion-year-effectively
2•alphabetatango•51m ago•0 comments

Lyricsfile is a YAML-based format for lyrics

https://lrclib.net/lyricsfile
2•coolcoder613•52m ago•0 comments

Sentinel – opens a PR to fix Stripe breaking changes before they land

https://github.com/rtsdque/sentinel
2•rtsdque•52m ago•0 comments