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

Comments

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

Iowa Payphone Defends Itself (Associated Press, 1984)

https://www.payphone-project.com/iowa-payphone-defends-itself-ap-story-from-october-1984.html
1•TigerUniversity•1m ago•0 comments

Show HN: Quick Look Source Code in Finder on macOS

https://anybox.ltd/source-code-preview
1•francisfeng•2m ago•0 comments

Against Vibes: When Is a Generative Model Useful

https://www.williamjbowman.com/blog/2026/03/05/against-vibes-when-is-a-generative-model-useful/
1•takira•3m ago•0 comments

Show HN: KaraMagic – automatic karaoke video maker

https://karamagic.com/
1•godot•4m ago•0 comments

What comes after agents? AI employees

https://www.ycombinator.com/launches/Pf7-beyond-agents-the-era-of-ai-employees
1•karissaho•5m ago•0 comments

Photocopier No More: The Reckoning with AI Creativity Has Arrived

https://reviews.ofb.biz/safari/article/1401.html
1•trbutler•5m ago•0 comments

Inverse Occam's Razor

https://arxiv.org/abs/2204.08284
1•jerlendds•6m ago•0 comments

Tell HN: Apple development certificate server seems down?

3•strongpigeon•6m ago•1 comments

Mother of All Grease Fires

https://milk.com/wall-o-shame/bucket.html
2•xk3•7m ago•0 comments

6-Axis Milling for Enhancing Quality of Fused Granular Fabrication Parts

https://www.mdpi.com/2073-4360/18/5/608
1•PaulHoule•7m ago•0 comments

Working to Decentralize FedCM

https://atproto.com/blog/working-to-decentralize-fedcm
1•sgoto•8m ago•0 comments

Agent-sync – sync between Claude Code and Codex configs

https://github.com/matanabudy/agent-sync
1•matanabudy•8m ago•0 comments

Helix 02 living room tidy

https://www.youtube.com/watch?v=CAdTjePDBfc
1•hheikinh•9m ago•0 comments

Don't let LLMs write for you

https://justismills.substack.com/p/dont-let-llms-write-for-you
1•c-oreills•10m ago•0 comments

Deep Learning: Our Year 1990-1991

https://people.idsia.ch/~juergen/deep-learning-miraculous-year-1990-1991.html
1•untilted•12m ago•0 comments

Ask HN: I built an AI-native codebase framework–could you evaluate it?

1•xodn348•16m ago•1 comments

The Slowest Viral Thing

https://pilgrima.ge/p/the-slowest-viral-thing
1•momentmaker•17m ago•0 comments

SoftBank eyes up to $40B loan to fund OpenAI investment

https://www.reuters.com/business/media-telecom/softbank-seeks-up-40-billion-loan-finance-openai-i...
4•devonnull•17m ago•0 comments

SEIA Solar Market Insight Report 2025 Year in Review

https://seia.org/research-resources/us-solar-market-insight/
1•toomuchtodo•18m ago•0 comments

A vertical tab companion app for aerospace window manager

https://github.com/raghavendra-talur/aeromux
1•rtalur•19m ago•1 comments

Uber rolls out women-only option in the US

https://www.bbc.com/news/articles/cx2gvrzwdr7o
2•alephnerd•19m ago•0 comments

Meta Is Buying Moltbook

https://lifehacker.com/tech/meta-is-buying-moltbook
1•umangsehgal93•19m ago•1 comments

GoT Timeline – a daily timeline game to test your Game of Thrones skills

https://www.got-timeline.com
1•onion92•20m ago•0 comments

Claude Code makes local LLMs 90% slower

https://unsloth.ai/docs/basics/claude-code
4•telotortium•23m ago•1 comments

Eventbrite Enters into Definitive Agreement to Be Acquired by Bending Spoons

https://www.businesswire.com/news/home/20251202408560/en/Eventbrite-Enters-into-Definitive-Agreem...
5•DocFeind•24m ago•1 comments

Why doesn't V8 fit on my microcontroller? (2021)

https://medium.com/the-toit-take/why-doesnt-v8-fit-on-my-microcontroller-71dc6e2d8f5c
1•tosh•25m ago•0 comments

Is there an MD5 Fixed Point where MD5(x) == x?

https://stackoverflow.com/questions/235785/is-there-an-md5-fixed-point-where-md5x-x
2•plaguna•26m ago•0 comments

GPT-4 leaks its own API internals through training data exposure

1•safteylayer•27m ago•0 comments

Andrew Tate Doesn't Get the Point of Books

https://www.theatlantic.com/ideas/2026/03/slow-reading-books-benefits/686266/
2•paulpauper•28m ago•2 comments

The Met Opera's Desperate Hunt for Money

https://www.nytimes.com/2026/03/08/arts/met-opera-peter-gelb-finances.html
3•paulpauper•29m ago•0 comments