frontpage.
newsnewestaskshowjobs

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!

How to Stop AI from Killing Your Critical Thinking – Ted

https://app.magellan.ai/listen_links/T2KbyG
1•fagnerbrack•1m ago•0 comments

The uphill climb of making diff lines performant

https://github.blog/engineering/architecture-optimization/the-uphill-climb-of-making-diff-lines-p...
1•fagnerbrack•1m ago•0 comments

Uses for Nested Promises

https://blog.jcoglan.com/2026/03/23/uses-for-nested-promises/
1•fagnerbrack•1m ago•0 comments

Notpron (2004)

https://notpron.com/notpron/
1•kakadu•1m ago•0 comments

Code Context Engine

https://github.com/elara-labs/code-context-engine
1•Oras•5m ago•0 comments

Amazon will stop accepting new customers for Mechanical Turk on July 30

https://techcrunch.com/2026/07/05/amazon-will-stop-accepting-new-customers-for-mechanical-turk/
3•bookofjoe•6m ago•0 comments

Ask HN: Are you emotionally attached to AI code?

1•CurleighBraces•9m ago•1 comments

CTRLServers – one dashboard for all your servers

https://ctrlservers.xyz
1•itsoffkey•10m ago•0 comments

Fences Puzzle

https://www.futilitycloset.com/2026/07/02/fences/
1•surprisetalk•11m ago•0 comments

Apple's Foldable iPhone Could 'Sell Out Immediately

https://www.barrons.com/articles/apple-foldable-iphone-analyst-f2d05036
1•enlightpixel•15m ago•0 comments

Statly Analytics

https://statly-analytics.com/
1•ivangalic•15m ago•0 comments

Show HN: Kotlin Multiplatform AI pipeline – a reality?

https://medium.com/@krasi.karamazov/kotlin-multiplatform-ai-pipeline-a-reality-21b77c6c5a75
1•kkaramazov•15m ago•0 comments

The Guardian view on gene-edited humans: darker uses alongside medical ones

https://www.theguardian.com/commentisfree/2026/jul/05/the-guardian-view-on-gene-edited-humans-dar...
2•bookofjoe•15m ago•0 comments

US home battery installations hit record high on rising electricity costs

https://arstechnica.com/science/2026/07/us-home-battery-installations-hit-record-high-in-early-2026/
2•rbanffy•16m ago•0 comments

NoiseLang: Where N = 5 is a Dirac delta

https://manualmeida.dev/articles/noiselang/
1•manucorporat•16m ago•1 comments

Americans fear Trump's red card interference could ruin World Cup run

https://www.independent.co.uk/news/world/americas/us-politics/trump-red-card-folarin-balogun-fifa...
4•jjgreen•18m ago•1 comments

Fable 5 On Vending-Bench: Misbehaving, With Plausible Deniability

https://andonlabs.com/blog/fable5-vending-bench
1•optimalsolver•19m ago•0 comments

I built a local-first replacement for TV Time before it shuts down July 15

1•continuitytv•19m ago•1 comments

Anthropic's Method to Losing Goodwill in a Few Easy Steps

https://raheeljunaid.com/blog/anthropics-method-to-losing-goodwill-in-a-few-easy-steps/
5•raheelrjunaid•20m ago•1 comments

12 Months of Claude

https://blog.puzzmo.com/posts/2026/07/03/twelve-months-of-claude/
1•ingve•20m ago•0 comments

A Worthy Break from Work

https://www.simonjamesfrench.com
1•Emerald_dreamer•20m ago•1 comments

Humanoid Robots in Japan Risk Losing Legacy to China

https://spectrum.ieee.org/humanoid-robots-japan
1•rbanffy•23m ago•0 comments

The AI Marketing Backlash: Why 'AI-First' Brands Are Starting to Fall Flat

https://www.breef.com/breefingroom/articles/the-ai-marketing-backlash-why-ai-first-brands-are-sta...
2•hasudon7171•24m ago•0 comments

Lost city discovered beneath Egypt's desert with ancient church

https://www.dailymail.com/sciencetech/article-15956159/Incredible-lost-city-discovered-Egypts-des...
1•Bender•24m ago•0 comments

The AI Big Crunch Is Starting

https://medium.com/@brothke/the-ai-big-crunch-is-starting-c50612ee3a02
5•benrothke•27m ago•0 comments

July 6th: International Kissing Day

https://en.wikipedia.org/wiki/International_Kissing_Day
2•Bender•30m ago•0 comments

Britain should consider regulating AI models, FCA official says

https://www.reuters.com/legal/litigation/britain-should-consider-regulating-ai-models-fca-officia...
3•adithyaharish•31m ago•0 comments

The Importance of Questioning When Coding with AI

https://jakub.jankiewicz.org/blog/questioning-ai/
2•jcubic•32m ago•0 comments

How We're Keeping Reddit Real and Safe in the AI Era

https://redditinc.com/news/how-were-keeping-reddit-real-and-safe-in-the-ai-era
2•soheilpro•36m ago•1 comments

Our Own Little Golden Era

https://thesecondbutton.com/our-own-little-golden-era/
2•SuperUserDone•40m ago•1 comments