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!

Keyboardion

https://ianthehenry.com/posts/keyboardion/
1•alexpls•1m ago•0 comments

Gunther von Hagens, creator of Body Worlds and plastination, dies aged 81

https://www.theguardian.com/world/2026/jul/27/gunther-von-hagens-creator-of-body-worlds-and-plast...
1•xyzzy3000•2m ago•0 comments

Show HN: WizeMe – governed AI continuity with user-controlled memory

https://wizeme.app/
1•zrk222•2m ago•0 comments

One Ring to Rule Them All: Wiring Radios to Laptops the Hard Way

https://www.lysk.ai/post/wiring-radios-to-laptops-the-hard-way
2•majke•3m ago•0 comments

Ninfer: High-performance single-GPU inference

https://github.com/Neroued/ninfer
2•handfuloflight•4m ago•0 comments

Sphere Eversion

https://rreusser.github.io/explorations/sphere-eversion/
1•mathgenius•6m ago•0 comments

Show HN: Swift-topomap – A silicon-aware TUI and eBPF metrics engine in Rust

https://github.com/swiftlogicsystems/swifttopology
1•RathoreAnkur•7m ago•0 comments

Big Tech credit risks rise sharply as AI spending soars

https://www.ft.com/content/ac136522-ecc7-4262-8702-e0d636ea3099
2•mapping365•7m ago•0 comments

AI writes code that breaks main half as often

https://mergify.com/reports/state-of-merge-queues-2026
2•guerby•7m ago•0 comments

The Power of Focus in Agentic Coding

https://tenzinwangdhen.com/posts/copilot-creator-ai-coding-wrong/
1•AndreasHae•10m ago•0 comments

Wero

https://en.wikipedia.org/wiki/Wero_(payment)
1•tosh•11m ago•0 comments

The resurgence of fortified landscapes in West Africa

https://anl.geog.ufl.edu/fortified-landscapes/
1•jxub•16m ago•0 comments

Let over Lambda – 50 Years of Lisp

https://letoverlambda.com/textmode.cl/guest/toc
1•t-3•16m ago•0 comments

US Officials Advocate for White South Africans and Right-Wing Causes in Europe

http://www.techdirt.com/2026/07/27/trump-officials-want-to-use-human-rights-aid-to-advocate-for-w...
1•beardyw•18m ago•0 comments

AI Hosts and Sandboxes Save Intel's Datacenter CPU Cookies

https://www.nextplatform.com/compute/2026/07/28/ai-hosts-and-sandboxes-save-intels-datacenter-cpu...
2•rbanffy•20m ago•0 comments

AMD Advancing AI 2026: Talking CDNA5 with AMD's Alan Smith

https://chipsandcheese.com/p/amd-advancing-ai-2026-talking-cdna5
1•rbanffy•21m ago•0 comments

Experts warn current Starship heat shield tech is a "dead end" for rapid reuse

https://arstechnica.com/space/2026/07/despite-recent-successes-rapid-reuse-of-starship-remains-a-...
1•rbanffy•22m ago•0 comments

Japan-US team discovers substance seen as 'seed' behind Alzheimer's disease

https://mainichi.jp/english/articles/20260723/p2a/00m/0sc/010000c
1•BaudouinVH•23m ago•0 comments

The Mean Means Nothing

https://fzakaria.com/2026/07/27/the-mean-means-nothing
1•ingve•24m ago•0 comments

China begins mass production chipmaking machines following breakthrough

https://www.tomshardware.com/tech-industry/semiconductors/china-begins-mass-production-of-domesti...
3•RikNieu•25m ago•0 comments

Nvidia behind $50B lease on Texas data centre that will use its chips

https://www.ft.com/content/685014e7-47dd-471b-a585-1b9b73ce5d6f
2•mapping365•33m ago•0 comments

Show HN: OpsCat – A single-binary software catalog with MCP for AI agents

https://github.com/sumant1122/opscat
1•paperplaneflyr•35m ago•0 comments

Guantlet Loop

https://somethingbig.ai/gauntlet-loop
1•shahargl•36m ago•0 comments

Can Gender Equality and Religious Liberty Coexist?

https://medium.com/freedomofthought/can-gender-equality-and-religious-liberty-truly-coexist-6396e...
1•raynchad•39m ago•0 comments

If AI Writes All the Code, What Do the Programmers Do?

https://probablydance.com/2026/07/27/if-ai-writes-all-the-code-what-do-the-programmers-do/
4•ingve•42m ago•0 comments

Astro93: On-device astrology app with a pure-Dart ephemeris

https://play.google.com/store/apps/details?id=com.hoornet.astro93&hl=en_US
1•hoornet•45m ago•0 comments

Nuclear Turbines

https://www.nuclearturbines.com
1•chickenbig•47m ago•0 comments

Live: NHK WORLD-Japan News (since Mar 10, 2022) [video]

https://www.youtube.com/watch?v=f0lYkdA-Gtw
1•gjvc•48m ago•1 comments

Tag Questions and the Generational Reversal of Sycophancy Across 45 Language

https://arxiv.org/abs/2607.23976
1•sbulaev•53m ago•0 comments

Some people's chats with Claude AI found to be publicly available online

https://www.bbc.com/news/articles/cly5qgjk5ywo
2•01-_-•54m ago•1 comments