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!

Where China's Manufacturing Scale Helps Less

https://michaelhillaert1.substack.com/p/where-chinas-manufacturing-scale
1•michaelhillaert•15s ago•0 comments

Show HN: Flutter with Node.js with type-safe interface

https://github.com/AdityaJandu/rpc-dart
1•rearview•29s ago•0 comments

Cyborg bio-drones are made from actual living pigeons

https://newatlas.com/technology/neiry-cyborg-pigeons-camera-drones/
1•geox•34s ago•0 comments

Show HN: Echo – Survive your past (free browser game)

https://play-echo.com/
1•miniotta•1m ago•0 comments

I analyzed 2520 agent runs for what agents said vs. did

https://getbelay.dev/blog/said-vs-did/
1•allexsendev•4m ago•0 comments

JetKVM 0.5.11 is out: OS Services, MQTT macros and download from URL

https://jetkvm.com/changelog/jetkvm-0.5.11
1•thinkafterbef•4m ago•0 comments

Microbe, by Joan Slonczewski (1995)

https://www.davidmswitzer.com/slonczewski/microbe2.html
1•Eridanus2•5m ago•0 comments

GLM-5.4: Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/glm-5-4
2•theanonymousone•5m ago•0 comments

PLC2Shell: Pre-Auth RCE in Codesys Control Runtime

https://plc2shell.com/en/plc2shell-vulnerability/
1•flashfabrixx•5m ago•1 comments

User Story Mapping Agents, Coding Is Solved – Food for Agile Thought 573

https://age-of-product.com/food-agile-thought-573-user-story-mapping-agents/
1•swolpers•7m ago•0 comments

Purpose-driven group spaces instead of an algorithmic feed: notes from Shimmy

https://www.shimmyapp.com/?_blog=shimmy-hn
1•elliot-crabtree•8m ago•0 comments

Show HN: Interactive Apps in Your Markdown Notes (EtherPK)

https://blog.etherpk.com/interactive-apps-in-your-markdown-notes
1•gb2d_hn•8m ago•0 comments

Trajectory plot for the Sarow, Russia (nuclear?) incident [pdf]

https://www.ready.noaa.gov/hypubout/trajplot_119809.pdf
2•oger•14m ago•1 comments

Anthropic data centre partner looks to raise $5B in first post-IPO deal

https://www.ft.com/content/e72636f9-7cc4-483f-b280-7244627dbb56
1•martaibanez•15m ago•0 comments

AI toys say or sexually explicit things to NBC News [video]

https://www.youtube.com/shorts/3qkTC-05PnQ
2•nxobject•26m ago•0 comments

Five dead after incident at Russian nuclear R&D centre, emergencies min. says

https://www.reuters.com/world/russian-nuclear-research-centre-reports-serious-incident-says-there...
4•gvieri•30m ago•0 comments

Building a Self-Hosted Chess Blunder Trainer

https://mrlokans.work/posts/building-self-hosted-chess-blunder-trainer/
1•romania1•31m ago•0 comments

DeepSeek May Limit Open-Source Releases Citing Safety Issues

https://www.bloomberg.com/news/articles/2026-12-03/deepseek-may-limit-open-source-releases-citing...
3•porridgeraisin•31m ago•0 comments

I can't type Hindustani into my terminal emulator, and that makes me sad

https://ankursethi.com/blog/terminal-emulators-complex-scripts/
1•birdculture•34m ago•0 comments

Face tracking without camera?"PiEEG XR," which map muscle activity to an avatar

https://metacul-frontier.com/?p=41240
1•rematosire•42m ago•0 comments

Toward a political revolution at the United Nations: the draft Framework Convent

https://thomaspiketty.wordpress.com/2026/11/24/toward-a-political-revolution-at-the-united-nations/
1•fanf2•44m ago•0 comments

Gorgeous award-winning wildflower photographs

https://amateurphotographer.com/latest/photo-news/gorgeous-award-winning-wildflower-photographs-s...
1•NordStreamYacht•45m ago•0 comments

Five dead in serious incident at Russian nuclear centre, officials say

https://www.bbc.com/news/articles/c8zx9325q13eo
5•s_weber•46m ago•1 comments

OpenTubeX is an open-source, highly customizable, privacy-focused YouTube client

https://github.com/OpenTubeX/OpenTubeX
2•hggh•47m ago•1 comments

Show HN: Semantic Function Diffs and Voice Chat About Your Diff

https://rex.mindmeld360.com/blog/review-pull-requests-from-your-session
1•tomerbd•49m ago•0 comments

Brain LLM

https://mind.sabi.com/
2•bananaflag•51m ago•2 comments

Computed Permutation Trellis Coding (CPTC): Near-Optimal Quantization

https://arxiv.org/abs/2611.22019
1•peter_d_sherman•52m ago•0 comments

An OS with no threads: The Actor Model

https://www.timdbg.com/posts/dbgos-actor-model/
19•ingve•52m ago•2 comments

A Riddle Wrapped in an Enigma (2015) [pdf]

https://eprint.iacr.org/2015/1018.pdf
1•greyface-•53m ago•0 comments

Meta faces fines as EU accuses it of failing to protect users from scammers

https://www.reuters.com/legal/litigation/meta-faces-fines-eu-accuses-it-failing-protect-facebook-...
1•giuliomagnifico•55m ago•0 comments