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!

Nightshift: Plan, execute and review coding-agent work as files

https://github.com/orwa-mahmoud/nightshift
1•zachshallbetter•1m ago•0 comments

Design for Understandability – Schuster on Software

https://jschuster.org/blog/2026/11/19/design-for-understandability/
1•kiyanwang•1m ago•0 comments

How do you become known as a good engineer?

https://www.approachwithalacrity.com/p/how-do-you-become-known-as-a-good
1•kiyanwang•3m ago•0 comments

How Tyranny Works

https://www.theguardian.com/commentisfree/2026/nov/30/trump-silence-media
1•KingOfMyRoom•4m ago•0 comments

Megaspeed records reveal $13B in Nvidia deals with Alibaba unit

https://www.reuters.com/world/china/megaspeed-records-reveal-13-billion-nvidia-deals-with-alibaba...
1•01-_-•4m ago•0 comments

R/ClaudeCode: The files are editable

https://www.reddit.com/r/ClaudeCode/comments/1y65hxs/the_files_are_editable/
1•TechTechTech•5m ago•0 comments

Cognitive Debt in the GenAI Era – On the Loss of Understanding

https://arxiv.org/abs/2610.37888
2•lasky•6m ago•0 comments

It seems a Gemini ban might not be limited to just Gemini

https://flaviocopes.com/google-ai-account-bans/
5•nvmdbljstm•7m ago•3 comments

Maplibre-landmakrs: richer buildings on maplibre

https://github.com/am2222/maplibre-landmarks
1•maelito•10m ago•0 comments

The Cabinet of Keyboard Curiosities

https://datagubbe.se/keycurcab/
1•adunk•12m ago•0 comments

Hetzner Inference API

https://www.hetzner.com/ai/inference-api/
7•PaoloBarbolini•12m ago•2 comments

Italian court fines Netflix over movie joke about Michelangelo's David's

https://www.theguardian.com/world/2026/nov/30/netflix-italian-court-michelangelo-joke
1•dazhbog•14m ago•1 comments

Show HN: Pal Again – Turn an old iPhone or iPad into a Muse gadget

https://github.com/exrector/muse-gadget-ios
1•Exrector•16m ago•0 comments

APL, BQN, Uiua, J, Kap, TinyAPL

https://arraybox.dev/#7HjS
1•gjvc•16m ago•0 comments

Privacy Roulette

https://privacyroulette.eu/episodes/2026-12-01-trello-com/
2•AlexanderHanff•17m ago•1 comments

Bob's Company

https://lucumr.pocoo.org/2026/11/28/bob/
3•BerislavLopac•17m ago•0 comments

The mice that stopped trying, and then started running again

https://www.eurekalert.org/news-releases/1153127
1•geox•18m ago•0 comments

What would P=NP mean for engineering?

https://twitter.com/tarunyaa_/status/2127466258744365467
1•tarunyaa_•20m ago•0 comments

Quonset Hut

https://en.wikipedia.org/wiki/Quonset_hut
1•tosh•23m ago•0 comments

Advent Engine

https://advent-engine.com
1•jgrahamc•25m ago•0 comments

The Road to Modernity Leads West from China

https://www.noemamag.com/the-road-to-modernity-leads-west-from-china/
1•hunglee2•29m ago•0 comments

Advancing a decades-old problem in extremal graph theory

https://www.doubleai.com/research/advancing-a-decades-old-problem-in-extremal-graph-theory
1•NeuralOracle•31m ago•0 comments

Show HN: Ripple – Free, local-only Android app blocker with a 15-min cooldown

https://ripplefocus.github.io/en/
1•samrivera•32m ago•0 comments

Korean think tank plots to preserve memory dominance as Chinese tech catches up

https://www.theregister.com/systems/2026/12/01/south-korean-think-tank-plots-how-to-preserve-memo...
1•beardyw•34m ago•0 comments

Could a New Kind of AC Help Cool Buildings While Cutting Energy and Costs?

https://www.nlr.gov/news/detail/program/2026/could-a-new-kind-of-air-conditioner-help-cool-buildi...
1•wolfi1•34m ago•0 comments

Unlimited SVG Works: Trace On – Projection of Visual Worlds into SVG-Anything

https://unlimited-svg.github.io/
1•lnyan•36m ago•0 comments

The Future of Programming Is the History of Art

https://learncodethehardway.com/blog/42-the-future-of-programming-is-the-history-of-art/
2•vinipolicena•36m ago•0 comments

BroswerPilot

https://github.com/Ghost-Coder23/BrowserPilot
2•BCDev•41m ago•1 comments

AI infrastructure security: Taking over a vector database without credentials

https://remedio.io/research/vulnerability-disclosures/remote-code-execution-in-milvus/
2•omrid-remedio•41m ago•0 comments

Lord Kelvin, Data Scientist

https://win-vector.com/2019/08/06/lord-kelvin-data-scientist/
2•pombo•42m ago•0 comments