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!

Linkerd 2.20, the Latest Release of the Cloud-Native Service Mesh, Arrives

https://cloudnativenow.com/features/linkerd-2-20-the-latest-release-of-the-cloud-native-service-m...
1•CrankyBear•2m ago•0 comments

Mycelium – codebase memory for AI coding agents

https://www.getmycelium.net/
2•KopikoCappu•4m ago•0 comments

Show HN: NowThis – OSS task manager for Nextcloud and iOS supporting subtasks

https://nowthis.app/
1•andrewjneumann•5m ago•0 comments

The Submarine

https://www.paulgraham.com/submarine.html
1•bilsbie•7m ago•0 comments

SkyPilot Endpoints: Production-Ready Inference on Every Cluster You Own

https://blog.skypilot.co/skypilot-endpoints/
5•rombr•7m ago•0 comments

The Hotness Curve (how age changes a woman's appeal)

https://aella.substack.com/p/the-hotness-curve-how-age-changes
1•SLHamlet•10m ago•0 comments

My Pele Agent Trading the World Cup Prediction Markets with AI and Crypto

https://avc.xyz/my-pele-agent
1•rmason•12m ago•0 comments

Claude Skill that turns the 37signals decision guide into a thinking partner

https://github.com/FeroVolar/Decision-Framework-Skill/
2•alianinfo•13m ago•1 comments

Field Note #009: The Asymmetric Exposure

https://www.azimuth.so/p/field-note-009-the-asymmetric-exposure
2•bennieblanco•18m ago•0 comments

Anthropic Accuses Alibaba of 'Illicitly' Accessing AI Models

https://www.bloomberg.com/news/articles/2026-06-24/anthropic-accuses-alibaba-of-illicitly-accessi...
4•htrp•19m ago•1 comments

Discovery of pneumonia subtypes could lead to tailored treatments

https://www.cam.ac.uk/research/news/discovery-of-severe-pneumonia-subtypes-could-lead-to-tailored...
2•gmays•20m ago•0 comments

Stop Programming in Markdown

https://structural.chat/articles/programming-in-markdown/
2•pchiusano•21m ago•0 comments

FilenQ – a native macOS file manager for power users

https://filenq.app
2•webseidon•23m ago•0 comments

RBX Insider

https://rbxinsider.net
2•fefw•23m ago•0 comments

Arcade Supports EMA

https://www.arcade.dev/blog/arcade-supports-ema/
2•gnanagurusrgs•24m ago•0 comments

Why SELECT * is bad for SQL performance (2020)

https://tanelpoder.com/posts/reasons-why-select-star-is-bad-for-sql-performance/
2•downbad_•24m ago•0 comments

Lost Confidence

https://longform.asmartbear.com/confidence/
2•herbertl•26m ago•0 comments

Benefit Is Not Authority

https://instantial.substack.com/p/benefit-is-not-authority
2•groverbennett•26m ago•0 comments

GitHub shouldn't be a dependency for publishing Rust on crates.io

https://infosec.exchange/@mttaggart/116806641273303255
7•speckx•27m ago•0 comments

Stanford graduates rethink their futures as AI transforms tech

https://www.bbc.com/news/articles/c872j82j2qyo
4•jethronethro•27m ago•0 comments

You can see T-Mobile's acquisitions by where its logins are hosted

https://neobotnet.com/blog/cotw-t-mobile
2•caffeinedoom•27m ago•2 comments

50% of LG and Samsung smart TV apps embed residential proxies

https://cyberinsider.com/50-of-lg-and-samsung-smart-tv-apps-embed-residential-proxies/
8•Cider9986•29m ago•2 comments

Reliability Is an Enforcement Problem

https://instantial.substack.com/p/reliability-is-an-enforcement-problem
2•groverbennett•30m ago•0 comments

Slate Auto's simple electric truck starts at $24,950

https://techcrunch.com/2026/06/24/slate-autos-radically-simple-electric-truck-starts-at-24950/
2•tjwds•33m ago•1 comments

Claude Shannon: A Mathematical Theory of Cryptography

https://evervault.com/papers/shannon
2•ShaneCurran•35m ago•0 comments

Elon Musk denies Tesla's Autopilot caused crash that killed grandmother

https://arstechnica.com/tech-policy/2026/06/elon-musk-denies-teslas-autopilot-caused-crash-that-k...
4•worik•35m ago•2 comments

AI IQ Bio

https://www.aiiq.org/bio/
2•shea256•37m ago•0 comments

WebKit in Safari 27 Beta

https://webkit.org/blog/17967/news-from-wwdc26-webkit-in-safari-27-beta/
3•SllX•37m ago•0 comments

Find an open source alternative to anything

https://opensource.builders/
2•momentmaker•38m ago•0 comments

Meta pauses employee tracker for AI training amid privacy concerns

https://www.theguardian.com/technology/2026/jun/24/meta-pauses-employee-tracker-for-ai-training-a...
2•iamflimflam1•38m ago•1 comments