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!

Mac Gaming: Native Play Quake 1 «Dawn of the Machine» from Steam

https://swissmacuser.ch/macos-game-steam-quake-30th-anniversary-dawn-of-the-machine-mg3/
1•inex•1m ago•0 comments

YouTube Offers Creators Millions to Not Work with Netflix

https://www.bloomberg.com/news/articles/2026-08-19/youtube-offers-creators-millions-to-not-work-w...
1•mfiguiere•4m ago•0 comments

Moral Disengagement

https://en.wikipedia.org/wiki/Moral_disengagement
3•soupspaces•9m ago•0 comments

Show HN: Turning websites into micro CLIs for Claude Code to save on tokens

https://github.com/only-cli/oc
3•hyes•10m ago•0 comments

Faster pull requests are faster horses

https://royalicing.com/2026/faster-pull-requests-faster-horses
2•burntcaramel•10m ago•0 comments

Nvidia Alpamayo 2 Super: The Frontier Open Model for Autonomous Vehicles

https://blogs.nvidia.com/blog/alpamayo-2-super-open-model-now-available/
4•gmays•12m ago•0 comments

Curta Calculator

https://en.wikipedia.org/wiki/Curta
3•michaelleland•14m ago•0 comments

Great Event Planning Skill

https://github.com/arnons1/great-event-planning-skill
2•arnon•14m ago•0 comments

Sleeping at Scale

https://buildkite.engineering/sleeping-at-scale/
1•jhealy•16m ago•0 comments

Anthropic Refuses to Support Agents.md

https://github.com/anthropics/claude-code/issues/6235
1•fg137•16m ago•0 comments

Ask HN: How zero-server apps sync keys and chat history securely across devices?

1•Brandon-Coll•17m ago•0 comments

The existence of the square root of two

https://www.dpmms.cam.ac.uk/~wtg10/roottwo.html
2•pykello•17m ago•1 comments

Kodak invented digital photography in 1975 and still couldn't survive it [video]

https://www.youtube.com/watch?v=c_N-ZI6aGhA
1•adhikaribipin•18m ago•0 comments

Does this website look vibe coded?

https://platform.stridee.fit
1•alvaromolina0•19m ago•1 comments

How much would value the domain 'cmdk.ai' and 'commandk.ai'

1•hpragdish•22m ago•0 comments

Checkout this coding harness that compiles codebase. 78% SWE-Bench (DS v4flash)

https://benzi.fly.dev/
2•sessionking•24m ago•2 comments

Os8088.com: IBM XT OS now has a Browser, CP/M 2.2 with Z80 core and MS Word 1.1a

https://os8088.com/spotlight/
2•jggonz•24m ago•1 comments

Apple Compared My Neurodivergent Disability Adjustments to Dog-Sitting: VisionOS

https://edgecaseexistence.com/articles/apple-dogsitting/
3•xr-rnd•26m ago•0 comments

Did OpenAI's AI hack Hugging Face? An evidence audit

https://speedyweedyops.org/did-openai-ai-hack-hugging-face/
1•igovnow•27m ago•0 comments

The AI Boom Is About to Make Cars More Expensive

https://www.theatlantic.com/technology/2026/08/car-prices-memory-ram-ai/688329/
1•littlexsparkee•27m ago•2 comments

Firefly Aerospace to fly Zeno Power radioisotope heater on lunar lander mission

https://spacenews.com/firefly-aerospace-to-fly-zeno-power-radioisotope-heating-unit-on-lunar-land...
2•rbanffy•27m ago•0 comments

Astronomers detect fastest known star in Milky Way

https://www.theguardian.com/science/2026/aug/19/astronomers-detect-fastest-known-star-in-milky-wa...
1•wslh•30m ago•0 comments

I Became a Pediatrician Because I Wanted to Be a Good Adult

https://drped.substack.com/p/i-became-a-pediatrician-because-i
10•jamarna•32m ago•1 comments

Show HN: ComputeFence – preflight checks for rented GPU training jobs

https://github.com/Francisco-Booth/ComputeFence
1•Exolio_AI•33m ago•0 comments

AI-generated writing: it's still bad

https://greyenlightenment.com/2026/08/18/ai-generated-writing-its-still-bad/
4•paulpauper•33m ago•1 comments

AI is less likely to launch a nuclear strike when it reasons in Japanese

https://www.unite.ai/ai-is-less-likely-to-launch-a-nuclear-strike-when-it-reasons-in-japanese/
3•50kIters•33m ago•0 comments

Every Steam Frame Official Video Leaked [video]

https://www.youtube.com/watch?v=PpMgjtQhVsI
1•LelouBil•33m ago•0 comments

OpenAI's Unraveling Has Begun

https://garymarcus.substack.com/p/breaking-openais-unraveling-has-begun
13•7777777phil•35m ago•3 comments

Show HN: I forked an agent stack and measured myself against it, losses included

https://toolbay.ai/stack
1•orion232•36m ago•0 comments

I am so against volunteering in academia (ecology-edition)

https://statmodeling.stat.columbia.edu/2026/08/19/why-i-am-so-against-volunteering-in-academia-ec...
3•Tomte•38m ago•0 comments