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!

Prompt Injection will always be unsolved

2•uimik•2m ago•0 comments

Ideas aren't getting harder to find, anyone who tells you otherwise is a coward

https://www.experimental-history.com/p/ideas-arent-getting-harder-to-find
3•rafaelc•2m ago•0 comments

Rolling the Root Key

https://blog.apnic.net/2026/10/09/rolling-the-root-key-2/
1•speckx•2m ago•0 comments

Show HN: I track gold coin and bar prices on a computer in my house

https://www.dirtcheapgold.com
1•mcone•3m ago•0 comments

Multicoloured tattoos that you can switch on and off at will

https://www.scimex.org/newsfeed/multicoloured-tattoos-that-you-can-switch-on-and-off-at-will
1•geox•3m ago•0 comments

Dragon's Lair on the Atari ST, made possible with a Raspberry Pi Pico W [video]

https://www.youtube.com/watch?v=-Uulwd8hVlE
4•jgrid007•4m ago•0 comments

Nathan Boya; the man behind the Plunge-O-Sphere

https://en.wikipedia.org/wiki/Nathan_Boya
1•sans_souse•5m ago•0 comments

Show HN: See *almost* any carriers phone settings

https://carrierexplode.com/
2•simplyalec•7m ago•0 comments

EKV

https://github.com/chrismccord/ekv
1•handfuloflight•8m ago•0 comments

Spec-Driven Development with AI: A New Approach and a Journey into the Past

https://martinelli.ch/spec-driven-development-with-ai-a-new-approach-and-a-journey-into-the-past/
1•sergiogdr•9m ago•0 comments

Improving 25 square packing upper bounds through evolutionary LLM program search

https://slightlysupervised.substack.com/p/improving-25-square-packing-upper
2•ryanxu•10m ago•0 comments

Trump Announces Formation of AI "Super Intelligence Force"

https://www.cbsnews.com/news/ai-super-intelligence-force-trump-jay-clayton/
4•gmays•10m ago•1 comments

The Revolution of Vertical Drama Is Happening Behind the Camera

https://medium.com/@ludobos/streathe-real-revolution-of-vertical-drama-is-happening-behind-the-ca...
2•lbostral•11m ago•0 comments

Chinese developer makes ARTEX AI agent closed-source after Korean bank hack

https://www.reuters.com/world/china/chinese-developer-makes-artex-ai-agent-closed-source-after-ko...
1•01-_-•13m ago•0 comments

Walmart watchtower: Digital price tag patents speak louder than pledges

https://groundworkcollaborative.org/work/the-walmart-watchtower/
2•altairprime•16m ago•1 comments

Agent-config&Claude Code mods

https://github.com/Max-Levitskiy/skills/tree/main/plugins/ml-agent-config
1•FunShot•19m ago•1 comments

US unveils sanctions on ICC in move court condems as 'assault on rule of law'

https://www.bbc.com/news/articles/cj20vkkx3rdvo
3•jamesblonde•19m ago•0 comments

Ful

https://hackerone.com/reports/3994056
1•ttrtyfygvujh•21m ago•0 comments

ModRetro Chromatic: Transparent

https://modretro.com/products/chromatic-transparent
1•tosh•21m ago•0 comments

Portfolio Risk Lab: uncertainty-aware rebalancing in Python

https://github.com/garroshub/portfolio-risk-lab
1•garrosgong•22m ago•0 comments

Branches in Branch-Free Code

https://00f.net/2026/10/09/llvm-compiles-branch-free-code-into-branches-on-risc-v/
3•Tomte•25m ago•0 comments

Microsoft is about to hobble your O-365 Family Storage

https://support.microsoft.com/en-us/onedrive/changes-to-microsoft-365-storage
3•AdmiralAsshat•25m ago•3 comments

Show HN: Plannotator Inbox – Decision Making Surface for Agents

https://plannotator.ai/inbox/
3•ramoz•26m ago•1 comments

Walmart exec speaks out on dynamic pricing again after watchdog calls out patent

https://nypost.com/2026/10/08/lifestyle/walmart-ceo-speaks-out-on-dynamic-pricing-again-after-wat...
3•mikhael•26m ago•1 comments

15-Minute Lesson Plan: A.I.-Assisted Mathematics

https://www.nytimes.com/2026/10/07/learning/15-minute-lesson-plan-ai-assisted-mathematics.html
1•westurner•26m ago•0 comments

Rampart: Browser native on-device PII radaction

https://ndstudio.gov/posts/say-hello-to-rampart
1•nateb2022•26m ago•0 comments

English Instead of Code

https://dalerank.github.io/en/articles/english-instead-of-code.html
3•zakirullin•28m ago•0 comments

Show HN: Cactus Needle – Local tool calling and speech-to-text in JavaScript

https://afshinm.github.io/cactus-needle/
1•afshinmeh•29m ago•0 comments

A Practical Guide to Naming Things

https://www.smashingmagazine.com/2026/10/how-name-things/
2•laybak•30m ago•0 comments

OpenAI will start watermarking ChatGPT's text in the EU

https://techcrunch.com/2026/10/05/openai-will-start-watermarking-chatgpts-text-in-the-eu/
5•ulrischa•31m ago•0 comments