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

Comments

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

How to Defend Against Iran's Cyber Retaliation Playbook

https://www.cisecurity.org/insights/blog/how-to-defend-against-irans-cyber-retaliation-playbook
1•muzzy19•54s ago•0 comments

Reconciling Earth's growing energy imbalance with ocean warming

https://iopscience.iop.org/article/10.1088/1748-9326/adb448
1•jinnko•1m ago•1 comments

Show HN: Web Push Notifications for Hacker News

https://hn-push.val.run
1•kinlan•2m ago•0 comments

Foxguard – a security scanner as fast as a linter

https://github.com/peaktwilight/foxguard
1•peaktwilight•9m ago•1 comments

Endian wars and anti-portability: this again?

https://dalmatian.life/2026/04/03/endian-wars-and-anti-portability-this-again/
1•awilfox•14m ago•0 comments

Swift package AI inference engine generated from Rust crate

https://github.com/ondeinference/onde-swift
2•kampak212•15m ago•0 comments

Trump proposes steep cut to NASA budget as astronauts head for the Moon

https://arstechnica.com/space/2026/04/trump-proposes-steep-cut-to-nasa-budget-as-astronauts-head-...
2•whiteboardr•26m ago•0 comments

Mary Jo Foley: What the heck is going on with Microsoft lately?

https://www.geekwire.com/2026/mary-jo-foley-what-the-heck-is-going-on-with-microsoft-lately/
3•thunderbong•29m ago•0 comments

Quarto: An open-source scientific and technical publishing system

https://quarto.org/
1•ifh-hn•33m ago•0 comments

Systemd-free Modern Linux: artixlinux and dinit and labwc and noctalia shell

https://grigio.org/the-best-systemd-free-modern-linux-artixlinux-dinit-labwc-noctalia-shell/
2•grigio•34m ago•0 comments

SiftQL – Drop a CSV, write SQL, get charts. 100% in the browser

https://siftql.com
2•9vcm5dvdfj•35m ago•0 comments

Show HN: GraphReFly – Reactive graph protocol for human and LLM co-operation

https://graphrefly.dev/
2•clfhhc•36m ago•0 comments

Four things we'd need to put data centers in space

https://www.technologyreview.com/2026/04/03/1135073/four-things-wed-need-to-put-data-centers-in-s...
2•joozio•36m ago•0 comments

OpenClaw gives users yet another reason to be freaked out about security

https://arstechnica.com/security/2026/04/heres-why-its-prudent-for-openclaw-users-to-assume-compr...
4•joozio•42m ago•0 comments

Apple at 50, blind people and our allies shaping Apple accessibility innovation

https://nfb.org/resources/publications-and-media/access-on-podcast/apple-50-blind-people-and-our-...
2•sholladay•42m ago•1 comments

Show HN: Anos – a hand-written ~100KiB microkernel for x86-64 and RISC-V

https://github.com/roscopeco/anos
1•noone_youknow•46m ago•0 comments

The Web Is an Antitrust Wedge

https://infrequently.org/2026/04/the-web-is-an-antitrust-wedge/
3•genericlemon24•50m ago•0 comments

GitHub Watch

https://rohanadwankar.github.io/github_watch/
3•jonbaer•53m ago•0 comments

Musk asks SpaceX IPO banks to buy Grok AI subscriptions, NYT reports

https://finance.yahoo.com/markets/stocks/articles/musk-asks-spacex-ipo-banks-181543226.html
2•alex_suzuki•58m ago•0 comments

How to take down a US F-35 over Iran? Chinese engineer's prophetic tutorial

https://www.scmp.com/news/china/science/article/3348619/how-take-down-us-f-35-over-iran-chinese-e...
3•sixhobbits•1h ago•0 comments

Show HN: RemembrallMCP – code dependency graph for agents and memory

https://github.com/cdnsteve/remembrallmcp
3•cdnsteve•1h ago•0 comments

Sheets Spreadsheets in Your Terminal

https://github.com/maaslalani/sheets
2•_____k•1h ago•1 comments

Archaeologists discover wreck of Danish warship sunk by Nelson 225 years ago

https://www.theguardian.com/science/2026/apr/02/archaeologists-discover-wreck-danish-warship-sunk...
4•zeristor•1h ago•1 comments

Show HN: Design to Code

https://www.absl.design/
2•absolute7•1h ago•0 comments

FDA had already warned the self-proclaimed 'fastest growing company in history'

https://www.drugdiscoverytrends.com/the-new-york-times-spotlighted-medvi-the-fda-had-already-warn...
2•thm•1h ago•0 comments

Emotion concepts and their function in a large language model

https://www.anthropic.com/research/emotion-concepts-function
25•dnw•1h ago•7 comments

Show HN: Cursor Cmd+K like command generator for all terminals

https://github.com/64bit/commandOK
4•gigapotential•1h ago•0 comments

Anyone switch accounts for Claude Code, did you lose everything?

2•dpark2026•1h ago•0 comments

¡Haciendo Historia Celebrating PyCon US's First-Ever Spanish-Language Keynote

https://pycon.blogspot.com/2026/04/haciendo-historia-celebrating-pycon-uss.html
3•lumpa•1h ago•0 comments

Auralo: An nice new Radio App check it out

https://testflight.apple.com/join/mEtdrzZ5
2•marc0janssen•1h ago•2 comments