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!

Huge Pages can improve Postgres performance

https://clickhouse.com/blog/huge-pages-clickhouse-managed-postgres
1•saisrirampur•3m ago•0 comments

Adversarial stress-testing of long-horizon multi-agent systems

https://arxiv.org/abs/2609.17320
1•anigbrowl•3m ago•0 comments

ASI existential risk: reconsidering alignment as a goal

https://michaelnotebook.com/xriskbrief/
1•reasonableklout•6m ago•0 comments

Beyond Zero-Skipping: Redundancy-Aware Arch. and Systems for Efficient Inference [video]

https://www.youtube.com/watch?v=WF69XRIqSpU
1•matt_d•6m ago•0 comments

The world epidemic of sleep disorders is linked to Vitamin D deficiency

https://pubmed.ncbi.nlm.nih.gov/22583560/
2•andsoitis•7m ago•0 comments

Roman fort found in Wales could prove myth of emperor's camp is real

https://www.theguardian.com/uk-news/2026/oct/12/mythical-roman-fort-frenni-fawr-wales-emperor
2•gmays•8m ago•0 comments

Peatland Fires Darken Skies in Indonesia

https://science.nasa.gov/missions/aqua/peatland-fires-darken-skies-in-indonesia/
2•teleforce•8m ago•0 comments

Implementing the Lindsey O. Graham Sanctioning Russia and Iran Act of 2026

https://www.whitehouse.gov/presidential-actions/2026/10/implementing-the-lindsey-o-graham-sanctio...
2•defly•12m ago•0 comments

Show HN: Crowned – A live king-of-the-hill billboard for projects

https://www.crowned.wtf/
1•lazzzyyycoder•14m ago•0 comments

NOAA oceanographer explains Kelvin waves and their part in El Niño

https://www.fisheries.noaa.gov/feature-story/kelvin-waves-explained
3•divbzero•19m ago•0 comments

Space: Sandboxed Platform for Agentic Code Execution

https://github.com/perplexityai/SPACE
1•Palmik•21m ago•0 comments

Moon-Like Madagascar

https://science.nasa.gov/earth/earth-observatory/moon-like-madagascar/
2•geox•21m ago•0 comments

I made a New tab page to give you NASA's Image of the day everytime you newtab

https://avycado13.github.io/newpage/
1•avycado13•31m ago•0 comments

Show HN: Llmspeed – feel how fast a local LLM runs before you buy the hardware

https://llmspeed.dev/
2•albinstman•35m ago•0 comments

Tiered caching: the checkbox that cuts origin load and almost nobody checks

https://plimie.com/blog/tiered-caching-origin-load/
1•pcaminog•36m ago•0 comments

CDN cache hit ratio is lying to you

https://plimie.com/blog/cdn-cache-hit-ratio-lying/
1•pcaminog•36m ago•0 comments

Tort Law at the Frontier of Artificial Intelligence

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6979919
1•reasonableklout•41m ago•0 comments

German police launch investigation after robot allegedly gropes teenage girl

https://www.cnn.com/2026/10/14/europe/germany-investigation-robot-groping-intl
6•snarky-comments•45m ago•0 comments

Doom: The Gallery Experience

https://www.newgrounds.com/portal/view/960452
1•razodactyl•45m ago•0 comments

Show HN: 100kb-SDK – Client-side WASM image and PDF optimizer to cut S3 bills

https://www.100kb.in/en/developer
1•Abhishek_6277•45m ago•0 comments

Show HN: Gittins, an online bandit engine that enforces log correctness

https://www.getgittins.dev
1•maxpagels•49m ago•0 comments

Commodore 64 Hardware Simulator

https://github.com/antirez/c64-hw-simulator
2•erickhill•53m ago•0 comments

List of predictions for autonomous Tesla vehicles by Elon Musk

https://en.wikipedia.org/wiki/List_of_predictions_for_autonomous_Tesla_vehicles_by_Elon_Musk
5•giuliomagnifico•54m ago•0 comments

Show HN: Online Piano – Play a Free Virtual Piano Keyboard

https://urpiano.com/
4•artiomartiom•55m ago•0 comments

Zeabur discontinues AI Hub after its August security breach

https://zeabur.com/changelogs/aihub-shutdown
1•iamsyr•57m ago•0 comments

Trump Signs Order Exempting Russia from Sanctions Law

https://www.nytimes.com/2026/10/16/us/politics/trump-order-russia-sanctions.html
6•jacquesm•59m ago•0 comments

Nvidia-Nemotron-Labs-Dory1.0-4B-NVFP4

https://huggingface.co/nvidia/NVIDIA-Nemotron-Labs-Dory1.0-4B-NVFP4
1•fprog•1h ago•1 comments

"In every study that considered the question"

https://unsung.aresluna.org/in-every-study-that-considered-the-question/
11•zdw•1h ago•6 comments

Lithos-metal: Qwen3.8-27B on 40-core M5 Max at 168 tokens/s

https://github.com/lithos-ai/lithos-metal
1•emp_•1h ago•0 comments

The Criminal Behind Los Angeles' Griffith Observatory

https://www.popsci.com/science/griffith-observatory-founder-criminal/
3•gmays•1h ago•0 comments