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 Long Can You Keep Peptides After Reconstitution?

https://www.robustenough.com/p/psychedelics-arent-just-serotonin
1•BenPace•7s ago•0 comments

Why Do LLMs Suck at Editing?

https://lifeimprovementschemes.substack.com/p/why-do-llms-suck-at-editing
1•BenPace•21s ago•0 comments

How did you land your first projects as a solo engineer/consultant?

https://crescita.cc/
1•modelcroissant•2m ago•1 comments

Output Isn't Design

https://twitter.com/karrisaarinen/status/2045257582470983691
1•rmason•3m ago•0 comments

Urban Exploration Resource

https://www.uer.ca/
1•Cider9986•3m ago•0 comments

Rare 1897 Film Discovered Features the First On-Screen Appearance of a Robot

https://www.smithsonianmag.com/smart-news/rare-1897-film-discovered-in-an-old-trunk-in-michigan-f...
1•rmason•4m ago•0 comments

IIDX and Tetris lovers, here's a puzzle game for you

https://kully.itch.io/complete-the-square
1•akully•4m ago•1 comments

Zevism

https://ancient-forums.com/
1•yhugfdrthh•5m ago•0 comments

Great white sharks are overheating

https://insideclimatenews.org/news/16042026/great-white-sharks-ocean-warming/
2•Cider9986•6m ago•0 comments

Ask HN: Has zooming out helped you deal with AI anxiety?

1•ItsClo688•6m ago•0 comments

Lessons from running 14 AI agents in production for 6 months

https://orgtp.com/blog/the-weight-is-wrong-without-it
1•dsteel•15m ago•0 comments

Ask HN: How can I support the AI resistance movement financially?

4•roschdal•17m ago•1 comments

I built a simple uptime monitoring tool focused on fewer false alerts

https://pulsorup.com/
1•shura_dev•19m ago•1 comments

Defending Our Consciousness Against the Algorithms

https://nautil.us/defending-our-consciousness-against-the-algorithms-1279260
2•Brajeshwar•20m ago•0 comments

Accelerating Medical Treatments for Serious Mental Illness

https://www.whitehouse.gov/fact-sheets/2026/04/fact-sheet-president-donald-j-trump-is-acceleratin...
1•bkudria•22m ago•0 comments

How are you getting your first 100 paying teams for a Slack/Google Chat tool?

https://www.indiehackers.com/post/how-are-you-getting-your-first-100-paying-teams-for-a-slack-goo...
1•nehaagoyal•24m ago•0 comments

CrossOver 26.1 released for Linux and macOS

https://old.reddit.com/user/Wine_Reviews/comments/1sp6xl3/crossover_261_released_for_linux_and_mac/
1•twickline•24m ago•0 comments

The cost of inconsistent standups (and how we fixed it)

https://www.indiehackers.com/post/the-hidden-cost-of-inconsistent-standups-and-how-we-fixed-it-wb...
1•nehaagoyal•24m ago•0 comments

OpenAI Pulls Back from Stargate Norway Data Center Deal as Microsoft Takes Over

https://www.cnbc.com/2026/04/15/openai-stargate-norway-project-microsoft.html
1•ninjahawk1•25m ago•0 comments

Hyperloom – A concurrent state broker and time-travel debugger for AI

1•debabhishek•25m ago•0 comments

Xata OSS: Postgres platform with branching, now Apache 2.0

https://xata.io/blog/open-source-postgres-branching-copy-on-write
1•mebcitto•27m ago•0 comments

Letting Bots Learn to Move Like Players

https://remvst.substack.com/p/letting-bots-learn-to-move-like-players
1•riidom•29m ago•0 comments

macOS Notifications for Claude Code and AeroSpace

https://kulikalov.com/claude-code-aerospace-notifications/
1•kulikalov•33m ago•0 comments

Up There with Carnegie

https://superconnectorbook.com/
1•Chrisszz•33m ago•0 comments

Show HN: Deadline.email – a daily reminder that you'll die

https://deadline.email
1•onesandofgrain•34m ago•0 comments

The Government Blacklisted the Best AI. It Came Back with the Same Red Lines

https://liminaldr.substack.com/p/the-government-tried-to-blacklist
1•BlendedPanda•35m ago•1 comments

Ask HN: What's Your Daily Routine?

1•chistev•37m ago•3 comments

Show HN: Anya – Offline static malware analysis (Rust)

https://github.com/elementmerc/anya
1•ElementMerc•42m ago•0 comments

Anchormd – Generate AI coding agent context files from any GitHub repo

https://anchormd.dev
1•aretedriver•44m ago•0 comments

The LMAX Architecture

https://martinfowler.com/articles/lmax.html
2•tosh•50m ago•1 comments