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!

Show HN: Rust and Box2D browser physics game – build destructive machines

https://v-yanakiev.itch.io/machina
1•v-yanakiev•58s ago•0 comments

MyNoise – Custom Soundscapes for Focus, Relaxation and Sleep

https://mynoise.net/index.php
1•pan69•3m ago•0 comments

Show HN: Vera – A memory log that leaves interpretation to AI agents

https://ag3497120.github.io/call-me-vera/
1•pakupaku•4m ago•0 comments

Robot writes in languages it has never seen before

https://www.wired.com/story/robot-writing/
2•euanming•4m ago•0 comments

The biggest problem in buying AI compute is credit

https://twitter.com/gpugene/status/2096427973893411312
1•MrBuddyCasino•5m ago•0 comments

Anthropic IPO launch shifts toward mid-October

https://www.cnbc.com/2026/09/05/anthropic-ipo-launch-shifts-toward-mid-october-reuters.html
1•aghuang•6m ago•0 comments

Show HN: Assist (Voice Screenshot)

https://assistapp.dev
1•abhishekucs•10m ago•1 comments

TR-106

https://en.wikipedia.org/wiki/TR-106
1•num42•11m ago•0 comments

LA District Bans Most A.I. For Students

https://www.nytimes.com/2026/09/03/us/lausd-schools-ban-ai-artificial-intelligence.html
1•narenst•11m ago•0 comments

Greenland forces Trump's US oil firm to delay drilling

https://www.theguardian.com/world/2026/aug/12/trump-greenland-oil
4•Alien1Being•14m ago•0 comments

Consciousness, creativity andunderstanding not obstacles to machine intelligence

https://link.springer.com/article/10.1007/s11229-026-05655-1
2•klaustro•15m ago•0 comments

'Huge Breakthrough' in the Math of Imbalance

https://www.quantamagazine.org/huge-breakthrough-in-the-math-of-imbalance-20260821/
1•diazc•17m ago•0 comments

Find fastest DoH provider for you

https://dnsspeedtest.online/
1•snihalani•18m ago•0 comments

Why Laser Beams Are the Hottest New Tech in Defense

https://www.bloomberg.com/news/articles/2026-09-04/why-laser-beams-are-the-hottest-new-tech-in-de...
1•Alien1Being•18m ago•0 comments

After 30 Years of Silence, the Original NSA Whistleblower Looks Back

https://therealnews.com/after-30-years-of-silence-the-original-nsa-whistleblower-looks-back
1•Eridanus2•21m ago•0 comments

LMMS 1.3.0-alpha.2 Release (after 5 yrs of last release)

https://github.com/LMMS/lmms/releases/tag/v1.3.0-alpha.2
1•xiaoyu2006•25m ago•0 comments

I Run Grok Bot with BotOps

https://granda.org/en/2026/09/06/how-i-run-grok-bot/
2•granda•27m ago•0 comments

Joy and Curiosity #98

https://twitter.com/thorstenball/status/2096466015055953967
6•tosh•27m ago•0 comments

Ada: An open-source data analyst that tells you when its own forecast is useless

https://github.com/saineshnakra/automated-data-analyst
5•saineshnakra•28m ago•0 comments

An Empirical Study on Soundness Bugs in the Rust Compiler

https://arxiv.org/abs/2608.28713
1•rvz•32m ago•0 comments

Extract and Review Web Page Links Using a Bookmarklet

https://www.adamsdesk.com/posts/extract-review-web-page-links/
1•rdmuser•32m ago•0 comments

What "Decolonizing" Israel Looks Like. | Professor Noura Erakat - Full Interview

https://www.youtube.com/watch?v=TuBMKhObhgs
1•xbmcuser•34m ago•0 comments

Revise is the Figma of machine learning

https://www.revise.live/
3•Aadi_Ajmire•35m ago•0 comments

A volunteer stopped a backdoor from exposing Linux systems worldwide (2024)

https://www.theverge.com/2024/4/2/24119342/xz-utils-linux-backdoor-attempt
5•joebig•38m ago•0 comments

RecallDock

2•ashishmallur•40m ago•0 comments

Europe would not be able to sustain war of attrition with Russia

https://www.theguardian.com/world/2026/sep/05/europe-unable-sustain-war-of-attrition-russia-defen...
3•Teever•40m ago•0 comments

A very old Blog?

https://www.cannonade.net/blog/a-very-old-blog
2•redbluething•43m ago•0 comments

Fiber-immersion microfabrication with sub-10µm resolution for under $300 [video]

https://www.youtube.com/watch?v=UvV2CH5il3Q
4•mimorigasaka•45m ago•1 comments

Hwaro – A Lightweight and Fast Static Site Generator Written in Crystal

https://github.com/hahwul/hwaro
5•TheWiggles•46m ago•0 comments

A Wiki for AIs

https://synthetic.wiki/
1•guscatalano•49m ago•0 comments