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!

Monad Tutorials Timeline

https://wiki.haskell.org/Monad_tutorials_timeline
2•brudgers•4m ago•0 comments

Lessons from Building an OTel Normalizer for GenAI

https://www.groundcover.com/blog/otel-normalizer-genai-part-1
1•thebitofmyheart•8m ago•0 comments

Physicists reveal universal speed limit on quantum information scrambling

https://phys.org/news/2026-04-physicists-reveal-universal-limit-quantum.html
1•thunderbong•14m ago•1 comments

Talking About Dark Matter – Sixty Symbols [video]

https://www.youtube.com/watch?v=qxuMRaUbWow
1•celias•15m ago•1 comments

Show HN: Vela Coach – an open-source coach that reads your Granola transcripts

https://github.com/Vela-Engineering/coach
1•yihlamur•15m ago•0 comments

Ashby's Law of Requisite Variety (Cybernetics)

https://en.wikipedia.org/wiki/Variety_(cybernetics)
1•nomilk•16m ago•0 comments

Humanoid Robots Are Still a Body Problem with Jerry Pratt [video]

https://www.youtube.com/watch?v=fsPDZjWMKMs
2•thunderbong•23m ago•0 comments

Meta stock drops on quarterly results 'internet disruptions' user numbers down

https://www.cnbc.com/2026/04/29/meta-q1-earnings-report-2026.html
1•1vuio0pswjnm7•26m ago•0 comments

In Backlash Against Tech in Schools, Parents Are Winning Rollbacks

https://www.nytimes.com/2026/04/29/technology/parents-school-tech-backlash.html
2•1vuio0pswjnm7•29m ago•0 comments

Tourist dies after being bitten at snake show while on vacation in Egypt

https://www.cnn.com/2026/04/28/africa/tourist-dies-snake-bite-egypt-scli-intl
1•fortran77•30m ago•0 comments

OpenAI, Sam Altman Hit with Slate of Lawsuits over Mass Shooting Canadian School

https://www.law.com/therecorder/2026/04/29/openai-sam-altman-hit-with-slate-of-lawsuits-over-mass...
2•1vuio0pswjnm7•31m ago•0 comments

Infrastructure Spend in the AI Era

https://redmonk.com/sogrady/2026/04/29/infrastructure-spend-in-the-ai-era/
1•mooreds•32m ago•0 comments

The Harmful Consequences of the Robustness Principle (2018)

https://datatracker.ietf.org/doc/html/draft-thomson-postel-was-wrong-03
1•Tomte•33m ago•0 comments

AMS – Detect unsafe LLMs in 30 seconds via activation analysis

https://github.com/GoogleCloudPlatform/activation-model-scanner
1•gmessenger•35m ago•0 comments

Fanspeak (1999)

https://www.fantasymaps.com/stuff/fanspeak.html
1•ipnon•36m ago•0 comments

Operation Sundevil (1990)

https://en.wikipedia.org/wiki/Operation_Sundevil
1•rickcarlino•42m ago•0 comments

Stablecoin Reserve Race: Brazil Pix, Morgan Stanley, OCC Charters

https://stablecoinbrief.substack.com/p/stablecoin-reserve-race-brazil-pix
1•knivef•47m ago•0 comments

Building agents that reach production systems with MCP

https://claude.com/blog/building-agents-that-reach-production-systems-with-mcp
1•gmays•53m ago•0 comments

Biology is a Burrito: A text- and visual-based journey through a living cell

https://burrito.bio/essays/biology-is-a-burrito
26•the-mitr•1h ago•3 comments

Can LLMs create lasting flashcards from readers' highlights?

https://memory-machines.com/report/
1•jryio•1h ago•0 comments

The Arpanet Reconstruction Project

https://obsolescence.dev/arpanet_home.html
2•ecliptik•1h ago•0 comments

Where the goblins came from

https://openai.com/index/where-the-goblins-came-from/
150•ilreb•1h ago•65 comments

Demonstrating the idea of gamma camera imaging [video]

https://www.youtube.com/watch?v=PyGlHtvihXA
4•num42•1h ago•0 comments

Ernie 5.1 Preview

https://ernie.baidu.com/
3•qainsights•1h ago•0 comments

Strait of Hormuz Daily Intelligence

https://insights.windward.ai/
3•jnord•1h ago•0 comments

LFM2-24B-A2B: Scaling Up the LFM2 Architecture

https://www.liquid.ai/blog/lfm2-24b-a2b
2•nateb2022•1h ago•0 comments

Finetuning Activates Verbatim Recall of Copyrighted Books in LLMs

https://github.com/cauchy221/Alignment-Whack-a-Mole-Code
27•reconnecting•1h ago•5 comments

Functional Programmers need to take a look at Zig

https://pure-systems.org/posts/2026-04-29-functional-programmers-need-to-take-a-look-at-zig.html
23•xngbuilds•1h ago•4 comments

Transponders to be installed on New York area airport ground vehicles

https://apnews.com/article/laguardia-plane-crash-air-canada-transponders-18578e94f2f7ec67b5ed45e9...
2•geox•1h ago•0 comments

GitHub Is Sinking

https://dbushell.com/2026/04/29/github-is-sinking/
5•xngbuilds•1h ago•1 comments