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!

The HydroGym reinforcement learning platform for fluid dynamics

https://www.nature.com/articles/s41586-026-10917-6
1•loiseaujc•41s ago•0 comments

Build a Reasoning Model, Scratch 2: Base Model, Text Generation, and KV Caching [video]

https://www.youtube.com/watch?v=BJua0yjO5dk
1•mdp2021•1m ago•0 comments

Jeff Bezos and the Age of Amazon (2014)

https://medium.com/galleys/the-everything-store-6ce05e08ed08
1•tosh•3m ago•0 comments

India Eradicated Polio

https://altermag.com/articles/how-india-eradicated-polio
1•trojanalert•7m ago•0 comments

Neural Canvas: a fruit fly connectome demo in the browser

https://huggingface.co/spaces/Xenova/fruit-fly-simulation
1•codelion•8m ago•0 comments

The binary I ship is the binary I want to test

https://blog.maxgio.me/posts/the-binary-i-ship-is-the-binary-i-want-to-test/
1•maxgio92•9m ago•1 comments

England's teens outperform peers in most countries in maths, reading and science

https://www.theguardian.com/education/2026/sep/08/england-teenagers-outperform-peers-in-most-coun...
1•defrost•11m ago•0 comments

Logitech launches MX Keypad for developers

https://news.logitech.com/press-releases/news-details/2026/Logitech-Unveils-MX-Keypad-for-Develop...
1•fourfire•12m ago•0 comments

Is the UK government the new training ground for AI execs?

https://www.theguardian.com/technology/2026/sep/07/architect-uk-ai-policy-quits-anthropic-conflic...
1•nixlaz•13m ago•0 comments

CERN LHCb upgrade under threat after UK pulls funds

https://www.researchprofessionalnews.com/rr-news-europe-infrastructure-2026-8-lhcb-upgrade-still-...
1•g6pdh•16m ago•0 comments

Atoonk/packetio: high-performance packet I/O library for Go

https://github.com/atoonk/packetio
1•pjf•16m ago•0 comments

Please consider running a NTP server in the NTP Pool

https://dreamstation.systems/personal/ntppool.html
4•robinpie•16m ago•0 comments

Show HN: EdgePad – tool for configuring edge touchpad gestures on Linux laptops

https://github.com/assembledev/edgepad
2•dev-e•16m ago•0 comments

Isthmus: History as an Answer Key in Cross-Field Retrieval [pdf]

https://darksigma.com/cross-field-retrieval-benchmark-isthmus.pdf
1•LumiTharMan•17m ago•0 comments

The firms turning recruitment into X Factor-style competitions

https://www.bbc.co.uk/news/articles/cgk43mn42g7o
2•baloki•18m ago•0 comments

Two children died from gene therapies in China: where the field goes next

https://www.nature.com/articles/d41586-026-02497-2
3•sbulaev•24m ago•1 comments

Python Turtle Graphics

https://docs.python.org/3/library/turtle.html
2•gebt•25m ago•0 comments

DeepSeek v4.1 Flash is now available for internal beta testing

3•dares2573•27m ago•0 comments

Machine learning of artistic fingerprints in jazz

https://www.nature.com/articles/s42256-026-01279-9
1•tobr•29m ago•0 comments

"Hammock Driven Development" (2010)

https://www.youtube.com/watch?v=f84n5oFoZBc
1•birdculture•34m ago•0 comments

A Unified Benchmark for Egocentric Human-to-Robot Dexterous Hand Image Editing

https://github.com/HandEdit/HandEdit
1•kaonashi-tyc-01•36m ago•0 comments

Refine Cycle: self-improvement plugin for Hermes Agent

https://github.com/Bergschloss/Refine-Cycle-for-Hermes-Agent
1•1134taras•36m ago•0 comments

Show HN: Use Strava's official MCP with other chatbots

https://github.com/leecjohnny/strava-mcp-gateway
1•leecmjohnny•38m ago•0 comments

I talked to deep buddy about AI solving Navier Stokes rumors

https://www.echohive.ai/deep-talk-buddy/navier-stokes
1•echohive42•41m ago•0 comments

How AI based programming could work (2016)

https://bjenik.com/AIBasedProgramming/
1•andsoitis•44m ago•1 comments

A Zero-Dark-Matter Mechanical Model of Cosmology

https://github.com/IoannisKousoulakos/THE-KOUSOULAKOS-MODEL-OF-COSMOLOGY-WIP/tree/main
1•ppkuio•47m ago•0 comments

US attacks UK plans to boost traditional media on social platforms

https://www.theguardian.com/us-news/2026/sep/07/trump-administration-attacks-uk-social-media-plans
5•beardyw•50m ago•2 comments

Why Taiwan's Silicon Shield Is Failing

https://nationalinterest.org/blog/techland/why-taiwans-silicon-shield-is-failing
2•baud147258•53m ago•1 comments

Show HN: Hybrid Nav2 and PPO RL for indoor Lidar-only robot navigation

https://github.com/Sourav29-2/ppo-lidar-navigation-
1•Ros_Sourav•57m ago•0 comments

Stable Singularity of the Euler Equations on R^3 without forcing – Anima on AI

https://anima-ai.org/2026/09/07/stable-singularity-of-the-euler-equations-on-r3-without-forcing/
1•bjenik•57m ago•0 comments