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•12mo ago

Comments

zljdanceholic•12mo 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!

Turning the gears of an early modern search engine (2019)

https://www.rochester.edu/newscenter/book-wheel-modern-search-engine-364122/
1•Eridanus2•1m ago•0 comments

SED Diode

http://www.catb.org/jargon/html/S/SED.html
1•drmacak•3m ago•0 comments

git-sync

https://github.com/entireio/git-sync
1•tosh•5m ago•0 comments

Top Storyblok CMS Migration Companies to Choose From

https://focusreactive.com/blog/storyblok-cms-migration-companies/
1•katarinadrozd•6m ago•0 comments

Claude Code Source Code Breakdown

https://kuber.studio/blog/AI/Claude-Code%27s-Entire-Source-Code-Got-Leaked-via-a-Sourcemap-in-npm...
1•sea-gold•15m ago•0 comments

Vibe Maintainer

https://steve-yegge.medium.com/vibe-maintainer-a2273a841040
2•duggan•18m ago•0 comments

Oscar goes missing after Academy Award winner is blocked from taking on flight

https://www.bbc.com/news/articles/cz72j59znw3o
1•saikatsg•22m ago•0 comments

When Vibe Coding Fails: When to Buy versus When to Build

https://www.forbes.com/councils/forbesbusinesscouncil/2026/04/30/when-vibe-coding-fails-when-to-b...
2•sminchev•23m ago•0 comments

Canonical/Ubuntu have been under DDoS for more than 15h

https://status.canonical.com/#/incident/KNms6QK9ewuzz-7xUsPsNylV20jEt5kyKsd8A-3ptQEHpOd8VQ40ZQs-K...
4•jtlebigot•23m ago•0 comments

What Happened with Mars Sample Return?

https://mceglowski.substack.com/p/what-happened-with-mars-sample-return
2•calcifer•24m ago•0 comments

Nvidia's Jim Fan on the End Game for Robotics [video]

https://www.youtube.com/watch?v=3Y8aq_ofEVs
2•pbd•27m ago•1 comments

Show HN: WeSearch – Anonymous news aggregator with no algorithm, 700 sources

https://wesearch.press/
3•EGCstudy•27m ago•0 comments

SoftBank, Intel to develop ZAM memory – new memory designed as lower-power HBM

https://www.tomshardware.com/tech-industry/artificial-intelligence/softbank-subsidiary-working-wi...
4•rbanffy•27m ago•0 comments

Music with Lyrics Interferes with Cognitive Tasks (2023)

https://journalofcognition.org/articles/10.5334/joc.273
2•XzetaU8•32m ago•0 comments

Show HN: Git Shield – local hooks for secrets and PII

1•veke87•34m ago•0 comments

US lawmakers vote to reduce NSF funding by 20%

https://www.nature.com/articles/d41586-026-01427-6
3•warbaker•35m ago•0 comments

A more efficient implementation of Shor's algorithm

https://lwn.net/Articles/1066156/
2•signa11•39m ago•0 comments

Show HN: Global DNS record propagation visualization

https://www.tidelock.dev/dns/propagation
2•vojtechrichter•46m ago•1 comments

Special-Use Domain 'home.arpa.' (2018)

https://www.rfc-editor.org/rfc/rfc8375.html
1•rdpintqogeogsaa•48m ago•0 comments

OpenClaw Got Safer in Public

https://openclaw.ai/blog/openclaw-security-in-public
1•jacobtomlinson•52m ago•0 comments

Forget Ambition: A Case for Hopeless Creativity

https://www.youtube.com/watch?v=JdlagZ2iDgU
2•stuaxo•52m ago•0 comments

China Planted 78B New Trees Affecting Its Water Cycle

https://www.popularmechanics.com/science/environment/a71126116/china-reforesting-changes-hydrology/
4•kaptain•53m ago•0 comments

My local agentic dev setup today

https://willemvandenende.com/blog/engineering/my-local-agentic-dev-setup-today
2•ColinEberhardt•1h ago•0 comments

Exclusive eBook: Inside the stealthy startup that pitched brainless human clones

https://www.technologyreview.com/2026/04/30/1136684/exclusive-ebook-inside-the-stealthy-startup-t...
2•joozio•1h ago•0 comments

Lightweight OpenCode profile for routine dev work with focused agents

https://github.com/gc-victor/supersimple
1•gcv•1h ago•0 comments

I Built GeoGuesser but for Guns

https://gunguesser.com
2•salad-vr•1h ago•3 comments

Show HN: Parse your chat exports to find restaurants, trips, and activity ideas

https://github.com/DocSpring/chat_to_map
1•nathan_f77•1h ago•0 comments

Ubuntu / Canonical Launchpad Down

https://status.canonical.com/
2•tankenmate•1h ago•1 comments

'Completely horrible': UK job hunters share frustration with AI interviews

https://www.theguardian.com/technology/2026/may/01/uk-job-hunters-frustration-ai-interviews
5•beardyw•1h ago•4 comments

SlothDB a 5X Faster Alternative to DuckDB, ClickHouse DB

1•souravroy78•1h ago•0 comments