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!

Artemis II crew splashes down in Pacific Ocean, ending record-breaking moon flyb

https://www.theguardian.com/science/2026/apr/10/artemis-ii-landing-return-moon-mission
1•hkhn•33s ago•0 comments

Bring Back Buddy

https://github.com/anthropics/claude-code/issues/45596
1•agiacalone•1m ago•0 comments

SBTI Personality Test – The Funniest Personality Quiz You'll Ever Take

https://sbti.guru/en/
1•luosix•3m ago•0 comments

Enforcing new limits and retiring Opus 4.6 Fast from Copilot Pro+

https://github.blog/changelog/2026-04-10-enforcing-new-limits-and-retiring-opus-4-6-fast-from-cop...
1•ValentineC•3m ago•0 comments

An Agent That Grows with You – Hermes Agent

https://hermesagent.best/
1•luosix•4m ago•0 comments

To Fill Air Traffic Controller Shortage, FAA Turns to Gamers

https://www.nytimes.com/2026/04/10/us/politics/air-traffic-controller-gamer.html
1•bookofjoe•18m ago•1 comments

Is VC the new PMF strategy?

1•networkOne•21m ago•0 comments

AMD GPU LLM Performance Testing

https://github.com/alainnothere/AmdPerformanceTesting
3•xlayn•28m ago•1 comments

Bringing Rust to the Pixel Baseband

https://security.googleblog.com/2026/04/bringing-rust-to-pixel-baseband.html
3•el_duderino•29m ago•0 comments

Jonathan Ive, Designer, Apple – "A computer can be sexy."

https://www.slate.com/articles/technology/top_right/2011/08/jonathan_ive_designer_apple.html
1•goekjclo•29m ago•0 comments

Sam Altman speaks out after alleged attack on SF home,links to rising AI anxiety

https://www.msn.com/en-us/news/crime/sam-altman-speaks-out-after-alleged-attack-on-sf-home-links-...
2•rmason•30m ago•2 comments

Show HN: Palmier – Dispatch and schedule AI agents from your phone

https://www.palmier.me
2•caihongxu•34m ago•0 comments

Latest Episode of Apple's "For All Mankind" Erases Taiwan

https://old.reddit.com/r/taiwan/comments/1sho71p/latest_episode_of_apples_for_all_mankind_erases/
1•GeoPolAlt•36m ago•0 comments

We open sourced KubeezCut, a free browser based editor integrated with Kubeez

https://github.com/MeepCastana/KubeezCut
1•Meeeeeep•38m ago•0 comments

Framework: ' personal computing as we know it is dead'

https://www.pcgamer.com/hardware/framework-there-is-a-very-real-scenario-in-which-personal-comput...
1•evo_9•42m ago•1 comments

'Blips' led Australian backyard astronomers to a world-first planetary discovery

https://www.sbs.com.au/news/article/how-amateur-astronauts-are-reshaping-what-we-know-about-space...
2•defrost•45m ago•0 comments

Families Spent Decades on Louisiana's Bayous. The Power Company Pulled the Plug

https://www.wsj.com/us-news/families-spent-decades-on-louisianas-bayous-the-power-company-pulled-...
2•bookofjoe•46m ago•1 comments

Relics of an ancient sandstorm on Mars point to Earth-like winds

https://www.science.org/content/article/relics-ancient-sandstorm-mars-point-earth-winds
1•gmays•55m ago•0 comments

Yout.com Hopes Supreme Court's Cox Ruling Helps Its Case; RIAA Disagrees

https://torrentfreak.com/yout-com-hopes-supreme-courts-cox-ruling-helps-its-case-riaa-disagrees/
2•Cider9986•57m ago•0 comments

Show HN: I forced Claude to play Tetris in Emacs

https://imgur.com/a/e3nxq5k
2•iLemming•1h ago•0 comments

Elon of Ed-Tech

https://getlearnix.com/
1•noahjohnson1•1h ago•3 comments

Tutorial on Event-based Cameras(2020) [pdf]

https://rpg.ifi.uzh.ch/docs/scaramuzza/Tutorial_on_Event_Cameras_Scaramuzza.pdf
1•o4c•1h ago•0 comments

New Kodak Film – Verita 200D Colour Negative

https://www.kodak.com/en/company/press-release/kodak-verita-200d-color-negative-film/
1•coolandsmartrr•1h ago•2 comments

The War Is Turning Iran into a Major World Power

https://www.nytimes.com/2026/04/06/opinion/iran-war-strait-hormuz.html
4•spopejoy•1h ago•3 comments

Google's Gmail Upgrade Decision: 2B Users Must Act Now

https://www.forbes.com/sites/zakdoffman/2026/04/10/googles-gmail-upgrade-decision-2-billion-users...
7•teleforce•1h ago•3 comments

Give your coding agents the context your repo has

https://aspenkit.dev/
2•mvoutov•1h ago•0 comments

Neural Computers

https://arxiv.org/abs/2604.06425
2•Anon84•1h ago•0 comments

RAG 40x faster using binary quantization (2024)

https://lightning.ai/lightning-ai/templates/rag-40x-faster-using-binary-quantization
4•teleforce•1h ago•0 comments

From error-handling to structured concurrency

https://blog.nelhage.com/post/concurrent-error-handling/
1•vinhnx•1h ago•0 comments

Our response to the Axios developer tool compromise

https://openai.com/index/axios-developer-tool-compromise/
7•surprisetalk•1h ago•0 comments