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!

The Gap Map v0.1

https://www.currentai.org/blogs/introducing-the-gap-map-v0-1#article
2•droidjj•4m ago•0 comments

Ants: Who looks after the injured in a colony?

https://www.uni-wuerzburg.de/en/news-and-events/news/detail/news/ameisen-kolonie-verletzte-pflegt/
3•hhs•8m ago•0 comments

How Amsterdam invented the fire department

https://worksinprogress.co/issue/how-amsterdam-invented-the-fire-department/
3•zdw•8m ago•0 comments

GitHub offering CD-ROMs of your code for a few days

https://www.pcgamer.com/hardware/your-code-is-physically-yours-forever-until-you-lose-it-lets-be-...
2•evo_9•9m ago•1 comments

Shopify SEO Experts Can Boost Your Online Store Rankings

https://www.techwrath.com/shopify-seo-experts-boost-online-store-rankings/
2•techwrath11•13m ago•1 comments

Giant trees have no trouble pumping water to top branches

https://news.exeter.ac.uk/faculty-of-environment-science-and-economy/giant-trees-have-no-trouble-...
2•hhs•14m ago•0 comments

Steam Controller Auto-Charge – pilot to magnetic charging puck using CV

https://github.com/FossPrime/Steam-Controller-Auto-Charge
2•zdw•15m ago•0 comments

Save Claude Code Tokens with Smart Routing

https://github.com/regolo-ai/brick-SR1
2•FrancescoMassa•15m ago•0 comments

Elevating Privileges from Firefox to Android Root

https://rootme.nebusec.ai/
3•kozika•15m ago•0 comments

Dispersion loss counteracts embedding condensation in small language models

https://chenliu-1996.github.io/projects/LM-Dispersion/
2•E-Reverance•19m ago•0 comments

David Potter, the man who put Psion in the palm of your hand, logs off at 82

https://www.theregister.com/personal-tech/2026/07/03/david-potter-the-man-who-put-psion-in-the-pa...
4•sohkamyung•20m ago•1 comments

GitFut – Your GitHub stats turned into a World-Cup-style player card

https://gitfut.com
2•redbell•20m ago•0 comments

Sneaker Company Allbirds Plans to Pivot to A.I

https://www.nytimes.com/2026/04/15/us/allbirds-shoes-ai-pivot.html
2•shepherdjerred•21m ago•1 comments

Leanstral 1.5: Proof Abundance for All

https://mistral.ai/news/leanstral-1-5/
3•programLyrique•22m ago•0 comments

Show HN: Scout.kids – Agents that find activies for families

https://scout.kids
2•davmar•23m ago•0 comments

Radiolarite – "Iron of the Paleolithic"

https://en.wikipedia.org/wiki/Radiolarite
2•jumploops•27m ago•0 comments

Overturning a $1B Copyright Award Against a Broadband Provider

https://cacm.acm.org/opinion/overturning-a-1-billion-copyright-award-against-a-broadband-provider/
1•zdw•28m ago•0 comments

Coding without AI: a revolutionary new way to work

https://isaaclyman.com/blog/posts/coding-without-ai/
12•aard•28m ago•2 comments

Trip LLM safety refusals so that LLM-based code scanning wont see the malware

https://indieweb.social/@laurenshof/116720287681995824
1•radiator•28m ago•0 comments

Disputing the Declaration of Independence

https://www.historytoday.com/archive/feature/disputing-declaration-independence
3•pepys•37m ago•0 comments

Cosmic Fireworks by Infant Stars

https://www.space.com/astronomy/galaxies/infant-stars-celebrate-their-independence-with-cosmic-fi...
1•cybermango•41m ago•0 comments

Archivegenocide.com 64k videos show evidence of Israeli genocide

https://archivegenocide.com/
3•Dig1t•41m ago•0 comments

Show HN: Reading Assistant Physical Books Meta RayBans

1•roshangill•47m ago•0 comments

AI Trade Is Losing One of Its Key Signals

https://www.bloomberg.com/news/articles/2026-07-03/the-ai-trade-is-losing-one-of-its-key-signals-...
3•cybermango•52m ago•0 comments

Why Vancouver is always a stand-in for San Francisco in movies and TV shows

https://www.sfgate.com/sf-culture/article/vancouver-stand-in-movie-tv-sf-16613821.php
2•amichail•57m ago•0 comments

The Demoralization of the White-Collar Worker

https://nooneshappy.com/article/the-demoralization-of-the-white-collar-worker/
25•njrc•1h ago•15 comments

Illegible Benefits

https://aeon.co/essays/what-we-cant-measure-about-ai-yet
2•m-hodges•1h ago•0 comments

GLM5.2 on AMD MI355X at 2626 tok/s/node at over 2x lower cost than Blackwell

https://www.wafer.ai/blog/glm52-amd
2•latchkey•1h ago•0 comments

The Termi Protocol: Watch AI Coding Agents Build in 3D

https://termiprotocol.com/
1•jonbaer•1h ago•1 comments

Show HN: Durable AI agents without the workflow engine

https://www.noworkflows.dev/
3•iacguy•1h ago•0 comments