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•1y ago

Comments

zljdanceholic•1y 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!

EDR transparency study (Cisco, Kaspersky, Microsoft top the list)

https://av-comparatives.org/independent-study-highlights-transparency-and-data-practices-in-leadi...
1•AnnaKoro453•29s ago•0 comments

Builders Fallacy

https://davidgu.com/bf.html
1•benswerd•6m ago•1 comments

DAAF: Rigorous+responsible data analysis/research with Claude Code (open-source)

https://daaf.openaugments.org/
1•brhkim•6m ago•0 comments

Interview with Sam Conman

https://zhenyi.gibber.blog/interview-with-sam-conman
1•zhenyi•7m ago•0 comments

Mec builds first High-NA EUV-fabricated quantum dot qubit

https://www.tomshardware.com/tech-industry/semiconductors/imec-builds-worlds-first-high-na-euv-fa...
1•sbulaev•7m ago•0 comments

Type.lol

https://type.lol/
1•bookofjoe•8m ago•0 comments

Show HN: Nerve – self hosted runtime for AI agents

https://github.com/ClickHouse/nerve
2•animetyan•11m ago•0 comments

What Is a Direct Attach Copper (DAC) Cable

https://www.servethehome.com/what-is-a-direct-attach-copper-dac-cable/
1•teleforce•14m ago•0 comments

Every Frontier AI Is INTJ

https://zonted.com/posts/every-ai-is-intj/
1•bernardjhuang•15m ago•0 comments

PDFearn free $3 method daily pdf

https://pdfearn.blogspot.com/2026/05/free-pdf-earn-3-per-day-by.html
1•iLzKii•15m ago•1 comments

Canada losing top talent as workers head to the U.S.

https://www.bnnbloomberg.ca/investing/market-outlook/2026/05/25/market-outlook-canada-losing-top-...
5•leopoldj•15m ago•0 comments

Ask HN: Laptops with good Linux support and good build quality?

1•asxndu•17m ago•3 comments

Pope Leo's 'Magnifica humanitas': AI must serve humanity not concentrate power

https://www.vaticannews.va/en/pope/news/2026-05/pope-leo-xiv-encyclical-magnifica-humanitas-ai.html
2•SebastianSosa•18m ago•0 comments

How Shamir's Secret Sharing Works

https://ente.com/blog/how-shamirs-secret-sharing-works/
1•subract•20m ago•0 comments

Is 2027 the Next Year?

https://bsky.app/profile/davis.social/post/3mmpcff4cdc2r
2•hansmayer•21m ago•0 comments

Route 4: Reconstructing Execution Continuity in EVM Environments

https://blog.bridgexapi.io/route-4-reconstructing-execution-continuity-in-evm-environments
1•Bridgexapi•22m ago•0 comments

American journalist charged with serving as unregistered agent for China

https://www.politico.com/news/2026/05/25/american-journalist-unregistered-agent-china-00935518
1•cwwc•24m ago•0 comments

Agentic Patterns

https://veso.ai/research/agentic-patterns/
2•kinlan•25m ago•0 comments

The Virgin Unicorns

https://www.geekwire.com/2026/etzioni-on-ai-the-virgin-unicorns/
2•jkuria•27m ago•0 comments

Disappearing Polymorph

https://en.wikipedia.org/wiki/Disappearing_polymorph
1•atombender•27m ago•0 comments

Taking a walk may lead to more creativity than sitting, study finds

https://www.apa.org/news/press/releases/2014/04/creativity-walk
3•bilsbie•27m ago•3 comments

Micromania: The Whole Truth about Home Computers (1984)

https://taff.org.uk/ebooks.php?x=Micromania
2•sohkamyung•29m ago•0 comments

Astrum Verum – A Vector Symbolic cognitive memory that beats RAG

https://github.com/vitaliyfedotovpro-art/astrum-verum
1•astrumverum•30m ago•0 comments

The promise of weight-loss drugs keeps growing

https://www.washingtonpost.com/opinions/2026/05/24/glp-1-weight-loss-drugs-keep-growing-more-prom...
1•paulpauper•36m ago•0 comments

AI scans 400k Reddit posts and finds hidden Ozempic side effects

https://www.sciencedaily.com/releases/2026/05/260523103914.htm
2•paulpauper•36m ago•0 comments

The Making of Indian Statistics

https://altermag.com/articles/the-making-of-indian-statistics
2•paulpauper•37m ago•0 comments

Rethinking schizophrenia: insights from genomics and implications for research

https://www.nature.com/articles/s41380-026-03654-9
3•bookofjoe•40m ago•0 comments

Wazuh Detection Capabilities with Clickdetect, Opensearch PPL and Sigma Rules

https://medium.com/@souzo/extending-wazuh-detection-capabilities-with-clickdetect-opensearch-ppl-...
1•souzo•43m ago•0 comments

Permitted by Physics

https://protortyp.github.io/posts/permitted-by-physics/
1•protortyp•44m ago•0 comments

Show HN: Using Tailscale with an OrbStack VM on macOS

https://github.com/highpost/tailscale-macos-vm
2•highpost•48m ago•1 comments