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: My coding agent apologized for being right, so I built Frank

https://github.com/HimanshuJ16/frank
1•HimanshuJ16•43s ago•0 comments

GPG.Fail Aftermath: Responsible Disclosure and Security in 2026 [video]

https://media.ccc.de/v/2026-728-the-gpg-fail-aftermath-on-responsible-disclosure-gpg-and-the-stat...
1•birdculture•3m ago•0 comments

The History of Ultima VII, One Of The Greatest RPGs Ever Made

https://kotaku.com/the-history-of-ultima-vii-one-of-the-greatest-rpgs-ever-made-2000731070
2•robenkleene•8m ago•0 comments

Show HN: Socratix – update: the AI voice oral exam (Viva) is live

https://socratix-nine.vercel.app
1•Aditya_0315•10m ago•0 comments

Are We Reinventing the Tools of Data Engineering for AI?

https://www.ssp.sh/brain/are-we-reinventing-the-tools-of-data-engineering-for-ai/
2•zazuke•14m ago•0 comments

Show HN: Crypto portfolio risk and scenario analysis with AI agents on top

https://sentralis.io/
2•Sentralis•17m ago•0 comments

Rage4J: Test your LLM apps like the rest of your Java code

https://rage4j.dev/
4•d1351r43•21m ago•0 comments

Why Bending Spoons eliminated all job titles

https://twitter.com/davidsenra/status/2099203963518058695
1•taubek•21m ago•2 comments

Memocept: Smart Solutions for Better Business Growth

https://finance.yahoo.com/healthcare/articles/memocept-introduces-multi-ingredient-dietary-163100...
2•grennihuke•21m ago•0 comments

GraphViz – Layout Engines

https://graphviz.org/docs/layouts/
2•vismit2000•22m ago•0 comments

AI should know that mylocalhost.com – is a real domain

https://www.reddit.com/r/Domains/comments/1vsz3we/ai_should_know_that_mylocalhostcom_is_a_real/
1•asimovDev•23m ago•1 comments

Intelligence per Watt: Measuring Intelligence Efficiency of Local AI

https://arxiv.org/abs/2511.07885
1•pythonic_hell•29m ago•0 comments

Google illegally retains customer data,Please do not flag this post

https://medium.com/@istokovicsgyorgy79/google-illegally-retains-customer-data-and-i-am-taking-leg...
2•Bitu79•31m ago•4 comments

The CRA Single Reporting Platform Is Launched

https://www.enisa.europa.eu/news/the-cra-single-reporting-platform-is-launched
1•fourfire•31m ago•0 comments

Sam Altman spells out why the AI industry wants to slow down

https://www.cnbc.com/2026/09/14/sam-altman-ai-slowdown-anthropic-amodei-musk.html
2•cramer4next•32m ago•1 comments

The metric nobody measures: how long until the bleeding stops

https://www.getunleash.io/blog/mean-time-to-neutralize
1•alexcasalboni•33m ago•0 comments

Militant Democracy and Fundamental Rights [pdf]

https://warwick.ac.uk/fac/arts/history/students/modules/hi290/seminars/revolution/lowenstein_mili...
1•0bytes•34m ago•0 comments

Show HN: I made a flight simulator, except you're just a passenger

https://inflightsimulator.com
4•rkotcher•37m ago•2 comments

AI Myth – College Educate, Benefit from AI – Morgan Stanley

https://finvaulta.com/share/N4FZt0B1rE2bxHuo1rAjEg
1•campervans•37m ago•1 comments

Roff (Software)

https://en.wikipedia.org/wiki/Roff_(software)
1•vinhnx•39m ago•0 comments

My Complete Agentic Coding Setup Tech Stack Feb 21 2026 – Updated Jun 29 2026

https://hboon.com/my-complete-agentic-coding-setup-and-tech-stack/
1•Bluestein•46m ago•0 comments

Claude and I made a MAME attact mode app

https://www.coldbeamgames.com/ghostcade.html
1•Stargx•48m ago•0 comments

Ask HN: Can't input "double quotes" in Gmail web?

1•dgan•48m ago•0 comments

God Help Us, Let's Try to Learn About Mechanistic Interpretability Techniques

https://www.astralcodexten.com/p/god-help-us-lets-try-to-learn-about
4•AriFordsham•48m ago•0 comments

Can Europe build a competitive polysilicon industry?

https://www.pv-magazine.com/2026/05/20/can-europe-build-a-competitive-polysilicon-industry/
1•leonidasrup•49m ago•0 comments

Let your coding agents exchange nofollow backlinks

https://getlinkbunny.com/
2•Bluestein•49m ago•0 comments

How the Clash Between Money and Safety Created a Monumental Crisis for AI

https://www.wsj.com/tech/ai/openai-anthropic-crisis-money-safety-847bc1d6
2•thm•50m ago•0 comments

OpenAI Pauses IPO Plans Amid AI Safety Worries

https://www.pymnts.com/news/2026/openai-pauses-ipo-plans-amid-ai-safety-worries/
2•thm•51m ago•0 comments

Show HN: Blur. Sharpen. Repeat. Get Turing Patterns

https://www.maximevidal.com/turing-patterns
1•vmaxmc2•53m ago•0 comments

WebP

https://en.wikipedia.org/wiki/WebP
1•tosh•54m ago•0 comments