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!

Ask HN: Why 1Password extension pushing debug logs in the browser console?

1•pixelpanic360•58s ago•0 comments

A Third of Serious Workplace Injuries in Japan Involve Workers over 60

https://www.nippon.com/en/japan-data/h02817/
1•whiteblossom•1m ago•0 comments

Could AI chip boom make ASML Europe's first trillion-dollar firm?

https://www.reuters.com/business/media-telecom/could-ai-chip-boom-make-asml-europes-first-trillio...
1•LordDefender•2m ago•0 comments

Italy Puts 10M Euros into Fighting Invasive Blue Crabs

https://www.chesapeakebaymagazine.com/italy-puts-10-million-euros-into-fight-against-blue-crabs-i...
1•mooreds•2m ago•0 comments

Show HN: Adversarial code review setup with herdr, Claude and GPT-5.6sol

https://github.com/overflowy/herdr-claude-gpt-adversarial-review-skill
2•overflowy•3m ago•0 comments

How Microsoft's "Little Workaround" Created a Major Pentagon Threat

https://www.propublica.org/podcast/microsoft-digital-escorts-china-defense-department
1•amai•3m ago•0 comments

So, I tried to build an Android app

https://david.coffee/so-i-tried-to-build-an-android-app/
1•speckx•3m ago•0 comments

Laptop Is the New Production Environment

https://www.docker.com/blog/your-laptop-is-the-new-production-environment/
1•andrewstetsenko•3m ago•0 comments

If you want to fight AI, build a Civboot

https://civboot.github.io/blog/2026-07-21-fighting-ai.html
2•vitiral•4m ago•0 comments

Show HN: Mozilla killed Orbit, so I built a local-LLM extension

https://github.com/darshi1337/apogee
1•darshi7331•5m ago•0 comments

How AI may drive union-resistant tech workers to the bargaining table

https://www.theguardian.com/technology/2026/jul/21/ai-tech-workers-unionize
2•chobeat•5m ago•0 comments

Diagnosing Wheel Imbalance with a GoPro and FFmpeg

https://joshfrye.com/blog/2026/07/diagnosing-wheel-imbalance-with-ffmpeg/
1•wutwutwat•7m ago•0 comments

Nvidia Cosmos 3 Edge

https://huggingface.co/blog/nvidia/cosmos3edge
1•martythemaniak•7m ago•0 comments

Light Flip

https://www.thelightphone.com/lightflip
3•bookstore-romeo•7m ago•0 comments

NPM's release cooldown is security theater

https://blog.outv.im/2026/npm-cooldown-security-theater/
1•outloudvi•8m ago•0 comments

How to build agent infrastructure yourself

https://browserbase.run/build-buy
2•harsehaj•8m ago•0 comments

Show HN: Basecheck agent – Local database checks with HTTP/syslog output

1•nnurmanov•9m ago•0 comments

Gemini 3.6 Flash (High) Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/gemini-3-6-flash
1•theanonymousone•10m ago•0 comments

How New Technology Changes Business Models

https://thomasvilhena.com/2026/07/how-new-technology-changes-business-models
2•tcgv•11m ago•0 comments

Long Presumed Dead, a Thriving Coral Reef Is Discovered in West Africa

https://e360.yale.edu/digest/benin-coral-reef
2•speckx•13m ago•0 comments

Garmin Smart Band

https://www.garmin.com/en-US/p/1989182/
1•dzonga•14m ago•0 comments

What I learned building an AI book publisher

https://edwardbenson.com/2026/07/ai-book-publishing-lessons
1•eob•14m ago•0 comments

Long time no sea: finding the seahorse emoji

https://blog.gingerbeardman.com/2026/07/17/long-time-no-sea-finding-the-seahorse-emoji/
1•surprisetalk•14m ago•0 comments

USBridge Remote – Open-source hybrid software/hardware remote access

https://github.com/USBridge-Technologies/USBridge-Remote
1•Amir_Fatkulin•17m ago•0 comments

Hardware Needs a Full-Stack AI Development Environment

https://opuslabs.substack.com/p/hardware-needs-its-vibe-coding-moment
1•opuslabs•17m ago•0 comments

Why the Iran war hasn't caused a global oil crisis – yet

https://grist.org/energy/why-the-iran-war-hasnt-caused-a-global-oil-crisis-yet/
1•speckx•18m ago•0 comments

Show HN: Lucen a Python compiler that parallelizes for-loops via comment pragmas

https://github.com/fcmv/lucen
1•soumik15630m•18m ago•0 comments

TT-Ascalon ‎S

https://tenstorrent.com/en/ip/risc-v-cpu
1•ai2027•18m ago•0 comments

Ask HN: Claude Blind Test Results: Bug or Feature?

1•Leewen•20m ago•0 comments

We cut Flink OOMKills by 91.2%: Zombie block cache and phantom CPUs

https://developer.confluent.io/blog/flink-oomkills/
2•rmoff•20m ago•0 comments