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!

ShannonBase is database agent platform

https://medium.com/@shannon.data.tech/shannonbase-is-databas-agent-platform-2e914ccfc45e
1•shannon-data-ai•4m ago•1 comments

Architecture is all you need (How to think about agentic design)

https://x.com/compose/articles/edit/2046045421844455424
1•Kushal6070•5m ago•0 comments

Kindle E-Readers Released in 2012 or Earlier

https://www.amazon.com/gp/help/customer/display.html?nodeId=TRXsYxKJr4WTdsVs2P
1•bandwitch•7m ago•1 comments

The AI-Ready Product Data Framework for B2B Commerce

https://virtocommerce.com/assets/ai-ready-pim-framework
2•lizzieyo•7m ago•0 comments

How (and why) we rewrote our production C++ front end infrastructure in Rust

https://blog.nearlyfreespeech.net/2026/04/17/how-and-why-we-rewrote-our-production-c-frontend-inf...
1•birdculture•7m ago•0 comments

Show HN: Busybee - a FIFO build queue for multi-agent dev workflows

https://github.com/githappens/busybee
1•playfultones•8m ago•1 comments

WhatsApp Plus is rolling out new premium features

https://wabetainfo.com/whatsapp-plus-is-rolling-out-new-premium-features/
1•fwn•9m ago•0 comments

DuckDB Now Speaks Dutch

https://duckdb.org/2026/04/01/duckdb-now-speaks-dutch
1•saeedesmaili•10m ago•0 comments

Understanding the Go Runtime: The Network Poller

https://internals-for-interns.com/posts/go-netpoller/
1•valyala•12m ago•0 comments

Salesforce Stopped Paying for Salesforcefoundation.org

1•october8140•12m ago•1 comments

Smartphones, Online Music Streaming, and Traffic Fatalities

https://www.nber.org/papers/w34866
1•nixass•17m ago•0 comments

Controlling the secondary fan on Minisforum AI Pro HX 370

https://github.com/MiniPcThinker/minisforum_ai_pro_hx_370_aux_fan_controller/blob/main/INVESTIGAT...
1•minipcthinker•17m ago•0 comments

Prediction Markets: Last Week Tonight with John Oliver [video]

https://www.youtube.com/watch?v=ZN4njIQcSR4
3•Topfi•27m ago•0 comments

File System Wars

https://bytearchitect.io/macos-security/theory/Filesystem-Wars-Why-Your-Choice-of-Storage-is-Actu...
1•rantingdemon•27m ago•0 comments

Email Newsletter Management

https://gemvoyage.net/
1•princesauro•28m ago•0 comments

Bloomberg Terminal is ugly and clunky, but everyone uses it. Even their enemies

https://twitter.com/mb_ghalibaf/status/2045986841220772123
1•haebom•29m ago•0 comments

Neuro-Symbolic Ode Discovery with Latent Grammar Flow

https://arxiv.org/abs/2604.16232
1•ahsillyme•31m ago•0 comments

ZeusHammer – Built an AI Agent That "Thinks Locally"

https://github.com/pengrambo3-tech/ZeusHammer
1•RamboZeusHammer•32m ago•0 comments

New Debian Project Leader Elected for 2026

https://www.phoronix.com/news/Debian-DPL-Sruthi-Chandran
1•axbyte•34m ago•0 comments

Dentavive Legit or Scam in 2026? ( Hype or Trusted Choice?) [pdf]

https://fsc.org/sites/default/files/webform/problem_with_unacceptable_activi/_sid_/Dentavive1Guid...
1•hauzlapy•35m ago•0 comments

Show HN: I Recreated Encarta's MindMaze

https://medium.com/@laurentiu.raducu/i-recreated-encartas-mindmaze-and-added-it-to-select-supply-...
3•laurentiurad•35m ago•1 comments

Show HN: Keshro, plan and execute migrations with AI agents

https://keshro.com
1•jlewitt1•40m ago•1 comments

People and AI

https://insurtechamsterdam.com/blog/ai-people-strategy-insurance
1•Venesha•40m ago•0 comments

Authorship and Involuntary Attribution

https://www.prio.org/comments/1156
1•jruohonen•40m ago•0 comments

Harmandeep Singh Kandhari Leading with Vision in a Rising Punjab Investment

https://sites.google.com/view/harmandeep-singh-kandhari
1•KirtiKKapoor•40m ago•0 comments

AI assistants are changing how people buy insurance

https://insurtechamsterdam.com/blog/how-ai-assistants-are-changing-how-people-buy-insurance
2•Venesha•41m ago•1 comments

AEO versus SEO: What is answer engine optimisation (AEO) for insurers?

https://insurtechamsterdam.com/blog/what-is-answer-engine-optimisation-aeo-for-insurers%20-aeo-ve...
2•Venesha•41m ago•0 comments

Brussels launched an age checking app. Hackers took 2 minutes to break it

https://www.politico.eu/article/eu-brussels-launched-age-checking-app-hackers-say-took-them-2-min...
18•axbyte•45m ago•2 comments

Show HN: Free AI image background remover online

https://bgremoval.net/
1•cottomzhang•45m ago•0 comments

AI quota inflation is no token effort. It's baked in

https://www.theregister.com/2026/04/20/inflation_ai_quota/
2•jjgreen•45m ago•0 comments