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!

Tiny Rust Layout Choices Freed 100 TB of DNS Cache Memory

https://talmondrlm.medium.com/the-argument-for-rust-on-arduino-am-i-crazy-641830273cd9
1•syumei•25s ago•0 comments

GPT-6 Astra: First Experience (high)

https://chatgpt.com/share/6a9b671d-b780-83ea-bd5d-b0ea39f7d9b3
1•nycdatasci•1m ago•1 comments

Mega Backdoor Roth ($72k/year)

https://www.bogleheads.org/wiki/Mega-backdoor_Roth
1•nycdatasci•5m ago•0 comments

After OpenAI's Bots Went Rogue, Watchdogs Were Kept on a Short Leash

https://www.nytimes.com/2026/09/03/technology/openai-hugging-face-hack.html
1•whack•8m ago•0 comments

Hilarious House of Frightenstein[Nostalgia]

https://www.frightenstein.com/castcrew.html
1•rolph•13m ago•0 comments

John Brown and the question of righteous violence

https://thedispatch.com/article/john-brown-harpers-ferry-slavery/
1•cocacola1•15m ago•0 comments

Hegel-Rust OSS bug-finding

https://github.com/DRMacIver/hegel-rust-oss-bug-finding
1•wwilson•23m ago•0 comments

Elastic Cloud (Public) Status – Replication bug causing slow recoveries

https://status.elastic.co/incidents/l6zgdnvvg41j
2•kyisaiah47•24m ago•0 comments

Book Review: The Tale of Genji

https://www.astralcodexten.com/p/your-book-review-the-tale-of-genji
2•paulpauper•27m ago•0 comments

Solving Chess

https://en.wikipedia.org/wiki/Solving_chess
1•nomilk•28m ago•0 comments

Tell HN: The Thoughts and Woes of a Full-Time Founder Part 2

1•lcampbellsoup•29m ago•0 comments

Ask HN: What is your biggest career regret?

3•eudamoniac•31m ago•0 comments

Noxe – P2P chat over Tor with no central server

https://github.com/Donzaaa/Noxe/releases/tag/v1.0.0
1•donzauker•40m ago•2 comments

Microsoft announces monthly hour usage limits for Xbox game pass

https://news.xbox.com/en-us/2026/09/03/xbox-cloud-gaming-changes/
4•walrus01•41m ago•1 comments

Burry Calls Palantir a Consulting Firm in Disguise, Warns of Valuation Collapse

https://www.foreignpolicyjournal.com/2026/09/04/michael-burry-calls-palantir-nasdaq-pltr-a-consul...
3•mgh2•42m ago•1 comments

Agent status in the SD Card slot

https://sidepulse.io/sidepulse.html
2•pkuhar•45m ago•1 comments

Uia-reader – read Windows UI content instead of screenshotting it

https://github.com/thomiasj/uia-reader
2•thomiasj•47m ago•0 comments

Nitter has more working instances than before the takedowns

https://codeberg.org/mv12star/shitter/wiki/Instances
4•Cider9986•47m ago•0 comments

Artificial Analysis Intelligence Index v4.2

https://artificialanalysis.ai/articles/artificial-analysis-intelligence-index-v4-2
15•nojs•47m ago•3 comments

Reversing MikroTik's Silent Patch: The RouterOS 7.23.4 Fix They Wouldn't Explain

https://npratley.net/reversing-mikrotiks-silent-patch-the-routeros-7-23-4-fix-they-wouldnt-explain/
3•ytch•48m ago•0 comments

Ask HN: Initial Thoughts on GPT-6 Astra?

3•zof3•49m ago•1 comments

GPT-6 Astra is now out to all Plus, Business, Pro, and Enterprise users

https://twitter.com/sama/status/2096008528834244741
4•tedsanders•53m ago•0 comments

The White House is making arcade games racist

https://www.theverge.com/policy/990520/trump-arcade-games-maga-copyright
9•OxO4•56m ago•3 comments

Show HN: Personal Context MCP

https://lanes.sh/showcase/personal-context-mcp
4•s-xyz•56m ago•0 comments

Show HN: Agent-to-agent payment. Your agents can pay each other

https://openspender.com/agent-to-agent
6•firatcan•57m ago•1 comments

GPT-6 Astra on Vercel AI Gateway

https://vercel.com/ai-gateway/models/gpt-6-astra
3•brbcoding•1h ago•0 comments

Show HN: Moadim.io – A scheduler for agents

https://moadim.io/
5•tupe12334•1h ago•0 comments

Why wait? Business grads buying firms to install themselves as CEO

https://www.bbc.com/news/articles/czxqpqrzq01o
4•BiraIgnacio•1h ago•0 comments

Portal by Spotify cut my Claude Code token usage by 90%

https://engineering.atspotify.com/2026/9/portal-by-spotify-cut-my-claude-code-token-usage-by-90
18•cebert•1h ago•4 comments

Ask HN: What's Going on with Web.archive.org

3•1vuio0pswjnm7•1h ago•1 comments