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!

Show HN: Renotify – A WhatsApp operations platform for teams and agencies

https://renotify.app
1•richbowen•2m ago•0 comments

Keeping Shai-Hulud Off the Mélange

https://blog.barthe.ph/2026/08/23/keeping-shai-hulud-off-the-m%C3%A9lange/
1•jackjeff•3m ago•0 comments

Harvard's $699 startup bootcamp offers AI avatars of its instructors

https://techcrunch.com/2026/08/22/harvards-699-startup-bootcamp-offers-ai-avatars-of-its-instruct...
1•Brajeshwar•4m ago•0 comments

Why Silicon Valley Is Losing Public Trust in AI Data Centers and Surveillance CM

https://moztako.me/ai-data-centers-and-surveillance-cameras/
2•Jefmz•6m ago•0 comments

Robot boxing, football and sprinting at World Humanoid Games

https://www.bbc.co.uk/news/videos/c7vgvj6e1emo
1•mmarian•7m ago•0 comments

Vit D assoc w better cognition in those w sleep disturb./mild cognitive impair

https://www.sciencedirect.com/science/article/abs/pii/S1389945726001991?via%3Dihub
2•bookofjoe•10m ago•0 comments

Multi-Agent Debate Strategies: Survey, Taxonomy, and Challenges

https://arxiv.org/abs/2607.26212
1•wslh•11m ago•0 comments

Unlazy: Anti-laziness skill for AI agents

https://github.com/Leonxlnx/unlazy
1•mpgirro•11m ago•0 comments

Default Alive

https://alearningaday.blog/2026/08/23/default-alive/
1•herbertl•14m ago•0 comments

Free Pixelart-Style Icons

https://pixelarticons.com/
1•halfmage•14m ago•0 comments

Geometric Flow Visualization by Controllable Shape and Volumetric Appearance

https://momentsingraphics.de/STAG2022.html
1•ibobev•14m ago•0 comments

Vintage Computer Fair West 2026

https://bumbershootsoft.wordpress.com/2026/08/22/vintage-computer-fair-west-2026/
1•ibobev•15m ago•0 comments

Kodak DC50 now usable on the Apple II

https://www.colino.net/wordpress/archives/2026/08/23/kodak-dc50-now-usable-on-the-apple-ii/
2•ibobev•15m ago•0 comments

Saab unveils new uncrewed combat air system concept

https://www.aerotime.aero/articles/saab-unveils-new-uncrewed-combat-air-system-concept
1•r2sk5t•16m ago•1 comments

GLM-5.3 (open-weight) beat Anthropic/OpenAI models – for 1/5 the cost

https://reinvently.co.uk/tools/ed-o-meter/
3•ed-is-ai•17m ago•1 comments

Being nude in public can make us feel better about our bodies

https://www.bbc.com/future/article/20260820-how-social-nudity-can-boost-your-body-image
3•vinni2•20m ago•0 comments

Cudametal – vibecoded Python translator from .cu to mpl

https://github.com/martinkunc/cudametal
1•mkunc•20m ago•0 comments

Alpha-Gal Syndrome (AGS)

https://en.wikipedia.org/wiki/Alpha-gal_syndrome
1•burnt-resistor•20m ago•1 comments

AI Chip Architectures

https://www.jepeake.com/ai-chip-architectures
1•mellosouls•21m ago•0 comments

Three tough truths about climate – Bill Gates

https://www.gatesnotes.com/three-tough-truths-about-climate
1•paulpauper•21m ago•1 comments

I quit the tenure track: The insufferable hypocrisy of elite academia

https://www.theatlantic.com/magazine/2026/09/elite-academia-leadership-hypocrisy/687969/
2•vinni2•24m ago•0 comments

Why has sociology become so politicised?

https://www.optimallyirrational.com/p/why-has-sociology-become-so-politicised
1•paulpauper•26m ago•0 comments

Did you made a copycat after outbid.lol?

2•alexcloudstar•30m ago•0 comments

Wicker Man director's sons complete their late father's film trilogy

https://www.bbc.co.uk/news/articles/cj36kv62g7yo
1•rdmuser•30m ago•0 comments

How to Report a Bug So It Gets Fixed

https://blog.tymscar.com/posts/howtoreportabug/
1•tymscar•31m ago•0 comments

Giving ChatGPT access to Apple Messages is dangerous and irresponsible

https://paulfwalsh.substack.com/p/giving-chatgpt-access-to-apple-messages
3•taubek•33m ago•0 comments

Postgres 19: How Our Advice Has Changed

https://www.crunchydata.com/blog/postgres-19-how-our-advice-has-changed-since-we-wrote-it
1•plaur782•33m ago•0 comments

Show HN: Dev // Cyber Toolkit – a free floating dev/cybersecurity widget

https://dev-cyber-toolkit.netlify.app
1•axoupicsou•34m ago•1 comments

2-click code execution vulnerability on Omarchy Linux

https://twitter.com/mdisec/status/2091293921468932420
1•ozirus•35m ago•0 comments

Mcpsnoop fails CI on what your MCP server did on the wire

https://github.com/marketplace/actions/mcpsnoop
1•kerlenton•36m ago•0 comments