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!

The Machiavellian Maze

https://www.robkhenderson.com/p/the-machiavellian-maze
1•barry-cotter•3m ago•0 comments

Pretext: JavaScript/TypeScript library for multiline text measurement and layout

https://github.com/chenglou/pretext
1•davidbarker•4m ago•0 comments

Building shared coding guidelines for AI (and people too)

https://stackoverflow.blog/2026/03/26/coding-guidelines-for-ai-agents-and-people-too/
1•vinhnx•6m ago•0 comments

Scientists film whale giving birth while other whales work together to help her

https://www.theguardian.com/environment/2026/mar/27/scientists-film-whale-giving-birth-other-whal...
1•sandebert•6m ago•0 comments

Ada and Spark on ARM Cortex-M – A Tutorial with Arduino and Nucleo Examples

http://inspirel.com/articles/Ada_On_Cortex.html
1•swq115•6m ago•0 comments

Poison AI Training Data Scrapers

https://github.com/austin-weeks/miasma
1•250call•14m ago•1 comments

Show HN: Local Vault – AES-256-GCM password manager in a single HTML file

https://github.com/RachidBoutaguiout/local-vault
1•frederic123•15m ago•0 comments

Stop Calling Them VPNs (2024)

https://flameeyes.blog/2024/09/29/stop-calling-them-vpns/
2•sysoleg•20m ago•0 comments

Ask HN: Best place to host a Node.js App in 2026

1•chbkall•22m ago•0 comments

The Deliverable Is You Programming as Theory Building

https://nekolucifer.substack.com/p/the-deliverable-is-you-programming
1•tartoran•23m ago•0 comments

Stop Calling Every AI Miss a Hallucination

https://ai.gtzilla.com/papers/stop-calling-every-ai-miss-a-hallucination-v1.0/
2•osconfused•25m ago•0 comments

Show HN: BillingEngine – usage-based billing for APIs with real-time rating

https://billingengine.cloud/cs/
1•mkellercz•31m ago•0 comments

Play Anthakshari

https://anthakshari.ai/
2•hareeshimo•33m ago•0 comments

101 Ads – Highway 101 Billboard Map

https://101ads.org/
1•ChrisArchitect•34m ago•0 comments

What happens when you clone mice for 20 years straight?

https://denovo.substack.com/p/what-happens-when-you-clone-mice
2•vinhnx•46m ago•0 comments

Atomic Rockets – Build your own spaceship

https://projectrho.com/public_html/rocket/heatrad.php
1•vismit2000•49m ago•0 comments

Show HN: Every Minute a Startup

https://everyminuteastartup.com
1•sawirricardo•49m ago•0 comments

What do frontier AI companies' job postings reveal about their plans?

https://epochai.substack.com/p/what-do-frontier-ai-companies-job
1•vinhnx•51m ago•0 comments

Pi: The Minimal Agent Within OpenClaw

https://lucumr.pocoo.org/2026/1/31/pi/
1•Anon84•55m ago•0 comments

Show HN: VizTools – 16 free tools for PMs and freelancers, deliberately no AI

https://viztools.app/
2•mizarau•56m ago•0 comments

400 cuckoo clocks go on display as time springs forward

https://www.rte.ie/news/ireland/2026/0328/1565545-clocks-exhibition-waterford/
2•austinallegro•1h ago•0 comments

Potato Fruit

https://en.wikipedia.org/wiki/Potato_fruit
3•jedbrooke•1h ago•0 comments

Adaptive hedging library (reduces p99 latency by ~74%)

https://github.com/bhope/hedge
1•soniccontroller•1h ago•0 comments

The Joy of Numbered Streets

https://humantransit.org/2026/03/the-joy-of-numbered-streets-or-call-it-39th-avenue.html
4•dmit•1h ago•0 comments

Bitmoji Anthropology [video]

https://www.youtube.com/watch?v=E2I0tqgaEVo
1•broabprobe•1h ago•0 comments

Dandelion Mesh: Serverless mesh network for browsers using WebRTC

https://github.com/predatorray/dandelion-mesh
1•zetaplusae•1h ago•0 comments

I made aipack and wanted to share

https://github.com/shrug-labs/aipack
1•waffleman21•1h ago•1 comments

CLTR finds a 5x increase in scheming-related AI incidents

https://www.longtermresilience.org/reports/v5-scheming-in-the-wild_-detecting-real-world-ai-schem...
1•kuerbel•1h ago•0 comments

I did a deep dive into cursors SQLite storages, different from Claude Code

https://vibe-replay.com/blog/cursor-local-storage/
1•tuo-lei•1h ago•2 comments

Aldus PageMaker on the Apple Macintosh

https://stonetools.ghost.io/pagemaker-mac/
2•zdw•1h ago•0 comments