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!

Ask HN: Is what Open Commonplace legal?

1•VishnuShayeq01•2m ago•0 comments

Hister: A private, self-hosted search engine for the browser history and files

https://github.com/asciimoo/hister
1•mpfect•3m ago•0 comments

The Flood Came Without Warning: What Happened in Northern Nepal?

https://moztako.me/northern-nepal-flash-flood-rasuwa-timure-syabrubesi/
1•vadinho•4m ago•0 comments

Bill Gates says we've passed AI's danger thresholds. Now what?

https://www.technologyreview.com/2026/08/26/1142946/bill-gates-ai-danger-threshold/
1•mdp2021•4m ago•0 comments

Gh omens: will GitHub go down?

https://github.com/sandermvanvliet-stack/gh-omens/
1•sandermvanvliet•6m ago•1 comments

More than 18000 questionable images found in antibody catalogues of 15 companies

https://www.nature.com/articles/d41586-026-02635-w
1•matsemann•7m ago•0 comments

Revolut Joins Global Stablecoin Race with Euro-Backed Token

https://www.bloomberg.com/news/articles/2026-08-26/revolut-joins-global-stablecoin-race-with-euro...
2•thm•11m ago•0 comments

Multilayer Network Backboning

https://www.michelecoscia.com/?p=2583
1•mikk14•12m ago•0 comments

SleepJEPA: Learning the latent world of sleep to estimate disease risk

https://pmc.ncbi.nlm.nih.gov/articles/PMC13042106/
1•brandonb•13m ago•0 comments

'This is crazy. This is insane': Bill Gates has changed his mind about AI,jobs

https://www.semafor.com/article/08/25/2026/this-is-crazy-this-is-insane-bill-gates-has-changed-hi...
2•thm•13m ago•1 comments

A Drone Killed Three Ukrainians. It Was Guided by A.I

https://www.nytimes.com/2026/08/24/world/europe/russia-drones-autonomous-ai-kill-ukraine-war.html
2•YeGoblynQueenne•17m ago•1 comments

Drive-By Agent Hijacking: One Website Visit, Persistent Model Poisoning

https://www.cyera.com/research/nemoclaw-one-website-visit-to-hijack-your-ai-agent
1•shimi12•19m ago•0 comments

Veryfront Code, the first full-stack AI framework

https://github.com/veryfront/veryfront-code
2•kojiwakayama•25m ago•1 comments

One sentence owns this page until you pay $1 more

https://takethethrone.fun
1•letapnahsor•29m ago•0 comments

Is this the civilization we really want? (2017)

https://dynamicland.org/archive/2017/Is_this_the_civilization_we_really_want
1•panic•30m ago•0 comments

WICG/Local-Peer-to-Peer

https://github.com/WICG/local-peer-to-peer
1•eternityforest•32m ago•0 comments

MIDI-hook – Your MIDI controller, now a command center

https://github.com/skorotkiewicz/midi-hook
2•modinfo•32m ago•0 comments

Chinese robot Tiangong clocks sub-9 second 100 metres

https://www.reuters.com/world/asia-pacific/chinese-robot-tiangong-clocks-sub-9-second-100-metres-...
3•hakkikonu•33m ago•1 comments

Reconstructing the benchmark behind Luc Julia's 64% LLM reliability claim

https://github.com/angeluriot/Julia_bench
2•matthieu_bl•36m ago•0 comments

The Market for Lemons

https://en.wikipedia.org/wiki/The_Market_for_Lemons
3•tosh•39m ago•0 comments

Wayland "Intrinsically Faster Than X11, but Not Necessarily More Efficient"

https://www.phoronix.com/news/Wayland-X11-Performance-PorteuX
2•rbanffy•39m ago•0 comments

A problem with RLVR training data

https://twitter.com/SkyeSharkie/status/2092122622834442581
1•tosh•40m ago•0 comments

How We Used AI to Bring MongoDB to DynamoDB

https://www.mongodb.com/company/blog/technical/how-we-used-ai-bring-mongodb-to-dynamodb
1•reticentraccoon•40m ago•0 comments

Casey Muratori – The Root of the Root of All Evil – BSC 2026 [video]

https://www.youtube.com/watch?v=hpj6r6CjJf8
2•gingerBill•41m ago•0 comments

A New Framework for How the Brain Compresses Our Noisy World

https://www.quantamagazine.org/a-new-framework-for-how-the-brain-compresses-our-noisy-world-20260...
1•isaacfrond•45m ago•0 comments

Ask HN: Why do you use Ubuntu?

1•flanked-evergl•47m ago•2 comments

ByteDance Launches AI Office Product "Doubao Work"

https://www.ithome.com/0/993/865.htm
1•JulianVance•48m ago•1 comments

US removes Syria from terrorism sponsor list, lifting major investment obstacle

https://www.reuters.com/world/middle-east/us-removes-syrias-designation-state-sponsor-terrorism-2...
7•imadj•50m ago•1 comments

Effect v4 core package now has no external dependencies

https://twitter.com/tim_smart/status/2092430414837407896
1•tosh•50m ago•0 comments

Ask HN: What are you using to access x.com at the moment?

1•throwaw12•50m ago•2 comments