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!

Cidre (French CIDR) – Rusty Apple API's

https://github.com/yury/cidre
1•dlahoda•1m ago•0 comments

How Big a Threat Are Iranian-Backed Cyberattacks?

https://www.newyorker.com/news/the-lede/how-big-a-threat-are-iranian-backed-cyberattacks
1•mitchbob•1m ago•1 comments

Playtesting and Tracking Feedback with Claude

https://www.jackfranklin.co.uk/blog/claude-code-ai-feedback-skill/
1•jackfranklin•6m ago•0 comments

spmd_types: A type system for distributed (SPMD) tensor computations in PyTorch

https://github.com/meta-pytorch/spmd_types
1•matt_d•7m ago•1 comments

France Investigates Temperature Spikes That Led to Big Payouts on Polymarket

https://www.nytimes.com/2026/04/24/world/europe/polymarket-bets-france-paris-temperature-weather....
1•chrononaut•9m ago•1 comments

Eurosky.social Account

https://eurosky.tech/accounts/
2•mooreds•11m ago•0 comments

Show HN: Obscura – V8-powered headless browser for scraping and AI agents

https://github.com/h4ckf0r0day/obscura
1•jryio•11m ago•0 comments

Buffalo is a welcoming blend of cool and old school

https://www.cnn.com/2025/05/31/travel/buffalo-new-york-wings-tourism
1•mooreds•11m ago•0 comments

Model as Medium: Five Artists, Five Models

https://titles.substack.com/p/model-as-medium-five-artists-five
1•exolymph•13m ago•0 comments

'Look, no hands': China chases the driverless dream at Beijing car show

https://www.theguardian.com/technology/2026/apr/24/china-chases-driverless-dream-beijing-car-show-ai
3•billybuckwheat•13m ago•0 comments

Firestarter malware survives Cisco firewall updates, security patches

https://www.bleepingcomputer.com/news/security/firestarter-malware-survives-cisco-firewall-update...
1•john_strinlai•14m ago•0 comments

100-year-old bugler prepares for Anzac Day ceremonies

https://www.abc.net.au/news/2026-04-24/100-year-old-bugler-anzac-day-ceremonies-brass/106598318
2•defrost•17m ago•0 comments

HS Student Built a Filter That Removes 96% of Microplastics from Drinking Water

https://www.smithsonianmag.com/innovation/this-high-school-student-invented-a-filter-that-elimina...
1•akyuu•18m ago•2 comments

Show HN: No AI – My Express.js codebase handled over $50M in prod

https://github.com/AnthonyBudd/express-ts-api-template
2•johnsmith2076•18m ago•0 comments

Show HN: Markdown as a Database

https://github.com/molefrog/lilmd
1•molefrog•19m ago•0 comments

An Engineer's Day at Dust

https://dust.tt/blog/an-engineers-day-at-dust
2•ilnmtlbnm•19m ago•0 comments

Show HN: Claude Code Manager

https://claude.ldlework.com/
1•ldlework•19m ago•0 comments

A New Type of Neuroplasticity Rewires the Brain After a Single Experience

https://www.quantamagazine.org/a-new-type-of-neuroplasticity-rewires-the-brain-after-a-single-exp...
2•rbanffy•20m ago•0 comments

Coding agents have no moat

https://tombedor.dev/coding-agents-have-no-moat/
3•jjfoooo4•22m ago•0 comments

Show HN: I built a simple site to reduce tool overload and improve focus

1•saeefwaleed•24m ago•0 comments

A New Idea to Save the Climate? Dam the Bering Strait

https://www.nytimes.com/2026/04/24/climate/amoc-bering-strait-dam.html
2•JumpCrisscross•26m ago•1 comments

Do I belong in tech anymore?

https://ky.fyi/posts/ai-burnout
4•patrikcsak•27m ago•1 comments

California Coastal Community Must Reject CBP's AI-Powered Surveillance Tower

https://www.eff.org/deeplinks/2026/04/california-coastal-community-must-reject-cbps-ai-powered-su...
3•ilreb•30m ago•0 comments

US Space Command: Russia is now operationalizing co-orbital ASAT weapons

https://arstechnica.com/space/2026/04/us-space-command-russia-is-now-operationalizing-co-orbital-...
6•rbanffy•34m ago•1 comments

Hitachi Ltd, Part I

https://www.abortretry.fail/p/hitachi-ltd-part-i
1•rbanffy•34m ago•0 comments

PiClaw v2.0.0 – A New Hope

https://github.com/rcarmo/piclaw/releases/tag/v2.0.0
1•rcarmo•34m ago•0 comments

Globalbiz Intelligence

https://news-scanner-ai.replit.app/landing-page/
1•globalbiz•35m ago•0 comments

Astor Raised $5M to Fix Retail Investing

https://www.siliconsnark.com/astor-raised-5m-to-fix-retail-investing-finally-a-fiduciary-with-pus...
1•SaaSasaurus•36m ago•0 comments

Wrote FA2 using CuteDSL, what worked and what didn't work

https://kyrieblunders.bearblog.dev/fa2_using_cutedsl/
1•vishal-padia•39m ago•0 comments

Greenfield and Iterative Development (from the creator of Superpowers)

https://primeradiant.com/blog/2026/greenfield-and-iterative-development.html
3•emschwartz•40m ago•0 comments