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!

Somewhere Nearby is Colossal Cave (2007)

https://dhq.digitalhumanities.org/vol/1/2/000009/000009.html
1•exvi•1m ago•0 comments

GitHub Copilot is deprecating Grok Code Fast 1

https://github.blog/changelog/2026-05-08-upcoming-deprecation-of-grok-code-fast-1/
1•whtsky•1m ago•0 comments

Apple Faces £3B UK Trial over iCloud Lock-In Claims

https://www.macrumors.com/2026/05/07/apple-icloud-lock-in-uk-lawsuit/
1•johneth•5m ago•0 comments

The Brand Age

https://www.paulgraham.com/brandage.html
1•KnuthIsGod•6m ago•0 comments

European Lisp Symposium 2026

https://european-lisp-symposium.org/2026/index.html
2•Igrom•6m ago•1 comments

Writers are fleeing the Substack Tax

https://www.theverge.com/tech/927294/substack-tax-ghost-beehiiv
2•articsputnik•7m ago•0 comments

UX Dark Patterns and Social Media Addiction

https://www.designorate.com/ux-dark-patterns-and-social-media-addiction/
1•rrm1977•9m ago•0 comments

Squatt.ing – The state of the .ing top level domain shortly after public release

https://blog.ioces.com/matt/posts/squatt.ing/
1•shoobs•10m ago•0 comments

Modi urges Indians to WFH and limit foreign travel as Iran war continues

https://www.bbc.com/news/articles/c8r8e2ne1v6o
1•penguin_booze•15m ago•0 comments

Young evil genius forces hamster to run on wheel to power his gadgets

https://www.theregister.com/offbeat/2026/05/06/youtuber-turns-hamster-wheel-into-phone-charger/52...
1•luckys•16m ago•0 comments

Show HN: Built a tool that analyzes product reviews and shows real pros/cons

https://chromewebstore.google.com/detail/astrea/ddlhfimgdflliapbjpfaeoheahhmgikl
1•adrianrogers04•17m ago•0 comments

A Tour of Txtar

https://rednafi.com/go/txtar/
1•ingve•21m ago•0 comments

Connections – James Burke

https://www.youtube.com/playlist?list=PLf02uWXhaGRng_YzH-Ser_VEV4lGSLX_1
1•gurjeet•22m ago•0 comments

Encouraging Autonomous Driving Companies to Share Safety-Critical Data

https://dl.acm.org/doi/pdf/10.1145/3757493
3•luu•22m ago•0 comments

Toward Worker-Owned Delivery Platforms with the OpenCourier Protocol

https://platform.coop/blog/toward-worker-owned-delivery-platforms-with-the-opencourier-protocol/
1•utopiah•22m ago•1 comments

Detachment 201, the US Army unit led by tech executives

https://english.elpais.com/technology/2026-04-13/detachment-201-the-us-army-unit-led-by-tech-exec...
2•BaudouinVH•23m ago•0 comments

Why is AI trust so much higher in China (87%) than the US (32%)? [pdf]

https://www.edelman.com/sites/g/files/aatuss191/files/2025-11/2025%20Edelman%20Trust%20Barometer%...
2•nilen•25m ago•3 comments

Bashism – Greg's Wiki

https://mywiki.wooledge.org/Bashism
2•dr_girlfriend•29m ago•0 comments

Gmail registration now requires scanning a QR code and sending a text message

https://discuss.privacyguides.net/t/google-account-registration-now-requires-sending-an-sms-via-p...
3•negura•29m ago•1 comments

Bring Kindness Back to Open Source

https://www.hanselman.com/blog/bring-kindness-back-to-open-source
2•mashally•29m ago•1 comments

Ask HN: What is your workflow for filtering academic papers?

1•hydra-f•30m ago•0 comments

Bash Pitfalls - Greg's Wiki

https://mywiki.wooledge.org/BashPitfalls
2•dr_girlfriend•30m ago•0 comments

ASTro: AST-Based Reusable Optimization Framework

https://github.com/ko1/astro/
1•riffraff•30m ago•0 comments

BashFAQ - Greg's Wiki

https://mywiki.wooledge.org/BashFAQ
2•dr_girlfriend•31m ago•0 comments

AI native flights search built in a weekend

https://flightzombie.com
1•mk0y•33m ago•0 comments

Roaring Bitmaps

https://roaringbitmap.org/
1•tosh•34m ago•0 comments

Silo: Isolated workspace manager for parallel agentic development

https://github.com/rsn491/silo
1•rsn491•38m ago•0 comments

Show HN: AI agents who prevent context drift through gossip

https://wuphf.team
1•najmuzzaman•39m ago•0 comments

Semantic Phonons: Lattice Vibrations in AI Internals

https://www.lesswrong.com/posts/Bn5ErDBp9redcGtxg/semantic-phonons-lattice-vibrations-in-ai-inter...
1•joozio•44m ago•0 comments

How hotels are stopping the 'dawn dash' for sunbeds after man wins payout

https://www.bbc.co.uk/news/articles/c99l17m2ep9o
3•gbxyz•46m ago•0 comments