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!

Meta Tapped a Pentagon Supplier to Prototype Face Recognition for Its Glasses

https://www.wired.com/story/meta-rank-one-computing-face-recognition-smart-glasses/
1•boh•34s ago•0 comments

Oryzo – AI Powered Coaster

https://oryzo.ai/
1•saturn5k•1m ago•0 comments

Fakes of the Future

https://lareviewofbooks.org/article/fakes-future-artificial-intelligence-llms-larb-quarterly-traf...
1•Michelangelo11•2m ago•0 comments

RSA Munitions T-Shirt

https://www.johndcook.com/blog/2026/06/13/rsa-munitions-t-shirt/
1•ibobev•3m ago•0 comments

Katakana and Cypriot

https://quuxplusone.github.io/blog/2026/06/12/syllabaries/
1•ibobev•3m ago•0 comments

AI demands more engineering discipline. Not less

https://charity.wtf/2026/06/15/ai-demands-more-engineering-discipline-not-less-xpost/
1•RyeCombinator•4m ago•0 comments

Kan Extensions in Double Categories

https://bartoszmilewski.com/2026/06/13/kan-extensions-in-double-categories/
1•ibobev•4m ago•0 comments

Donald Trump's blocking of Anthropic is capricious and chaotic

https://www.economist.com/business/2026/06/14/donald-trumps-blocking-of-anthropic-is-capricious-a...
1•doener•4m ago•0 comments

Fox is buying Roku for $22B

https://www.cnn.com/2026/06/15/business/fox-roku
2•everybodyknows•5m ago•0 comments

Writing static checks to an unsuspecting library with Liquid Haskell

https://www.tweag.io/blog/2026-06-11-diff-package-static-checks/
1•ingve•6m ago•0 comments

Founder.best – A startup launch platform focused on visibility

https://www.founder.best
1•anujshashimal•7m ago•0 comments

AI Isn't Slowing Down Page Builders

https://chuckgreenman.com/2026/06/14/ai-isnt-slowing-down-page-builders
1•chuckgreenman•9m ago•0 comments

Atom Exhaustion Is Not a Footgun. It's One Third of Our CVEs

https://erlef.org/blog/security/atom-exhaustion
1•birdculture•9m ago•0 comments

Scaling Engineering: Ownership over Hiring

https://greenido.dev/2026/06/11/what-changes-at-20-50-and-200-engineers/
1•RyeCombinator•11m ago•0 comments

The mystery of the Solar Realms Elite title screen

https://breakintochat.com/blog/2026/06/14/the-mystery-of-the-solar-realms-elite-title-screen/
1•haeseong•12m ago•0 comments

Show HN: Kster.ai – Structured product context your coding agent reads over MCP

https://kster.ai
1•catalinviciu•12m ago•0 comments

Clojure is almost as fast as C (with some help)

https://ertu.dev/posts/4_clojure-reaching-c-performance/
1•haeseong•12m ago•0 comments

Atlassian "Data Contribution" – Privacy and Welfare

3•yells_jovially•13m ago•1 comments

Show HN: Boba, a one button platformer for PICO-8

https://zeta0134.itch.io/boba
2•zeta0134•15m ago•0 comments

Salesforce to Acquire Fin (formerly Intercom) for $3.6BN

https://www.salesforce.com/news/press-releases/2026/06/15/salesforce-signs-definitive-agreement-t...
2•colesantiago•16m ago•0 comments

Code Is a Message to the Future

https://webflow.com/blog/code-as-communication
1•ilreb•19m ago•0 comments

Show HN: StoryMotion – an editor for whiteboard explainer animations

https://storymotion.video
1•chunza2542•20m ago•0 comments

Sbt 2.0.0

https://eed3si9n.com/sbt-2.0.0
1•pregnenolone•20m ago•0 comments

3D Lissajous Figure Generator

https://www.simplenumbertools.com/calculators/wave-generator/
1•smdz•20m ago•0 comments

China bans sales of Germany's Infineon GAN chips

https://www.semiconductor-today.com/news_items/2026/jun/innoscience-infineon-150626.shtml
1•akyuu•23m ago•0 comments

Microsoft weighing up spinning off Xbox

https://www.gamesindustry.biz/report-microsoft-weighing-up-spinning-off-xbox
1•lentil_soup•24m ago•0 comments

A History of Microwave Ovens (2024)

https://taylor.town/history-of-microwave-ovens
1•surprisetalk•24m ago•0 comments

Mythos Proves AI Safety Can No Longer Live Inside the Model

https://grith.ai/blog/mythos-ai-safety-cannot-live-inside-the-model?a=0
1•edf13•25m ago•0 comments

See Anthropic Orchestrate the Narrative

2•functionmouse•25m ago•0 comments

Tell HN: Forget selectors and screenshots. The agentic web lives in your shell

1•keepamovin•26m ago•0 comments