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•1y ago

Comments

zljdanceholic•1y 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!

Design and engineering solve different problems; AI is forgetting that

https://www.jeana.dev/thoughts/2026/04/ai-for-designers/
2•speckx•2m ago•0 comments

Commutator Intuition

https://pgadey.ca/notes/commutator-intuition/
2•surprisetalk•2m ago•0 comments

PSF Strategic Plan 2026 Draft: Open for Community Feedback

https://pyfound.blogspot.com/2026/06/psf-strategic-plan-2026-draft-open-for.html
1•lumpa•2m ago•0 comments

127.0.0.1 in eight headers: what attackers hide in X-Forwarded-For

https://honeylabs.net/blog/what-attackers-hide-in-forwarding-headers
1•Robbedoes•3m ago•0 comments

I just hacked fractionalized NFTs and onchain bonds

https://page.twentythreeinreverse.com/
1•bryonyoni•4m ago•0 comments

Bloom – Beautifull Disk Space Cleaner (Free for Limited Time)

https://apps.apple.com/us/app/bloom-disk-space-cleaner/id6775048425?mt=12
1•KafKev•4m ago•0 comments

Bread made from yeast of Ötzi the Iceman's yeast, a 5,300 year old mummy

https://www.livescience.com/archaeology/it-was-very-very-good-otzi-the-icemans-body-is-covered-in...
1•gmays•6m ago•0 comments

Less than 4% Australians trust AI companies

https://www.abc.net.au/news/2026-06-04/artificial-intelligence-australians-trust-survey-pope-leo-...
1•soundworlds•7m ago•0 comments

The Return of Soft Skills in the Age of GenAI and Agentic Software Development

https://cacm.acm.org/blogcacm/the-return-of-soft-skills-in-the-age-of-genai-and-agentic-software-...
1•tchalla•7m ago•0 comments

The Last Engineer – Player Piano and the Automation of Purpose

https://readgrounded.com/episodes/004-player-piano/
1•readgrounded•8m ago•0 comments

Outlanders, Raleigh's Self-Governed Homeless Community

https://indyweek.com/news/inside-outlanders-raleighs-self-governed-homeless-community/
1•js2•8m ago•0 comments

Show HN: HetGuard – Automated backup scheduling for Hetzner Cloud

https://hetguard.com/
2•therov•8m ago•0 comments

Show HN: Hello Inbox – Your AI Email Deliverability Expert, Available 24/7

https://www.helloinbox.email/
2•ismaelyws•8m ago•0 comments

Designing a Better Podcast Editor

https://www.adamsolove.com/ui/ducking/2026/06/03/better-podcast-ui.html
1•robenkleene•9m ago•0 comments

Pairing AI with Optical Device to Correct Distorted Light for Sharper Imaging

https://qi.ucsd.edu/uc-san-diego-team-pairs-ai-with-tiny-optical-device-to-correct-distorted-ligh...
1•geox•9m ago•0 comments

Counterfactuals

https://colinmcginn.net/counterfactuals/
1•speckx•12m ago•0 comments

Ask HN: What happens when humans become as dumb as AI?

3•h45x1•12m ago•1 comments

Brighton Seafront Death Toll Increases

https://mttv.substack.com/p/brighton-seafront-death-toll-increases
1•GDNews503AD•13m ago•0 comments

Knoebels Amusement Resort celebrates 100 years of free admission in 2026

https://www.foxnews.com/travel/nearly-100-years-later-beloved-amusement-park-still-refuses-charge...
2•Tomte•13m ago•0 comments

A most musical traffic stop

https://soundcloud.com/luke-schenk/june-30th-2025
1•LukeDSchenk•14m ago•0 comments

Only 35 domains link to all 8 of the top project management tools

https://crawlgraph.com/blog/who-links-to-every-project-management-tool
1•pucilpet•14m ago•0 comments

Show HN: GrayCloud – a modern Dark Sky alternative

https://graycloud.app/
3•b1akely•15m ago•0 comments

Show HN: Foodpanda skill to automate ordering through Chrome

https://github.com/javaid-codes/foodpanda-fruit-order-skill/tree/main
2•WasimBhai•15m ago•0 comments

A16Z's global mission (by Ben Horowitz)

https://www.a16z.news/p/a16zs-global-mission
1•7777777phil•16m ago•0 comments

CIFSswitch – local privilege escalation vulnerability

https://heyitsas.im/posts/cifswitch/
1•axbyte•17m ago•1 comments

What Columbus used instead of the North Star

https://signoregalilei.com/2026/05/24/what-columbus-used-instead-of-the-north-star/
2•surprisetalk•17m ago•0 comments

Ask HN: Gin Rummy Strategies

1•bix6•18m ago•0 comments

Lufthansa Boeing 787-9 suffers nose gear collapse at Frankfurt Airport

https://www.aviation24.be/airlines/lufthansa-group/lufthansa/boeing-787-9-herne-suffers-nose-gear...
1•N19PEDL2•20m ago•0 comments

The Alignment Layer

https://hassenchaieb.com/ai-org-layers/
1•hac96•21m ago•1 comments

Spatial codebase explorer with refactor forecasts – no LLMs

https://code-atlas.up.railway.app
2•SeifPetit•23m ago•0 comments