frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•12mo ago

Comments

zljdanceholic•12mo 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!

Israeli forces raid Global Sumud Flotilla boats in international waters

https://www.aljazeera.com/news/2026/4/29/israeli-military-speedboats-block-gaza-bound-aid-ship
1•0x54MUR41•7m ago•0 comments

Spite Apps: The Latte Larry's of Apps

https://sxp.studio/blog/spite-apps-the-latte-larrys-of-apps
1•tasoeur•7m ago•0 comments

Show HN: KeeWebX – KeePass that runs from a double-clicked HTML file

https://keewebx.app/app?demo=1
1•edxtz•13m ago•0 comments

AI Skills as loader spec, not prompts – why the architecture changes everything

https://internals.laxmena.com/p/what-youre-actually-writing-when
1•laxmena•14m ago•0 comments

Anomaly detection of private jet flights

https://ews.kylemcdonald.net
1•kcimc•15m ago•0 comments

AI Status (Mac App)| FOSS

https://github.com/Jaecobd1/ai-status
1•jaecob•17m ago•0 comments

On the Future of Apple’s Vision Platform

https://daringfireball.net/2026/04/on_the_future_of_apples_vision_platform
4•ffin•19m ago•1 comments

US falls below Ukraine in press freedom as global autocracy takes hold

https://arstechnica.com/tech-policy/2026/04/us-falls-below-ukraine-in-press-freedom-as-global-aut...
5•canucker2016•19m ago•1 comments

What We're Missing About Generative AI

https://onlinelibrary.wiley.com/doi/10.1155/hbe2/2320511
1•yousufsaif•19m ago•0 comments

Show HN: LLM-Powered News –> Event Map, Timeline, and Analysis

https://conflictintelligence.ai/
1•nclin_•27m ago•0 comments

Ask HN: How are people testing while using agent orchestrators?

1•spmartin823•34m ago•0 comments

Post-quantum encryption for Cloudflare IPsec is generally available

https://blog.cloudflare.com/post-quantum-ipsec/
1•linolevan•37m ago•0 comments

Intercom-client NPM package and lightning PyPI packages compromised

https://opensourcemalware.com/blog/mini-shai-hulud
1•6mile•40m ago•1 comments

ClawIRC – IRC Chat for Agents

https://clawirc.com/
6•randomfrom•45m ago•0 comments

Tell HN: Fossil SCM Server Overloaded

3•thunderbong•49m ago•0 comments

$500M for Virtual Biology Initiative, Funded by Zuckerbergs

https://biohub.org/news/virtual-biology-initiative/
14•warbaker•54m ago•1 comments

What Is Authorship When Machines Can Write?

https://thereader.mitpress.mit.edu/what-is-authorship-when-machines-can-write/
2•pseudolus•1h ago•0 comments

Louisiana congressional primaries suspended after Supreme Court ruling

https://www.pbs.org/newshour/politics/louisiana-congressional-primaries-suspended-after-supreme-c...
5•Bender•1h ago•1 comments

Autonomous payments between Agents using L402? [video]

https://www.youtube.com/watch?v=33KZQJS1-Vw
1•gabrielpmares•1h ago•1 comments

Is a Sovereign Single‑File Node OS (Uni‑B) a Viable Architecture?

https://planned-tan-ktnij0otlq.edgeone.app/
1•UnrealizedTech•1h ago•0 comments

Beijing bans drone sales even as rest of world buys Chinese drones

https://arstechnica.com/gadgets/2026/04/beijing-bans-drone-sales-even-as-rest-of-world-buys-chine...
4•Mindless2112•1h ago•0 comments

German energy tech startup becomes Europe's latest unicorn following €50M raise

https://impactloop.com/article/cmblu-becomes-europe-s-latest-energy-tech-unicorn-following-50m-ra...
1•doener•1h ago•0 comments

Mini Shai-Hulud in Intercom Package Spreads to Packagist Using Composer Plugin

https://semgrep.dev/blog/2026/malicious-intercom-php-package-spreads-mini-shai-hulud-attack-to-pa...
1•j12y•1h ago•0 comments

Ask HN: Any dashboards give realtime average AI chatbot response time?

1•MrCoffee7•1h ago•0 comments

Utah's New Law Targeting VPNs Goes into Effect Next Week

https://www.eff.org/deeplinks/2026/04/utahs-new-law-regulating-vpns-goes-effect-next-week
14•iamnothere•1h ago•1 comments

Simple and Correct Snapshot Isolation

https://remy.wang/blog/si.html
2•remywang•1h ago•0 comments

LLM Quantization

https://huggingface.co/docs/transformers/main_classes/quantization
1•Anon84•1h ago•0 comments

Finding Zero Days with any model?

https://www.provos.org/p/finding-zero-days-with-any-model/
1•dnw•1h ago•0 comments

Show HN: Gemini free tier is all you need

https://juanpabloaj.com/2026/04/30/gemini-free-tier-is-all-you-need/
1•juanpabloaj•1h ago•0 comments

We scanned 100 Smithery MCP servers, 22 flagged, here's what we found

3•chaksaray•1h ago•2 comments