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!

Synthetic Customers Earn Their Stripes

https://www.bain.com/insights/synthetic-customers-earn-their-stripes/
1•fzliu•27s ago•0 comments

Show HN: MyWritingTwin: an AI Writing Profile that makes LLMs sound like you

https://www.mywritingtwin.com
1•writingdna•10m ago•0 comments

Spent EV Batteries Get Second Life as Higher-Performance Battery Material

https://today.ucsd.edu/story/spent-ev-batteries-get-second-life-as-higher-performance-battery-mat...
1•giuliomagnifico•12m ago•0 comments

EXo Platform 7.2: Native AI Powering a Unified and Intelligent Digital Workplace

https://www.exoplatform.com/blog/exo-platform-7-2-ai-powered-unified-digital-workplace/
1•jaouanebrahim•14m ago•0 comments

A bug I ran into when using Java Modules

https://old.reddit.com/r/java/comments/1ul2wiz/a_bug_i_ran_into_when_using_java_modules_plus/
1•Tomte•14m ago•0 comments

Word Count for Blog Posts: How Long Should Yours Be?

https://fastwordcount.com/blog/real-time-word-counter-boost-your-writing-efficiency/
1•rajkverma123•18m ago•0 comments

Grasse and the London Connection (2025)

https://www.englishmaningrasse.com/post/grasse-and-the-london-connection
1•zeristor•22m ago•0 comments

A 'new way of thinking' boosted math proficiency in an East Palo Alto school

https://www.paloaltoonline.com/east-palo-alto/2026/07/01/a-new-way-of-thinking-boosted-math-profi...
6•hbarka•24m ago•0 comments

Pasqal exceeds 1k Atoms in Quantum Processor

https://www.pasqal.com/newsroom/pasqal-exceeds-1000-atoms-in-quantum-processor/
1•fofoz•27m ago•0 comments

Evaluation order and nontermination in query languages

https://www.rntz.net/post/2026-06-11-datalog-nontermination.html
2•luu•32m ago•0 comments

Show HN: Noter – AI agent dashboard for monitoring coding harnesses locally

https://noterai.tech
1•carlobizzaro•33m ago•0 comments

Show HN: Deterministic Simulation Testing

https://workers.io/blog/deterministic-simulation-testing/
1•chaitanyya•35m ago•0 comments

The Download: Anthropic Launches Claude Science, and California's Carbon Manure

https://www.technologyreview.com/2026/07/01/1139996/the-download-anthropic-claude-science-califor...
2•joozio•38m ago•0 comments

A Machine-Verified Proof of a Quantum-Optimization Conjecture

https://arxiv.org/abs/2606.29687
3•ilaysat•42m ago•0 comments

AgentOS

https://agentos-sdk.dev/
1•handfuloflight•42m ago•1 comments

I think it's still important to understand the code that our agents write

https://twitter.com/geoffreylitt/status/2072522251300409556
4•tosh•44m ago•0 comments

Let's Go Kill the Internet

https://nymag.com/intelligencer/article/doublespeed-tech-founder-creating-an-army-of-ai-influence...
2•Michelangelo11•45m ago•0 comments

MarketFish – Simulate a market with 128 AI consumers before you launch

https://github.com/Key-wxh/market-fish
3•a280887763•47m ago•0 comments

Text AI watermarks will always be trivial to remove

https://www.seangoedecke.com/text-ai-watermarks/
2•ingve•52m ago•0 comments

Show HN: Scalable AI Management Platform

https://github.com/metadist/synaplan/
1•metaralf•56m ago•0 comments

The gauge broke: devs felt 20% faster with AI, measured 19% slower

https://intrepidkarthi.com/writing/the-gauge-broke/
59•intrepidkarthi•57m ago•59 comments

BioShocking AI: "Gaming" the AI Browser and Escaping Its Guardrails

https://layerxsecurity.com/blog/bioshocking-ai-gaming-the-ai-browser-and-escaping-its-guardrails/
1•croes•57m ago•0 comments

Horsewood (2 July 2026) We Tried It My Honest ReviewS

https://finance.yahoo.com/sectors/healthcare/articles/horsewood-urgent-report-2026-horse-19110038...
3•Gafyhanu•1h ago•0 comments

Seattle Just Had an Earthquake

5•tobinfekkes•1h ago•4 comments

Feds Might Flip the Script on Right to Repair Vehicle Emissions Systems

https://www.thedrive.com/news/feds-might-flip-the-script-on-right-to-repair-vehicle-emissions-sys...
2•josephcsible•1h ago•0 comments

Likelihood, and Maximum Likelihood, in Statistics

https://bactra.org/notebooks/likelihood.html
2•Tomte•1h ago•0 comments

Fable 5 is insanely good

5•vuphanse•1h ago•0 comments

Ask HN: Who's Hiring Remote Contractors? (July 2026)

2•akashwadhwani35•1h ago•1 comments

Typst: Designing for Incrementality (Laurenz Mädje at RustWeek) [video]

https://www.youtube.com/watch?v=yWWVhbyOWWE
3•felixhummel•1h ago•0 comments

Rasa Intelligence: AI diagnostic engine-gives one business verdict in 90 seconds

https://tech-rasa.com
2•Deepti251•1h ago•0 comments