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!

Show HN: Dewobble – Filter out phantom clicks and mouse jitter

https://github.com/skorotkiewicz/dewobble
1•modinfo•49s ago•0 comments

AI's New Training Data: Your Old Work Slacks and Emails

https://www.forbes.com/sites/annatong/2026/04/16/ais-new-training-data-your-old-work-slacks-and-e...
1•gnabgib•1m ago•0 comments

Independent bookstores make quiet comeback as big chains dominate retail

https://www.theguardian.com/business/2026/apr/19/independent-bookstores-comeback
1•mykowebhn•11m ago•0 comments

Why every security awareness training has false positives

https://kindssecurity.com/blog/why-every-phishing-simulator-has-false-positives-except-one
2•paulwalkerSEC•13m ago•0 comments

Duolingo's CEO Backtracks Due to Backlash Over Performance Reviews

https://www.entrepreneur.com/business-news/duolingos-ceo-changing-how-he-measures-employee-perfor...
1•gpi•14m ago•0 comments

Show HN: Qapir – Generate API tests automatically from docs

https://app.qapir.io/
1•gradnichkovski•17m ago•1 comments

We beat Google's zero-knowledge proof of quantum cryptanalysis

https://blog.trailofbits.com/2026/04/17/we-beat-googles-zero-knowledge-proof-of-quantum-cryptanal...
1•rayhaanj•18m ago•0 comments

What's Your Favourite Amiga Games?

https://old.reddit.com/r/amiga/comments/1spxiu8/whats_your_favourite_amiga_games/
1•doener•18m ago•0 comments

How are you handling security for AI agents that use MCP tools?

1•bdhobson•20m ago•1 comments

The demand for local AI could shape a new business model for Apple

https://9to5mac.com/2026/04/19/apple-local-ai-server-hosting-new-business-model/
1•omer_k•20m ago•0 comments

MLX vs. CoreML on Apple Silicon: A Practical Guide to Picking the Right Back End

https://blog.ivan.digital/mlx-vs-coreml-on-apple-silicon-a-practical-guide-to-picking-the-right-b...
1•ipotapov•21m ago•0 comments

Tearing down a car telematic unit (and finding an accident on Facebook)

https://blog.quarkslab.com/tearing-down-a-car-telematic-unit-and-finding-an-accident-on-facebook....
2•breve•21m ago•0 comments

A Free and Open Source Orbital Flight Computer

https://gitlab.com/supernovalabs/pan-solar-nav
1•supernovalabs•22m ago•1 comments

Showcase: Kylrix; stop switching apps, your productivity suite all in one place

2•nathfavour•23m ago•0 comments

The fastest way to match characters on ARM processors?

https://lemire.me/blog/2026/04/19/the-fastest-way-to-match-characters-on-arm-processors/
1•mfiguiere•27m ago•0 comments

Show HN: Newsmaps.io a map of how news topics are covered by different countries

https://www.newsmaps.io/
2•mkoh•29m ago•0 comments

How Music Works [video]

https://www.youtube.com/watch?v=zbfKFa-reBE
1•gmays•29m ago•0 comments

Context.ai seemingly cause of Vercel breach

https://twitter.com/jaimeblascob/status/2045960143209152981
2•bearsyankees•29m ago•0 comments

EFF pushes back on Google data scandal response: 'Google screwed up'

https://www.androidauthority.com/eff-pushes-back-on-google-exception-claim-3658264/
2•donohoe•29m ago•0 comments

OpenMythos – open-source Mythos alternative

https://github.com/kyegomez/OpenMythos
1•orixilus•30m ago•0 comments

C++26: Reflection, Memory Safety, Contracts, and a New Async Model

https://www.infoq.com/news/2026/04/cpp-26-reflection-safety-async/
3•birdculture•30m ago•0 comments

Ask HN: Tactical/military reasons for difficulty unblocking the Hormuz Straits?

2•dsalzman•32m ago•1 comments

You're About to See a Lot of Critical Software Updates. Don't Ignore Them

https://www.wsj.com/tech/personal-tech/anthropic-mythos-security-software-updates-573cc9b3
2•fortran77•32m ago•1 comments

'Meow, meow': Pilots scolded after animal noises heard on air traffic radio

https://abcnews.com/US/meow-meow-pilots-scolded-after-animal-noises-heard/story?id=132076661
3•osnium123•34m ago•2 comments

BeagleConnect Zepto – A "$1 Computer" Based on TI MSPM0L1117 Cortex-M0 MCU

https://www.cnx-software.com/2026/04/19/beagleconnect-zepto-a-1-computer-based-on-ti-mspm0l1117-c...
1•HardwareLust•35m ago•0 comments

Satoshi Nakamoto: 'The best outcome is that no one ever finds out'

https://english.elpais.com/economy-and-business/2026-04-19/satoshi-nakamoto-the-reclusive-billion...
2•geox•38m ago•0 comments

Are developers burning out faster than ever? (survey)"

https://docs.google.com/forms/d/e/1FAIpQLSdu-1Sa6oPvhDtFtBuKEgeQ-xIUMTjGdtfRwVLJGibhJUAmOg/viewform
3•rechargedaily•39m ago•1 comments

The Invisible Migration from Nation-States to Stateless Nations

https://medium.com/discourse/the-invisible-migration-from-nation-states-to-stateless-nations-687b...
2•simonebrunozzi•42m ago•0 comments

Sardine Scam or Delicious Novelty?

https://ecency.com/hive-150329/@leaky20/sardine-scam-or-delicious-novelty
2•randycupertino•43m ago•1 comments

The State of Streaming Codecs 2026

https://www.streamingmedia.com/Articles/ReadArticle.aspx?ArticleID=173838
3•breve•44m ago•0 comments