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!

Do AI agents need cryptographically verifiable decision receipts?

https://signatrust.net
1•abokenan444•28s ago•0 comments

Humans in the LLM Loop

https://derickrethans.nl/humans-in-the-llm-loop.html
1•speckx•1m ago•0 comments

Prior to WW2, German was language of scientific research

https://old.reddit.com/r/geography/comments/1u2bh63/prior_to_ww2_german_was_language_of_scientific/
1•theanonymousone•3m ago•0 comments

The Netherlands vs. the sea: The race to hold back rising waters

https://www.cnn.com/climate/netherlands-vs-the-sea-hold-back-rising-waters-c2e-spc
1•Tomte•6m ago•0 comments

Farmer donates land for a park, city sells it for $10M as data center land

https://www.tomshardware.com/tech-industry/farmer-donates-land-for-a-park-city-sells-it-for-data-...
4•maxloh•8m ago•0 comments

Zero-boilerplate bridge between ML models and AI agents

https://github.com/Tejas-TA/predikit
1•ttawrites•8m ago•0 comments

Prognostic value of adding delayed phase to cardiac computed tomography

https://academic.oup.com/ehjcimaging/article/27/5/969/8438618
1•PaulHoule•10m ago•0 comments

Amazon EC2 M9g and M9gd instances powered by new AWS Graviton5 processors

https://aws.amazon.com/blogs/aws/now-available-amazon-ec2-m9g-and-m9gd-instances-powered-by-new-a...
2•wmf•11m ago•0 comments

Reasons Your Thumbnails Aren't Getting Clicks (and the Fixes)

https://loop-tube.com/blog/why-your-thumbnails-dont-get-clicks
1•yashness•11m ago•0 comments

Solar power electricity surpasses coal for the first time in U.S.

https://apnews.com/article/trump-solar-coal-mining-climate-electricity-50250099a4e94384af4aa9f197...
1•giuliomagnifico•11m ago•0 comments

International Journal of ŽIžek Studies

http://zizekstudies.org/index.php/IJZS
1•jruohonen•12m ago•0 comments

Apple's interface monopoly wins in consumer AI with competing

https://www.matteast.io/competition-is-for-losers.html
2•meast•13m ago•1 comments

Rethinking the Value of Arbitrary Order in Diffusion Models

https://arxiv.org/abs/2601.15165
1•x312•14m ago•0 comments

Frontier AI: what you need to know

https://www.ncsc.gov.uk/frontier-ai
1•ColinWright•18m ago•0 comments

Visa plugs its payment network into ChatGPT, letting AI agents shop and pay

https://apnews.com/article/visa-chatgpt-openai-shopping-mastercard-d769dec86344cb4977c98789e8ec492f
2•thm•18m ago•1 comments

Chinese Automakers Building Presence in US Despite Fact They Can't Sell Anything

https://www.jalopnik.com/2190420/chinese-automakers-building-presence-in-u-s/
1•bookofjoe•18m ago•1 comments

Three Proposals for HTML

https://triptychproject.org/
3•thunderbong•19m ago•0 comments

ΠFS

https://github.com/philipl/pifs
1•helterskelter•19m ago•0 comments

InferenceFS

https://github.com/philipl/inferencefs/
1•helterskelter•20m ago•0 comments

18KB file listing tool in no_std Rust and Libc

1•tracyspacy•21m ago•0 comments

Coding as a Job Will Be Dead by the End of the Year

https://247wallst.com/investing/2026/06/08/elon-musk-coding-was-a-top-job-for-decades-it-will-be-...
2•nothrowaways•21m ago•3 comments

Show HN: Athenic – Why you can't do data analysis with Claude

https://www.athenic.com:443/
3•jaredzhao•24m ago•0 comments

The Homogenizing Effect of LLMs on Human Expression and Thought

https://arxiv.org/abs/2508.01491
2•thimabi•24m ago•0 comments

Waymo's New Reference Model for Human Collision Avoidance

https://waymo.com/blog/2026/06/reference-driver/
5•aanet•25m ago•1 comments

I stopped reading logs but the raw API requests – here's where my token go

https://github.com/tigerless-labs/cost-xray
2•Tigerless_ailab•25m ago•1 comments

Tlscookie – hidden cookies in TLS tickets

https://tlscookie.xx.kg/
1•Snawoot•25m ago•0 comments

Astronomy Notes

https://www.astronomynotes.com/
2•helterskelter•25m ago•0 comments

QuadRF is a modular 4x4 MIMO beamforming tile built with an open antenna arch [video]

https://www.youtube.com/watch?v=zdJ9Tbm8ALg
1•bkraz•26m ago•0 comments

Claude Fable 5 jailbroken to bypass Anthropic's new safety guardrails

https://twitter.com/elder_plinius/status/2064776322979676227
3•bukati•27m ago•1 comments

Show HN: Audio Visualization

https://sonicscope.replit.app/
1•ersinesen•27m ago•0 comments