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!

Show HN: Excalidraw-edit – Open and edit .excalidraw files from the terminal

https://github.com/wh1le/excalidraw-edit
1•wh1le•2m ago•0 comments

JJM Address at the Arab Center

https://mearsheimer.substack.com/p/jjm-address-at-the-arab-center
1•hackandthink•3m ago•0 comments

Show HN: ColorPair – A free color-matching puzzle game for iOS

https://apps.apple.com/us/app/colorpair-puzzle-game/id6761508158
1•nykylomedia•4m ago•0 comments

Isaac Asimov on 1984

https://redsails.org/asimov-on-1984/
1•cybersoyuz•5m ago•0 comments

Why GEO is still kinda dumb

https://toffee.at/blog/why-geo-is-not-enough
1•Vishi_2•7m ago•0 comments

OpenAI is nothing without its people

https://geohot.github.io//blog/jekyll/update/2026/04/11/openai-people.html
1•eamag•8m ago•0 comments

Can AI Generate a Full Unity World from One Prompt? I Tested

https://darkounity.com/blog/can-ai-generate-a-full-unity-world-from-one-prompt-i-tested
2•hacker_13•9m ago•0 comments

NaiBor – Nashville public leadership tracking

https://clovenbradshaw-ctrl.github.io/naibor/
1•samename•9m ago•0 comments

Oil at $115: What a Hormuz Stress Model Shows

https://medium.com/@lightcapai/how-to-track-hormuz-risk-with-mcp-public-artifacts-and-reproducibl...
3•festafin•10m ago•0 comments

Rockstar Games Hacked, Hackers Threaten a Massive Data Leak If Not Paid Ransom

https://kotaku.com/rockstar-games-reportedly-hacked-massive-data-leak-ransom-gta-6-shinyhunters-2...
3•c420•12m ago•0 comments

What's obvious to you might not be to me

https://herbertlui.net/whats-obvious-to-you-might-not-be-to-me/
1•herbertl•13m ago•1 comments

Wheeeee Loop – A Superconductor Used Like a Battery

https://stateofutopia.com/experiments/wheeeeeloop/wheeeeeloop.html
1•logicallee•14m ago•1 comments

Macframe – IBM Mainframe Emulator for macOS

https://github.com/vitorallo/macframe-releases
3•rbanffy•18m ago•0 comments

Code Review Skills from uv, bun, vLLM

https://github.com/dtran24/code-reviewer-personas
2•dtran24•19m ago•0 comments

When Managers Cover Their Posteriors: Making Decisions the Market Wants to See

https://www.jstor.org/stable/2555842
1•rustoo•24m ago•0 comments

MCP Spine – Middleware proxy that cuts LLM tool token usage by 61%

https://github.com/Donnyb369/mcp-spine
3•Mxwell369•27m ago•0 comments

Gallup poll: GenZ AI adoption steady but skepticism on the rise

https://web.archive.org/web/20260410202758/https://news.gallup.com/poll/708224/gen-adoption-stead...
2•1vuio0pswjnm7•32m ago•1 comments

You should be able to SEE what your agents are doing. I created the solution

https://www.tarsy.dev/
3•leddo•33m ago•0 comments

Kids Are Discovering the Joys–and Pains–Of the Landline

https://www.wsj.com/lifestyle/kids-are-discovering-the-joysand-painsof-the-landline-f703d505
2•impish9208•33m ago•2 comments

Show HN: When Clocks Drift Apart

https://animeshchouhan.com/time/
1•animeshchouhan•34m ago•0 comments

We reverse-engineered Claude Code's billing system to fix overage charges

https://github.com/askalf/dario
2•askalf•35m ago•0 comments

Advanced Mac Substitute is an API-level reimplementation of 1980s-era Mac OS

https://www.v68k.org/advanced-mac-substitute/
4•zdw•38m ago•0 comments

What Is Hypernormalization?

https://adbusters.org/articles-coded/what-is-hypernormalization
1•burnt-resistor•38m ago•0 comments

Raising Carthaginian Armies, Part I: Finding Carthaginians

https://acoup.blog/2026/04/10/collections-raising-carthaginian-armies-part-i-finding-carthaginians/
1•gostsamo•39m ago•0 comments

Don't Be Evil

https://pluralistic.net/2026/04/11/obvious-terrible-ideas/
3•hn_acker•39m ago•0 comments

Preparing for My Own Funeral

https://chrisaustem.substack.com/p/preparing-for-my-own-funeral
2•putzdown•43m ago•0 comments

What tools do you use to visualize algorithms?

2•rjn32s•44m ago•2 comments

EU should regulate Big Tech, not banning kids from social media, Estonia says

https://www.politico.eu/article/europe-should-stand-up-to-big-tech-instead-of-imposing-social-med...
3•donohoe•47m ago•1 comments

The Structure of the Puma Computer System [pdf]

https://softwarepreservation.computerhistory.org/SETL/setl/doc/Grishman-Structure_of_Puma-1978.pdf
3•rbanffy•50m ago•0 comments

We replaced user accounts with Lightning payments for identity

https://blog.satsrail.com/payment-as-identity/
4•keymaker_p•51m ago•3 comments