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

Comments

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

Tesla's Model S, Soon to Be History, Changed the Auto Industry

https://www.nytimes.com/2026/01/30/business/tesla-model-s-history.html
1•lxm•1m ago•0 comments

Show HN: G – A fast, memory-safe language with a symbol-free syntax

https://github.com/pouyathe/glang
1•_pouya_•10m ago•0 comments

Learning New Tech with AI Assistance Might Backfire

https://www.anup.io/til-learning-new-tech-with-ai-assistance-might-backfire/
3•zdw•13m ago•0 comments

Russia is using Starlink to make its killer drones fly farther

https://www.cnn.com/2026/01/29/europe/russia-starlink-drones
4•MilnerRoute•16m ago•0 comments

Generative AI for Krita

https://github.com/Acly/krita-ai-diffusion
1•OsrsNeedsf2P•27m ago•0 comments

First MW-class S2000 airborne wind turbine

https://www.yankodesign.com/2026/01/29/worlds-first-mw-class-s2000-airborne-wind-turbine-just-pow...
2•oco101•28m ago•0 comments

Parent company of Johnny Rockets, Fatburger files for bankruptcy

https://abc7.com/post/parent-company-johnny-rockets-fatburger-files-bankruptcy/18504271/
1•lxm•29m ago•0 comments

Group at CNIO eliminates pancreatic tumours in mice

https://www.cnio.es/en/news/the-group-led-by-barbacid-at-cnio-completely-eliminates-pancreatic-tu...
1•thunderbong•41m ago•0 comments

Show HN: Lightweight Ollama / Open Web UI Alternative

https://github.com/contactwajeeh/ollamagoweb-v2
1•mwze•43m ago•0 comments

Toyota partner breaks ground on electrolytes plant for solid-state EV batteries

https://electrek.co/2026/01/30/toyota-partner-breaks-ground-on-all-solid-state-ev-battery-plant/
1•breve•44m ago•0 comments

DECT NR+ Link-Level Simulation

https://www.mathworks.com/matlabcentral/fileexchange/182375-dect-nr-plus-link-level-simulation
1•teleforce•44m ago•0 comments

ICE Expands Power of Agents to Arrest People Without Warrants

https://www.nytimes.com/2026/01/30/us/politics/ice-expands-power-agents-warrants.html
34•jbegley•46m ago•17 comments

Stop Child Abuse – Trace an Object

https://www.europol.europa.eu/stopchildabuse
2•basilikum•47m ago•0 comments

Silver and gold hit record highs – then crashed

https://theconversation.com/silver-and-gold-hit-record-highs-then-crashed-before-joining-the-rush...
1•cratermoon•48m ago•0 comments

Using an RTL-SDR as a Spectrum Analyzer

http://www.kerrywong.com/2014/11/16/testing-an-rtl-sdr-spectrum-analyzer/
1•jacquesm•48m ago•0 comments

CATL and BYD bet on sodium-ion EV batteries to overcome rising lithium prices

https://electrek.co/2026/01/30/catl-byd-betting-on-new-type-of-ev-battery/
1•breve•49m ago•0 comments

USA Ubiquiti Gear Powers Russian Military Networks in Ukraine Despite Sanctions

https://united24media.com/latest-news/us-made-ubiquiti-gear-powers-russian-military-networks-in-u...
4•nerdsniper•49m ago•0 comments

SaneBar – Privacy-first menu bar manager for macOS (open source)

https://sanebar.com/
1•sanebar•53m ago•1 comments

You are being misled about renewable energy technology [video]

https://www.youtube.com/watch?v=KtQ9nt2ZeGM
5•tartoran•55m ago•0 comments

Show HN: I created a Polymarket Insider dashboard so you don't have to

https://backtest.lol/
1•pinkbanana21•56m ago•0 comments

My Workplace Disallows APIs

3•austinthecoder•1h ago•2 comments

Exploiting MediaTek's Download Agent

https://blog.r0rt1z2.com/posts/exploiting-mediatek-datwo/
2•timschumi•1h ago•0 comments

Court Filings: ICE App Identifies Protesters; Global Entry, PreCheck Get Revoked

https://viewfromthewing.com/court-filings-ice-uses-mobile-fortify-to-identify-protesters-global-e...
92•datsci_est_2015•1h ago•37 comments

Show HN: A2ABench – agent-native dev Q&A with MCP search/fetch and A2A discovery

https://a2abench-api.web.app
1•khalidsaidi•1h ago•0 comments

Elon Musk emailed Epstein about 'wildest party' on private island: new docs

https://www.ms.now/all-in/watch/elon-musk-emailed-epstein-about-wildest-party-on-private-island-n...
15•NuclearPM•1h ago•1 comments

Coding Is When We're Least Productive

https://codemanship.wordpress.com/2026/01/30/coding-is-when-were-least-productive/
3•vinhnx•1h ago•0 comments

Show HN: Open Sandbox – an open-source self-hostable Linux sandbox for AI agents

https://github.com/diggerhq/opensandbox
3•iacguy•1h ago•0 comments

Testing AI agents on web security challenges

https://www.irregular.com/publications/testing-ai-agents-on-web-security-challenges
1•botacode•1h ago•0 comments

Goblins: Distributed, Transactional Programming with Racket and Guile

https://spritely.institute/goblins/
2•alhazrod•1h ago•0 comments

Show HN: I built a free PDF to Markdown converter

https://freeaitoolforthat.com/pdf-to-markdown
2•tamnv•1h ago•0 comments