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!

Is Anthropic Protecting Us, or Just Playing Us?

https://medium.com/tech-ai-chat/is-anthropic-protecting-us-or-just-playing-us-09e773caffe5
1•elye•53s ago•0 comments

Show HN: Majority – Find new music and vote on your favorites

https://majority-eight.vercel.app/
1•monoRepo11•5m ago•0 comments

Warren Buffet's last Berkshire letter: "Father Time always wins." [pdf]

https://www.berkshirehathaway.com/news/sep1826.pdf
1•j-bu•7m ago•0 comments

What Using AI Therapy Gets Wrong

https://emilylee293105.substack.com/p/what-ai-therapy-gets-wrong-904
2•fhe•8m ago•0 comments

Show HN: Jev beats Astra, fable, Opus at RF engineering task

https://twitter.com/cohavygal/status/2100931737291223265
1•galcohavy•8m ago•0 comments

An Empirical Study of Harness Design for Coding Agents

https://arxiv.org/abs/2609.20804
2•wek•16m ago•0 comments

The Trap of "Phantom TAM"

https://marketinvestigation.beehiiv.com/p/the-hidden-trap-of-phantom-tam-why-ad-dependent-platfor...
1•mapendembet•17m ago•0 comments

I Tried to Leave the Terminal Eight Times. The Ninth Stuck

https://thoughts.jock.pl/p/terminal-to-agentic-ide-bb-journey-2026
1•joozio•18m ago•0 comments

Germany turns on Brussels as Chinese car sales on track to exceed 1M in 2026

https://www.euronews.com/my-europe/2026/09/17/germany-turns-on-brussels-as-chinese-car-sales-on-t...
2•Markoff•18m ago•1 comments

Vulkan Documentation Project

https://docs.vulkan.org/spec/latest/index.html
1•ibobev•19m ago•0 comments

Gabor Fields: Orientation-Selective Level-of-Detail for Volume Rendering

https://arcanous98.github.io/projectPages/gaborVolumes.html
1•ibobev•20m ago•0 comments

12-Factor Agents – Principles for building reliable LLM applications

https://github.com/humanlayer/12-factor-agents
2•beepdyboop•20m ago•0 comments

Handling 100M time series with Arrow, Parquet, and object storage

https://www.parseable.com/blog/how-parseable-handles-100-million-time-series
1•yashdotrv•20m ago•0 comments

TLDR; what the heck is Jev?

https://www.jrzs.dev/blog/what-the-heck-is-jev/
1•jrhey•21m ago•0 comments

C++26: Trivial infinite loops are no longer undefined behaviour

https://www.sandordargo.com/blog/2026/09/16/cpp26-trivial-infinite-loops
2•ibobev•21m ago•0 comments

DJ Shadow looks back at "Entroducing" and other early work

https://www.msn.com/en-us/news/other/dj-shadow-spent-decades-digging-for-records-now-hes-digging-...
2•ilamont•23m ago•0 comments

When the Debugger Lies

https://danielmangum.com/posts/when-the-debugger-lies/
1•hasheddan•24m ago•0 comments

Putin envoy and far-right AfD prepare talks to get Russian gas back for Germany

https://www.reuters.com/world/putin-envoy-far-right-afd-prepare-talks-get-russian-gas-back-german...
2•alephnerd•25m ago•0 comments

Maker's Schedule, Manager's Schedule

https://www.paulgraham.com/makersschedule.html
1•tosh•28m ago•0 comments

Clocky: Alarm clock on wheels that runs away from you

https://clocky.com/pages/about-us
1•Bluestein•28m ago•0 comments

Show HN: Bastionskill – scan an AI agent skill for malicious code

1•Rinkia•29m ago•0 comments

The Return of the Utah Teapot – Siggraph 2026 [video]

https://www.youtube.com/watch?v=k-23LgrFcvs
1•justin66•30m ago•0 comments

AI eyes in the sky: New satellites and AI transforming wildfire detection

https://www.theguardian.com/us-news/2026/aug/17/satellites-ai-wildfire-detection
1•bookofjoe•30m ago•0 comments

Sales calculation tool for Excel price lists

1•Marten42•31m ago•0 comments

Qbix Server – PHP 100× faster than Nginx and PHP-fpm

https://github.com/Qbix/webserver
1•theHocineSaad•31m ago•0 comments

The Input Layer

https://mg-crea.com/blog/the-input-layer/
1•olouv•33m ago•0 comments

Show HN: Explore 2D semantic space with the Jev model

https://semanticspace.dev/
1•holdswarm•33m ago•0 comments

King Charles has hesitations about AI

https://techcrunch.com/2026/09/17/even-the-king-of-england-has-his-hesitations-about-ai/
1•soltanov•35m ago•0 comments

The Harms of Modern Lighting and the Fight to Bring Back Incandescent Bulbs

https://www.midwesterndoctor.com/p/the-hidden-harms-of-modern-lighting
1•bilsbie•35m ago•0 comments

Show HN: Using a diffusion model to write docs quickly

https://www.cortee.ai
1•nandorb1•39m ago•0 comments