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!

First ever AI feature film premieres at the Cannes Film Festival

https://www.cgmagonline.com/news/hell-grind-made-only-with-higgsfield-ai/
2•frays•11m ago•0 comments

SpaceX not the behemoth everyone thought

https://www.axios.com/2026/05/21/spacex-ipo-musk-ai
13•kaycebasques•22m ago•0 comments

Israel's arrogance is becoming the evidence in the case against it

https://www.aljazeera.com/opinions/2026/5/21/israels-arrogance-is-becoming-the-evidence-in-the-ca...
3•hebelehubele•24m ago•0 comments

AI workflows: an industry optimising the wrong variables

https://adsurg.substack.com/p/navigating-ai-with-paper-maps
1•adamsurg•24m ago•0 comments

Tell HN: I went to Alaska's northernmost town and this was the GeoIP location

1•ironmagma•28m ago•0 comments

Show HN: TLS Certificate Management and PKI

1•zaitanz•31m ago•0 comments

Newsom intervenes amid historic tech layoffs

https://www.sfgate.com/politics/article/newsom-california-ai-layoffs-22271312.php
3•jimt1234•43m ago•1 comments

Kyle Busch, two-time NASCAR Cup Series champion, dies at age 41

https://www.nascar.com/news-media/2026/05/21/kyle-busch-two-time-nascar-cup-series-champion-dies-...
2•avonmach•47m ago•0 comments

Destiny 2 will no longer be updated

https://twitter.com/destinythegame/status/2057506887600361720
1•azhenley•48m ago•0 comments

SpaceX Fuels More Than 3k% Return for Washington University

https://www.bloomberg.com/news/articles/2026-05-21/spacex-fuels-more-than-3-000-return-for-washin...
1•yakkomajuri•48m ago•0 comments

Show HN: Tight C, a systems language with 10 keywords

https://github.com/alonsovm44/tc-lang/
2•alonsovm44•52m ago•0 comments

Show HN: Roughform, a free Browser-Based 3D Creation Tool

https://roughform.app
1•benhmoore•53m ago•1 comments

Negation Neglect: When models fail to learn negations in training

https://arxiv.org/abs/2605.13829
1•chr15m•59m ago•0 comments

Big Tech software era is over, says top investor James Anderson

https://www.ft.com/content/9d2bd5b3-80c6-49b9-a04b-edc4162c9320
1•1vuio0pswjnm7•1h ago•2 comments

AI Model Inflation: The Unsustainable Subsidy

https://tomtunguz.com/ai-model-inflation/
2•allen-munsch•1h ago•0 comments

Nicotine Patches to Treat Long Covid

https://www.mcgill.ca/oss/article/medical-health-and-nutrition-pseudoscience/strange-story-nicoti...
1•brandonb•1h ago•0 comments

DeepSeek Founder Declares AGI Goal as $10B Round Advances

https://www.bloomberg.com/news/articles/2026-05-22/deepseek-founder-declares-agi-goal-as-10-billi...
1•petethomas•1h ago•1 comments

Americans beware: markets can be out of sync with reality

https://www.ft.com/content/d95ce239-4494-4a94-be43-fc678bc6e1c3
3•petethomas•1h ago•2 comments

Show HN: Spec-Driven Development Workflow for Claude Code

3•sermakarevich•1h ago•0 comments

The fastest manmade object ever was a manhole cover launched by nuke

https://www.wearethemighty.com/mighty-history/fastest-manmade-object/
1•thunderbong•1h ago•1 comments

From Emacs to Agents

https://vivekhaldar.com/articles/from-emacs-to-agents/
1•gandalfgeek•1h ago•0 comments

An Uncharitable Taxonomy of the AI Discourse

https://iceworks.cc/blog/uctd/
1•airhangerf15•1h ago•0 comments

Build Adafruit projects right from Firefox

https://www.firefox.com/en-US/landing/adafruit/
2•mch82•1h ago•0 comments

Alleged Kimwolf Botmaster 'Dort' Arrested, Charged in U.S. and Canada

https://krebsonsecurity.com/2026/05/alleged-kimwolf-botmaster-dort-arrested-charged-in-u-s-and-ca...
3•shepherdjerred•1h ago•0 comments

Residents burn Ebola treatment center in Congo as anger grows over the outbreak

https://www.pbs.org/newshour/world/residents-burn-ebola-treatment-center-in-congo-as-anger-grows-...
1•bryan0•1h ago•0 comments

India Launches Tradable Rainfall Futures Called Rainmumbai

https://www.bloomberg.com/news/articles/2026-05-20/india-gets-first-rainfall-hedge-as-el-nino-thr...
2•samarthr1•1h ago•0 comments

Logging Off

https://user8.bearblog.dev/logging-off/
39•James72689•1h ago•21 comments

Everything Google announced at I/O 2026: Gemini, Android, more

https://9to5google.com/2026/05/19/google-io-2026-news/
3•gmays•1h ago•1 comments

Cross-Model Context Inheritance in Anthropic's Claude: 94 Days of Non-Response

https://github.com/AIM-Nelson/cross-model-context-inheritance
1•Malinor•1h ago•0 comments

Knex Mechanical Computer (MechaDigit-1) [video]

https://www.youtube.com/watch?v=PAWZ2Zjsah0
1•Teever•1h ago•0 comments