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!

Are U.S. Consumers Ready to Use Pay-by-Bank at the Point of Sale?

https://www.kansascityfed.org/research/payments-system-research-briefings/are-us-consumers-ready-...
1•toomuchtodo•4m ago•0 comments

Prominent Haskell defector pilloried by anti-AI purists

https://www.theregister.com/devops/2026/07/15/prominent-haskell-defector-pilloried-by-anti-ai-pur...
1•galaxyLogic•6m ago•0 comments

Celebrity influencers paid up to £1M to advertise deodorant on Instagram

https://www.bbc.co.uk/news/articles/cvgegqrp656o
2•mmarian•10m ago•0 comments

Vercel Native Awesome List

https://github.com/henryoman/awesome-vercel-native
1•henryoman•10m ago•0 comments

Holding the LLM Stack in Your Head

https://thegustafson.com/series
1•yayitswei•14m ago•0 comments

Show HN: Applications Are All You Need

https://www.npmjs.com/package/@openluxeco/cli
1•chandlerwilcox•15m ago•0 comments

Roko's Dancing Basilisk

https://boston.conman.org/2025/12/02.1
1•signa11•17m ago•0 comments

Mirage – fast and simple GTK+ image viewer

https://gitlab.com/thomasross/mirage
1•Mr_Minderbinder•19m ago•0 comments

Show HN: Free Ollama AI Trading Desktop App

https://www.vaultcharts.com/
1•AlexBThomsen•21m ago•0 comments

How AI Slop Is Killing World War II History (video)

https://www.youtube.com/watch?v=iUfP6amE7UA
1•MichaelMoser123•25m ago•0 comments

Firefox-WASM: Firefox in WebAssembly

https://github.com/HeyPuter/firefox-wasm
2•thunderbong•26m ago•0 comments

Triton Plugin Extensions

https://pytorch.org/blog/triton-plugin-extensions-enabling-tlx-and-custom-compiler-passes-out-of-...
2•zer0zzz•27m ago•0 comments

Linus Torvalds on AI usage in Linux development

https://lore.kernel.org/linux-media/CAHk-=wi4zC+Ze8e+p3tMv8TtG_80KzsZ1syL9anBtmEh5Z40vg@mail.gmai...
3•tosh•36m ago•0 comments

I built a tool to get comments in CSV format from YouTube videos

2•cristyg0101•36m ago•0 comments

Sheetz Chooses StorMagic SvHCI to Replace VMware Across 830 Retail Stores

https://finance.yahoo.com/technology/articles/sheetz-chooses-stormagic-svhci-replace-120000659.html
2•gnabgib•37m ago•0 comments

Show HN: Kosh – a self-hosted personal finance app

https://github.com/kzekiue/kosh/
2•kzekiue•37m ago•0 comments

Don't make one LLM call do retrieval and interpretation

https://ffilm.org/astro/
2•tobywhy•38m ago•0 comments

Lightweight Ukrainian drones flew for a record 12h to hit refinery 1,500M away

https://www.telegraph.co.uk/world-news/2026/07/13/ukrainian-long-range-drones-stretching-russia-a...
5•giuliomagnifico•40m ago•0 comments

Sheetz is quitting VMware, migrating 11,000 virtual machines

https://arstechnica.com/information-technology/2026/07/sheetz-moves-838-stores-off-vmware-broadco...
2•jimt1234•45m ago•0 comments

Ode with Anthropic – AI meets reality

https://www.ode.com
2•car•45m ago•2 comments

DJB Netstrings (1997)

https://cr.yp.to/proto/netstrings.txt
4•signa11•48m ago•3 comments

Easy Acceleration with Distributed Arrays

https://arxiv.org/abs/2508.17493
2•teleforce•52m ago•0 comments

Whale – 98% Cache Hit with DeepSeek

https://github.com/usewhale/Whale
2•arikrahman•54m ago•1 comments

AI That Never Forgets – Dendritron Transformer Explained [video]

https://www.youtube.com/watch?v=6zwuTqGweJE
3•ilaksh•55m ago•1 comments

Google and Epic Abandon Settlement

https://www.macrumors.com/2026/07/15/google-third-party-app-stores/
4•tosh•56m ago•0 comments

DeepCleanAudio AI-powered audio denoising that restores clarity in seconds

https://steelsoft.site/software/DeepCleanAudio_home.html
2•billqu0001•57m ago•0 comments

Precociality and Altriciality

https://en.wikipedia.org/wiki/Precociality_and_altriciality
2•num42•58m ago•0 comments

Chaos and confusion bring US no closer to resolution on Strait of Hormuz

https://www.theguardian.com/world/2026/jul/15/chaos-confusion-no-closer-resolution-strait-hormuz-...
4•hebelehubele•1h ago•0 comments

What happened to our climate extinction?

https://cerebusthefirst.substack.com/p/what-happened-to-our-climate-extinction
4•joanwestenberg•1h ago•1 comments

The First Compiler: How Alan Jay Perlis Made Programming Human

https://nirmalutwani.substack.com/p/the-first-compiler-how-alan-jay-perlis
2•nutwani91•1h ago•1 comments