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•7mo ago

Comments

zljdanceholic•7mo 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!

Cooperation and rapport promote interpersonal synchrony

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0333709
1•PaulHoule•6m ago•0 comments

British Transport Police to Trial Live Facial Recognition at Railway Stations

https://www.btp.police.uk/news/btp/news/england/british-transport-police-to-trial-use-of-live-fac...
1•a2fz•7m ago•0 comments

Operation Bluebird Inc files petition to cancel the Twitter trademarks

https://ttabvue.uspto.gov/ttabvue/v?pno=92090266&pty=CAN&eno=1
1•davideg•9m ago•1 comments

Gall's Law: Working complex systems invariably evolve from simple systems

https://principles-wiki.net/principles:gall_s_law
1•kaonwarb•10m ago•0 comments

BRICS Gold-Backed Digital Currency: Reshaping Global Trade in 2025

https://discoveryalert.com.au/brics-gold-backed-digital-currency-initiative-2025/
1•rguiscard•14m ago•0 comments

Common Performance Tuning Advice: Some Flaws

https://ricomariani.medium.com/common-performance-tuning-advice-some-flaws-b2c427fad7ca
1•dbgrman•15m ago•0 comments

Model sizes are currently constrained by availability of inference hardware

https://www.lesswrong.com/posts/Q9ewXs8pQSAX5vL7H/ai-in-2025-gestalt?commentId=PEiZF3D3PZttPRWzt
1•ipnon•15m ago•0 comments

Show HN: Namefi built WebGPU-powered in-browser LLM pure client-side infer UX

https://search.labs.namefi.io/?tab=brainstorm&query=dna
1•xinbenlv•15m ago•0 comments

Ask HN: What's the Best HN Client?

1•billsunshine•19m ago•0 comments

Learning to love mesh-oriented sharding

https://blog.ezyang.com/2025/12/learning-to-love-mesh-oriented-sharding/
1•matt_d•21m ago•0 comments

Free open-source tool let me upscale old photos without paying a cent

https://www.makeuseof.com/free-tool-upscale-old-photos-without-paying/
1•NayamAmarshe•21m ago•0 comments

Show HN: Dabuun – Turn one line of text into a social video

https://dabuun.com
1•kazusan•33m ago•0 comments

I am at my best when I am obsessed, what about you?

https://www.rupokghosh.com/productivity-obsession
1•Rupok•34m ago•0 comments

Easel Now Has Stencils

https://easel.games/blog/2025-dec-update
1•BSTRhino•34m ago•1 comments

$30M military wreath charity buys solely from its founders' farm

https://www.militarytimes.com/news/pentagon-congress/2023/12/13/30m-military-wreath-charity-buys-...
6•thunderbong•37m ago•0 comments

Get more from your Python integration testing with Honeybadger

https://www.honeybadger.io/blog/python-integration-testing/
1•joshuap•38m ago•0 comments

How Exchanges Turn Order Books into Distributed Logs

https://quant.engineering/exchange-order-book-distributed-logs.html
1•csense•38m ago•0 comments

Humanoid Robots at Iranian Tech Expo Turn Out to Be Humans in Disguise

https://www.odditycentral.com/technology/humanoid-robots-at-iranian-tech-expo-turn-out-to-be-huma...
4•pinewurst•38m ago•0 comments

New Cryptographic Challenge

https://github.com/tikred312-afk/Public-verifier
2•imthefirst•42m ago•0 comments

How we used SubImage to fix React2Shell on our own infrastructure

https://www.subimage.io/blog/react2shell/
2•alexchantavy•46m ago•0 comments

New Linux platform will let you update your next car at home

https://www.zdnet.com/article/this-new-linux-platform-will-let-you-update-your-next-car-at-home-a...
1•CrankyBear•53m ago•0 comments

Paramount Makes Hostile Bid for Warner Bros. Discovery

https://www.nytimes.com/2025/12/08/business/paramount-warner-bros-discovery-netflix.html
2•doener•1h ago•1 comments

What Makes Goethe So Special?

https://www.newyorker.com/magazine/2025/12/08/goethe-a-life-in-ideas-matthew-bell-book-review
1•mitchbob•1h ago•1 comments

7-Eleven to Pay Record $4.5M Penalty for FTC Antitrust Order Violation Case

https://www.ftc.gov/news-events/news/press-releases/2025/12/7-eleven-pay-record-45-million-penalt...
2•gnabgib•1h ago•1 comments

The Lost Machine Automats and Self-Service Cafeterias of NYC (2023)

https://www.untappedcities.com/automats-cafeterias-nyc/
16•walterbell•1h ago•9 comments

Canadian traditional owners fear Australian-style LNG development

https://www.abc.net.au/news/2025-12-09/canada-traditional-owners-in-australia-to-protest-against-...
2•defrost•1h ago•0 comments

Scientific and Technical Amateur Radio

https://destevez.net/
11•gballan•1h ago•0 comments

Gig: How our 25G PON investment shatters the limits of today's internet

https://fiber.googleblog.com/2025/12/20-gig-update.html
2•xnx•1h ago•0 comments

Mr. Ren Zhengfei's Meeting with ICPC Foundation President

https://cence.comp.nus.edu.sg/cence/icpc_minutes_2025.html
2•doener•1h ago•0 comments

Metacode: The new standard for machine-readable comments for Python

https://github.com/pomponchik/metacode
1•pomponchik•1h ago•1 comments