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

Comments

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

High-income job losses are cooling housing demand

https://jbrec.com/insights/job-growth-housing-demand-metro-analysis-2026/
1•gmays•40s ago•0 comments

Vapi's pivot story: 5 years and 12 pivots to a $130M valuation

https://youtu.be/KjMq_BXJnmc?si=ToHMfgyG9c4f9YMC
1•srekhi•57s ago•1 comments

Using Imapsync as an email daily digest

https://imapsync.lamiral.info/FAQ.d/FAQ.Fun_Things.txt
1•lemonwaterlime•59s ago•0 comments

Show HN: An AI zettelkasten that extracts ideas from articles, videos, and PDFs

https://github.com/schoblaska/jargon
1•schoblaska•1m ago•0 comments

StackShare

https://stackshare.io/
1•jonbaer•1m ago•0 comments

Ghostty compiled to WASM with xterm.js API compatibility

https://github.com/coder/ghostty-web
1•kylecarbs•4m ago•0 comments

Response to Ruby Is Not a Serious Programming Language

https://robbyonrails.com/articles/2025/12/01/why-so-serious/
1•robbyrussell•5m ago•1 comments

Curated list of data engineering whitepapers

https://www.ssp.sh/brain/data-engineering-whitepapers/
1•articsputnik•6m ago•1 comments

Aussie regulator says Ozempic can have a devastating impact on mental health

https://www.facebook.com/reel/854925343577203/
1•amrrs•8m ago•0 comments

Claude Opus Soul Spec

https://www.lesswrong.com/posts/vpNG99GhbBoLov9og/claude-4-5-opus-soul-document
1•panarky•11m ago•0 comments

Kubernetes and the Erlang VM: orchestration on the large and the small

https://blog.plataformatec.com.br/2019/10/kubernetes-and-the-erlang-vm-orchestration-on-the-large...
1•org3•12m ago•0 comments

Generalized Worley Noise

https://ianthehenry.com/posts/generalized-worley-noise/
1•surprisetalk•12m ago•0 comments

Rapid Transit Timelines and Scale Comparison

https://transit-timelines.github.io/
1•surprisetalk•12m ago•0 comments

Synit: A Reactive Operating System

https://synit.org/
1•surprisetalk•12m ago•0 comments

Concerning Doors: A Grave Warning to All Interdimensional Travellers

https://sidwashere.substack.com/p/concerning-doors-a-grave-warning
1•surprisetalk•12m ago•0 comments

OBR chairman quits after scathing report slates leadership over forecast leak

https://www.heraldscotland.com/news/25663688.obr-leak-inflicted-heavy-damage-reputation/
1•mrw34•13m ago•1 comments

Bit flips: How cosmic rays grounded a fleet of aircraft

https://www.bbc.com/future/article/20251201-how-cosmic-rays-grounded-thousands-of-aircraft
1•jp191919•14m ago•0 comments

Visualizing Bsdiff: The Delta Compression Algorithm Used by macOS and Google

https://jonready.com/blog/posts/visualizing-bsdiff.html
1•mips_avatar•16m ago•1 comments

Origin story of domestic cats rewritten by genetic analysis

https://www.newscientist.com/article/2506054-origin-story-of-domestic-cats-rewritten-by-genetic-a...
2•gmays•18m ago•0 comments

Crafting a Single File Neovim Config

https://jacksmith.xyz/blog/neovim-configuration-one-file-to-rule-them-all
1•fixedprog•18m ago•0 comments

Tinder for Startups

https://www.firstusers.tech/top-startups
1•VladCovaci•18m ago•1 comments

COP30 climate pledges favor unrealistic land-based carbon removal over cuts

https://phys.org/news/2025-11-cop30-climate-pledges-favor-unrealistic.html
1•PaulHoule•23m ago•0 comments

Show HN: Sunpeak – open-source MCP App SDK

https://github.com/Sunpeak-AI/sunpeak
1•abewheeler•23m ago•0 comments

The Trouble with Trump's Silicon Valley-Inspired Web Design Project

https://www.notus.org/trump-white-house/silicon-valley-government-websites-national-design-studio
1•everybodyknows•25m ago•0 comments

Real AI Agents and Real Work

https://www.oneusefulthing.org/p/real-ai-agents-and-real-work
1•mooreds•25m ago•0 comments

Minecraft creator's forgotten 2011 game, rewritten in TypeScript for the web

https://angelo-lima.fr/en/prelude-of-the-chambered-reborn-typescript-web-port/
2•llingelo•25m ago•1 comments

anarchy.html

https://cs.stanford.edu/people/eroberts/cs181/projects/global-networks/Scenarios/anarchy.html
1•lr0•26m ago•0 comments

Google Starts Sharing All Your Text Messages with Your Employer

https://www.forbes.com/sites/zakdoffman/2025/11/30/google-starts-sharing-all-your-text-messages-w...
5•toomanyrichies•26m ago•1 comments

Microsoft Teams Starts Telling Your Company If You're Not at Work

https://www.forbes.com/sites/zakdoffman/2025/10/25/microsoft-teams-starts-telling-your-company-if...
6•toomanyrichies•26m ago•2 comments

Ask HN: Are there any business monopolies that you like?

1•NewUser76312•28m ago•4 comments