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!

Wails v3 Beta: a new foundation for Go desktop applications

https://v3.wails.io/blog/wails-v3-beta/
1•starquake•23s ago•0 comments

SpaceX rocket hits the Moon · What to know

https://hackenewhome.blogspot.com/2026/08/spacex-rocket-hits-moon-what-to-know.htmlhttps://netbaj...
1•AllForAll•1m ago•0 comments

HAR – open-source harness for multi-agent coding workflows

https://github.com/os-factory/har
1•karimtr•2m ago•0 comments

The Myth of Medieval Childhood

https://www.worksinprogress.news/p/did-medieval-people-love-their-children
1•jprs•3m ago•0 comments

Australian team pulls off 'extraordinary' midwinter rescue in Antarctica

https://www.abc.net.au/news/2026-08-07/antarctic-expeditioner-medical-evacuation-us-mcmurdo-stati...
2•speckx•4m ago•0 comments

Trusty Boot Key, a Ventoy Alternative

https://codeberg.org/aol/trusty-boot-key
1•mixmastamyk•5m ago•0 comments

LaunchUp: A New Community Helping Founders Get Discovered Beyond Launch Day

https://www.launchup.club
1•zerin•5m ago•0 comments

Salem Brought a Guillotine to Oppose New Data Center

https://www.gadgetreview.com/salem-brought-a-guillotine-to-oppose-new-data-center-company-reps-le...
2•robtherobber•5m ago•1 comments

Supercut [July 2026 Redesign]

https://supercut.org/
1•bookofjoe•6m ago•0 comments

Sorting, hashing, and sketches on 370,103 words

https://stochastic.blog/sorting-hashing-and-sketches-on-370-103-words/
1•Anon84•6m ago•0 comments

Convex.dev raises $57M Series B

https://news.convex.dev/convex-raises-57m/
1•altschuler•7m ago•0 comments

Doubletake – AirPlay/TV Screen Mirroring Sender for Linux (X11 and Wayland)

https://github.com/omarroth/doubletake
1•3rd3•8m ago•0 comments

Show HN: Oans – fast deduplication for btrfs and XFS

https://github.com/martinus/oans
1•sunitram•8m ago•0 comments

The web server deployment model breaks at hobby scale

https://w.on-t.work/web-deployment-model
5•meetpateltech•11m ago•1 comments

Stowaway – take the window seat on any plane or satellite overhead

https://stowaway.live/
2•thunderbong•11m ago•0 comments

America Is Finally Taking Extraterrestrials Seriously

https://time.com/article/2026/08/06/america-taking-extraterrestrials-seriously/
1•Anon84•11m ago•0 comments

Book Covers for Dummies: Three months of image generation mistakes

https://restlessforge.substack.com/p/three-months-to-book-cover
1•restlessforge•12m ago•0 comments

Rediscovering Apple's Human Interface Guidelines from 1987

https://blog.prototypr.io/rediscovering-apples-human-interface-guidelines-1987-59731376b39e
2•rbanffy•13m ago•0 comments

First class caching

https://fiberfs.io/blog/first_class_caching
1•nyc_pizzadev•15m ago•0 comments

Remembering the pre-Google web, when search was an experiment

https://arstechnica.com/gadgets/2026/08/remembering-the-pre-google-web-when-search-was-an-experim...
2•tie-in•18m ago•0 comments

The circle that swallowed everyone

https://www.hinchilla.com/learn/the-circle-that-swallowed-everyone
1•robinwarren•19m ago•0 comments

Ogygia – SSR Islands for SvelteKit

https://ogygia.puruvj.dev/
2•khromov•21m ago•0 comments

Artificial Intelligence, Logic and Formalizing Common Sense (John McCarthy)

https://www-formal.stanford.edu/jmc/ailogic/ailogic.html
2•rramadass•21m ago•1 comments

John Henry in the Age of AI

https://davepedu.com/blog/2026/08/06/john-henry-in-the-age-of-ai/
1•dpedu•22m ago•0 comments

Cursed story: CRLF and failed migration

https://tbt.qkation.com/posts/cursed-story-1-crlf/
2•TheBestTvarynka•26m ago•0 comments

An AI-friendly video-to-3D asset pipeline

https://goeteia.dev/3d
2•guenchi•26m ago•0 comments

Show HN: Mirafold – Your Agent with Generative UI (Codex, Claude Code, Gemini)

https://mirafold.com/
3•kserrec•27m ago•1 comments

Writing code isn't the bottleneck anymore, reading is

https://threedots.tech/post/understanding-code-is-bottleneck/
3•roblaszczak•30m ago•0 comments

Incident Response in the Age of AI (Incident Fest)

https://www.uptimelabs.io/articles/incident-response-ai
3•jjtang1•32m ago•0 comments

Follow-up: I asked last month about CTI aggregators for CISOs

https://www.reddit.com/r/cybersecurity/s/kdQNImG0TQ
2•elsadek•32m ago•0 comments