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!

GCC 16.1 Released

https://gcc.gnu.org/pipermail/gcc/2026-April/248065.html
1•edelsohn•35s ago•0 comments

I tricked 3M people into believing in an evil fake polycule

https://rawandferal.substack.com/p/norman-polycule
1•jjmarr•2m ago•0 comments

Jesus' Time Management Secret [video]

https://www.youtube.com/watch?v=U-89DOwuZXM
1•Brysonbw•3m ago•0 comments

I aggregated 28 US Government auction sites into one search

https://bidprowl.com
3•scarsam•10m ago•0 comments

Repatriated Scammers Are a Security Risk, Says Kenyan Government

https://commsrisk.com/repatriated-scammers-are-a-security-risk-says-kenyan-government/
2•campuscodi•10m ago•0 comments

Agenda‑Intelligence.md: a protocol that turns AI news summarizers into analysts

https://github.com/vassiliylakhonin/agenda-intelligence-md
1•vassilbek•14m ago•0 comments

A.I. Bots Told Scientists How to Make Biological Weapons

https://www.nytimes.com/2026/04/29/us/ai-chatbots-biological-weapons.html
1•Anon84•14m ago•0 comments

Company says nuclear fusion could power the grid – and soon

https://www.cnn.com/2026/04/30/climate/nuclear-fusion-real-world-electricity-grid
2•mpweiher•16m ago•0 comments

Using asteroid early orbital data for rapid Mars missions

https://www.sciencedirect.com/science/article/pii/S0094576526002456
1•compounding_it•16m ago•0 comments

Belgium stops decommissioning nuclear power plants

https://dpa-international.com/general-news/urn:newsml:dpa.com:20090101:260430-930-14717/
3•mpweiher•17m ago•0 comments

Indonesia urges social media platforms to disclose number of U16 accounts closed

https://apnews.com/article/indonesia-social-media-children-under-16-39630c776f947652cde619ad4ae56627
1•1vuio0pswjnm7•21m ago•0 comments

Samsung Electronics Earnings Presentation Q12026 [pdf]

https://images.samsung.com/is/content/samsung/assets/global/ir/docs/2026_1Q_conference_eng.pdf
1•TechTechTech•22m ago•0 comments

NSA networking tool poses threat to national security

https://www.sdxcentral.com/news/nsa-networking-tool-poses-threat-to-national-security/
1•giuliomagnifico•22m ago•0 comments

The 2026 AI Index Report

https://hai.stanford.edu/ai-index/2026-ai-index-report
1•mooreds•23m ago•0 comments

Lens Agents: Governing AI Agents Across Desktop, Cloud, and On-Prem

https://lenshq.io/blog/introducing-lens-agents
3•flaviuscdinu•23m ago•0 comments

Merchantoria.com – Payment and Merchant providers comparison aggregator

https://merchantoria.com
1•jangozo•25m ago•1 comments

Is tech's AI spending working?

https://www.latimes.com/business/story/2026-04-29/trillion-dollar-question-is-techs-massive-ai-sp...
1•1vuio0pswjnm7•29m ago•0 comments

Fido Alliance to Develop Standards for Trusted AI Agent Interactions

https://fidoalliance.org/fido-alliance-to-develop-standards-for-trusted-ai-agent-interactions/
1•bpierre•30m ago•0 comments

Show HN: NVIM config that I use with my agents

https://github.com/NishantJoshi00/nvim-config
3•cat-whisperer•30m ago•0 comments

Tar files made in macOS generate "xattr" errors when expanded in Linux

https://aruljohn.com/blog/macos-created-tar-files-linux-errors/
2•heresie-dabord•31m ago•1 comments

The quiet layoffs China's tech giants

https://restofworld.org/2026/china-tech-layoffs-alibaba-baidu-ai-pivot/
1•giuliomagnifico•31m ago•0 comments

Show HN: Run Claude Code sessions on Linear issues via two MCP servers

https://lanes.sh/blog/linear-to-lanes
2•s-xyz•31m ago•0 comments

Americans lost $2.1B to social media scams in 2025, 8x more than in 2020

https://fortune.com/2026/04/28/ftc-social-media-scams-americans-lose-billions-meta-facebook-whats...
2•1vuio0pswjnm7•33m ago•0 comments

Tap Jewels is a classic match-3 gem game for the Amiga computer

https://www.amiga-shop.net/en/Amiga-Software/Amiga-Games/Tap-Jewels-classic-Amiga-download-versio...
1•doener•35m ago•0 comments

Do the geniuses in the datacenter get lunch breaks?

https://blog.dnmfarrell.com/post/do-the-geniuses-in-the-datacenter-get-lunch-breaks/
2•davidfarrell•35m ago•1 comments

Thales – TypeScript compiler and JavaScript engine in Lean

https://github.com/jessealama/thales
2•michaelkrem•36m ago•0 comments

Content Engineering with Claude Code

https://ahrefs.com/blog/how-i-do-content-engineering-with-claude-code/
1•eigenBasis•38m ago•0 comments

Get Your Website/API Ready for Agentic Commerce in 1 Minute

https://www.startuphub.ai/agent-readiness
2•compulsivebuild•41m ago•1 comments

Bitmap and tilemap generation from a single example

https://github.com/mxgmn/WaveFunctionCollapse
1•futurecat•44m ago•0 comments

Redshift – Rehearsing for humanity's future on Mars

https://harpers.org/archive/2026/05/redshift-elena-saavedra-buckley-mars/
1•pseudolus•46m ago•0 comments