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!

Batcher's Bitonic Merger Sort

https://raintown.org/lava/sorter/
1•azhenley•1m ago•0 comments

LabBench: Can AI agents decide what experiment to run next?

https://gamowlabs.com/labbench-benchmarking-ai-wet-lab-decisions.html
3•wardbradt•7m ago•0 comments

A New Type of Small Nuclear Reactor Gets the Green Light in Tennessee

https://www.nytimes.com/2026/09/29/climate/nuclear-reactor-tennessee-valley-authority.html
1•elsewhen•8m ago•0 comments

State of Agent Skills

https://vercel.com/blog/state-of-agent-skills
1•tagawa•8m ago•0 comments

Show HN: Spoondle (Daily Word Puzzle)

https://spoondle.app/
1•zackdabrams•8m ago•0 comments

Ask HN: How does a solo employee ensure the continuation of their company?

1•lakeeffect•12m ago•0 comments

DirtyBlanket: Fake Express Packages on NPM Spread a Linux Worm

https://safedep.io/dirtyblanket-express-impersonation-npm/
1•thunderbong•13m ago•0 comments

China broadens travel curbs to encompass family of top AI talent

https://www.business-standard.com/world-news/china-broadens-travel-curbs-to-encompass-family-of-t...
3•pseudolus•15m ago•0 comments

Microbes could survive on Saturn's moon Enceladus

https://www.space.com/space-exploration/search-for-life/microbes-could-survive-on-saturns-moon-en...
1•pseudolus•18m ago•0 comments

Ask HNs: where can I get a valuation of my application?

1•lakeeffect•19m ago•0 comments

The Model Is the Easy Half

https://github.com/wilsonwu-ai/the-model-is-the-easy-half
3•wilsonwu8•21m ago•1 comments

Moloch: Tristan Harris' new cautionary short film about the AI race [video]

https://www.youtube.com/watch?v=Q4aUidMZxbs
1•NickNaraghi•21m ago•0 comments

A skeptic's first contact with Kubernetes

https://blog.davidv.dev/posts/first-contact-with-k8s/
2•pmoriarty•27m ago•0 comments

Bill Gates's Blunt Warning on A.I

https://www.nytimes.com/2026/09/29/opinion/ezra-klein-podcast-bill-gates.html
3•OZYMANDIASAK•30m ago•0 comments

Vibe Coding Discover – A Catalog of AI OSS for Agents, MCP, Skills, RAG

https://vibecodingdiscover.com
1•wilsonye•31m ago•0 comments

Show HN: InfiniHash App Store – compliance tools built end-to-end by AI agents

https://apps.infinihash.com/
1•jlvardon•32m ago•1 comments

Show HN: EventSend – Event tracking and routing for solo founders and SaaS teams

https://eventsend.io/
2•mytinyrocket•34m ago•0 comments

Goals, facts, capabilities. Never remedies

https://www.fillmore.is/blogging/no-remedies
2•s16h•36m ago•1 comments

I count 600k live job ads nightly – 34k claim to be over a year old

https://jobs.tun-ai.com/insights
1•praveenpanduuk•38m ago•0 comments

Show HN: I created a BGP-based blackhole system that you can set up in minutes

https://setecastronomyinc.com/shield
2•jkalbfeld•39m ago•0 comments

Chinese AI tool told researchers how to make bioweapons

https://www.bbc.com/news/articles/cmrergq3j7lgo
3•pluc•39m ago•0 comments

Preventing quantum downgrade attacks against IPsec

https://blog.cloudflare.com/ipsec-downgrade-protection/
1•bbg2401•41m ago•0 comments

"All Wars Are Bankers' Wars "

https://whatreallyhappened.com/WRHARTICLES/allwarsarebankerwars.php
2•axiologist•42m ago•1 comments

Most powerful obesity drug yet: People lost up to 25% of weight in trial

https://arstechnica.com/health/2026/09/most-powerful-obesity-drug-yet-people-lost-up-to-25-of-wei...
1•jnord•44m ago•0 comments

Recast WOOF: High Resolution GPU powered numerical weather simulations

https://sf.recastsystems.com
2•roastedpillows•46m ago•0 comments

Historical Burdens on Physics (2022) [pdf]

https://www.karlsruher-physikkurs.de/download/historical_burdens-2022.pdf
1•vitalnodo•46m ago•0 comments

AI does, and does not, change the way I do math

https://terrytao.wordpress.com/2026/09/29/how-ai-does-and-does-not-change-the-way-i-do-math/
1•smilelamp•47m ago•0 comments

California Virtual Power Plant

https://www.tesla.com/vpp/california
1•andsoitis•50m ago•0 comments

Build Freely: Non-AI Shed Plan Generator

https://buildfreely.com/
1•darkstar999•55m ago•0 comments

They're trying to build a digital God and then enslave it

https://www.reddit.com/r/stocks/comments/1wtdg4w/comment/pct6bsp/
1•remywang•55m ago•0 comments