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!

Claude Code session URL is leaking into your Git history as of v2.1.179

https://twitter.com/samelldev/status/2070213157357072794
1•orangeisthe•1m ago•0 comments

Show HN: Vanta – Markdown notes for iPhone with on-device AI

https://vanta.shanev.ai
1•shanev•3m ago•0 comments

Show HN: Agent Sandbox Options

https://github.com/fishman/awesome-agent-sandbox
1•rjzzleep•4m ago•0 comments

What Makes a Vulnerability Report Excellent

https://blog.disclose.io/what-makes-a-vulnerability-report-excellent/
1•tsujamin•5m ago•0 comments

Do Excellent Vulnerability Reports

https://daniel.haxx.se/blog/2026/06/29/do-excellent-vulnerability-reports/
1•tsujamin•5m ago•0 comments

Meta's non-invasive BCI still isn't great

https://www.theregister.com/offbeat/2026/06/30/metas-non-surgical-mind-reading-machine-improves-o...
1•simojo•6m ago•0 comments

Can a $60 Plastic Cube Solve Our Screen-Time Crisis?

https://www.wsj.com/tech/personal-tech/brick-smartphone-screen-time-6dd4fe69
1•fortran77•6m ago•2 comments

LLMs as 5x Faster Sandboxes

https://github.com/experientiallabs/world-model-harness
1•SilenN•6m ago•1 comments

Show HN: Paneflow – cross-platform GPUI app for parallel coding agents

https://github.com/ArthurDEV44/paneflow
1•arthurjean•6m ago•0 comments

How Credit Cards Make Money

https://www.bitsaboutmoney.com/archive/how-credit-cards-make-money/
1•jimsojim•6m ago•0 comments

Anthropic has embedded hidden spyware-like code in Claude Code

https://twitter.com/IntCyberDigest/status/2071971609183678544
1•kyokoL•7m ago•1 comments

Reducing Feedback Latency with Local CI for Developers and AI Agents

https://www.moderntreasury.com/journal/reducing-feedback-latency-with-local-ci-for-developers-and...
3•mattmarcus•7m ago•0 comments

Tenor GIF API shuts down today

https://support.google.com/tenor/answer/10455265?hl=en
2•ChrisArchitect•7m ago•1 comments

Show HN: A statically typed, cross-platform, easily bootstrappable build system

https://github.com/rochus-keller/BUSY/
1•Rochus•7m ago•0 comments

Scientists estimate there could be 20M species, triple what was thought

https://english.elpais.com/science-tech/2026-06-30/earths-hidden-insects-scientists-estimate-ther...
1•geox•9m ago•0 comments

UC Berkeley quantum processor to be buried for US 250th

https://news.berkeley.edu/2026/06/30/uc-berkeley-quantum-computing-chip-to-be-buried-in-national-...
1•simojo•9m ago•0 comments

Group Note Draft: W3C Standards Vulnerability Disclosure and Handling Proces

https://www.w3.org/news/2026/group-note-draft-w3c-standards-vulnerability-disclosure-handling-pro...
1•jruohonen•9m ago•0 comments

Building a PS1 style retro 3D renderer (2021)

https://www.david-colson.com/2021/11/30/ps1-style-renderer.html
1•Tomte•10m ago•0 comments

OpenAI launched strongest new models

https://www.superhuman.ai/p/openai-launched-strongest-new-models
2•Cyrus2050•12m ago•0 comments

SpaceX may donate stock to Trump's savings accounts for kids

https://arstechnica.com/tech-policy/2026/06/spacex-may-donate-stock-to-trumps-savings-accounts-fo...
1•andsoitis•13m ago•1 comments

The AI boom is colliding with a new threat: weather

https://www.cnbc.com/2026/06/29/ai-data-centers-heatwave-climate-risk-weather.html
1•1vuio0pswjnm7•13m ago•0 comments

Agriculture is ready for AI, but its data isn't

https://www.technologyreview.com/2026/06/30/1139513/agriculture-is-ready-for-ai-but-its-data-isnt/
1•Brajeshwar•14m ago•0 comments

UATC – A Closed-Loop Controller to Prevent GPU OOM During LLM Training

https://github.com/sajjaddoda72-design/UATC
1•L_u_u_6•14m ago•0 comments

Wallabag.it will fund development work contributed back to wallabag

https://wallabag.it/en/blog/2026/06/30/wallabag-it-funds-open-source-development/
1•raybb•14m ago•0 comments

Run Any Dockerfile on Vercel

https://vercel.com/blog/dockerfile-on-vercel
1•thesurlydev•15m ago•0 comments

Walter Mosley: "A Novel is Not a Machine"

https://lithub.com/walter-mosley-a-novel-is-not-a-machine/
1•bookofjoe•15m ago•0 comments

Claude Code Anti-China tracker: verification report

https://gist.github.com/AdnaneKhan/0a0edb5620d5214282ef4027caad8950
1•king_zee•15m ago•0 comments

HTML is all you need

https://12gramsofcarbon.com/p/agentics-html-is-all-you-need-for
3•theahura•15m ago•0 comments

Etched has officially come out of stealth

https://www.bloomberg.com/news/articles/2026-06-30/ai-chip-startup-etched-says-jane-street-tsmc-l...
3•seventeen29•15m ago•1 comments

What is Blockchain: a Gentle Introduction [pdf]

https://www.researchgate.net/publication/311572122_What_is_Blockchain_a_Gentle_Introduction
1•thunderbong•16m ago•0 comments