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!

Show HN: O11y.jobs is a job board focused specifically on Observability

https://o11y.jobs/
1•ScarZy•1m ago•0 comments

How VictoriaLogs Stores Your Logs in a Columnar Layout

https://victoriametrics.com/blog/victorialogs-internals-columnar-storage-on-disk/index.html
2•eatonphil•5m ago•0 comments

The curious case of the disappearing Polish S

https://aresluna.org/the-curious-case-of-the-disappearing-polish-s/
1•colinprince•6m ago•0 comments

Three.js R185 Released

https://twitter.com/threejs/status/2070082345689067978
3•aurenvale•9m ago•0 comments

The MUMPS 76 Primer – anniversary edition

https://github.com/rochus-keller/MUMPS/blob/main/docs/MUMPS_Primer.adoc
2•Rochus•9m ago•1 comments

Trump Cut a Billion-Dollar Mining Deal. His Sons Stand to Profit

https://www.nytimes.com/2026/06/28/world/europe/trump-lutnick-sons-kazakhstan.html
3•tcp_handshaker•12m ago•0 comments

After the AI Hype – What's Real, and What's Next – Richard Campbell – 2026

https://www.youtube.com/watch?v=uWnUnMphmPM
1•tcp_handshaker•12m ago•0 comments

Academic-writing kit for Claude Code

https://github.com/josefslerka/study-kit
1•josefslerka•14m ago•0 comments

Show HN: Meta Ads vs. ASA vs. GAC for indie apps (2026 data)

https://launchshots.app/blog/meta-ads-app-install-2026
1•okutan•19m ago•0 comments

The Scaling of PEFT: Towards Million Personal Models of Trillion Parameters

https://arxiv.org/abs/2606.02437
1•Anon84•20m ago•0 comments

A way to exclude sensitive files issue still open for OpenAI Codex

https://github.com/openai/codex/issues/2847
3•pikseladam•23m ago•1 comments

Starbucks Is One of the Largest Banks

https://www.msn.com/en-us/money/companies/starbucks-is-secretly-one-of-the-world-s-largest-banks/...
2•ColinWright•25m ago•0 comments

Guy in his basement creates a drug to treat Alzheimer's disease using AI

https://twitter.com/DouglasYaoDY/status/2070904914050797582
14•binyu•27m ago•9 comments

NASA tests AI medic for astronauts too far from Earth to call a doctor

https://www.theregister.com/ai-and-ml/2026/06/27/nasa-tests-ai-medic-for-astronauts-too-far-from-...
3•LorenDB•28m ago•0 comments

Show HN: Sambee – browser-based file manager for SMB shares and local drives

https://sambee.net
2•helgek•28m ago•0 comments

Warp Point: A curated webring of video game websites

https://www.warppoint.games/
1•mysterydip•28m ago•0 comments

The crowd-funded Porsche 911

https://project996.fun
2•mhavelka77•31m ago•3 comments

Show HN: Parseflow – Extract data from any document. Entirely on your Mac

https://www.parseflow.io/
1•devtanna•36m ago•0 comments

Beyond symbolic algebra with quantum picturalism

https://www.frontiersin.org/journals/cognition/articles/10.3389/fcogn.2026.1790789/full
2•mathgenius•37m ago•0 comments

Denoising Voice Recordings On-Device

https://www.duration.ai/blog/denoising-voice-recordings-on-device
1•sudb•39m ago•0 comments

Ask HN: Are OTA updates for native iOS/Swift apps allowed?

1•jackappdev•42m ago•0 comments

Cypherpunk Library

https://www.cypherpunklibrary.com/collection
2•bookofjoe•42m ago•0 comments

Nearly Three-Quarters of Dutch Responses to EU Tobacco Rules Were AI-Generated

https://pointer.kro-ncrv.nl/meerderheid-nederlandse-inspraak-op-strengere-eu-tabakswet-afkomstig-...
4•stefanvdw1•46m ago•0 comments

Ask HN: If someone invested $100k now for your startup, how would you spend it?

4•aurenvale•52m ago•2 comments

Tldr.fail – buggy servers break PQ KEX compatibility in TLS

https://tldr.fail/
1•basilikum•53m ago•0 comments

Kids act would require age checks to get online

https://www.eff.org/deeplinks/2026/06/kids-act-would-require-age-checks-get-online
10•bilsbie•55m ago•3 comments

CORS Explained in Plain English

https://sanyamserver.online/posts/cors/
3•RickJWagner•55m ago•0 comments

More evidence of life on Mars but still no life (2025)

https://www.cbc.ca/radio/quirks/more-evidence-of-life-on-mars-but-still-no-life-1.7649645
16•pseudolus•56m ago•6 comments

From Prompts to Loops: Building Autonomous Coding Agents

https://animeshgaitonde.medium.com/from-prompts-to-loops-building-autonomous-coding-agents-6135bf...
1•animesh371g•57m ago•0 comments

Expect Claude Fable 5 to Be Turned Back on in a Matter of Days, Report Says

https://gizmodo.com/expect-claude-fable-5-to-be-turned-back-on-in-a-matter-of-days-report-says-20...
2•HiroProtagonist•58m ago•0 comments