frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

Show HN: an AI that settles small couple arguments

https://thepiece.app/en
1•Byalpel•4m ago•0 comments

Teaching AI agents to ask better questions by playing "Battleship"

https://news.mit.edu/2026/teaching-ai-agents-ask-better-questions-playing-battleship-0603
1•droidjj•6m ago•0 comments

Digital Goods by ProxyStore

https://digitalgoods.proxysto.re/en
1•Cider9986•7m ago•0 comments

A Structure-Aware Fuzzing Experiment

https://fitzgen.com/2026/06/01/structure-aware-fuzzing-experiment.html
1•sfink•12m ago•0 comments

A Primer in Post-Training Reasoning Data: What We Know About How It Works

https://arxiv.org/abs/2606.02113
1•Anon84•13m ago•0 comments

JackHamr, cloud workspaces for orchestrating coding agents

https://www.jackhamr.ai
2•jrda•13m ago•0 comments

FUTO Swipe Relative error rate improvement vs. Gboard

https://swipe.futo.tech/
1•Cider9986•15m ago•0 comments

California Back and Pain Specialists Exposes 133GB of Patient Medical Records

https://write-ups.security-chu.com/2026/06/California-Back-Pain-Specialists-with-data-breach.html
1•news_rt•20m ago•0 comments

Pie: Yet another open-source coding agent in Rust

https://github.com/c4pt0r/pie
1•c4pt0r•21m ago•2 comments

I built a vulnerable app and spent $1,500 seeing if LLMs could hack it

https://kasra.blog/blog/i-spent-1500-seeing-if-llms-could-hack-my-app/
6•jc4p•24m ago•0 comments

Review of the MoErgo Go60 Keyboard

https://arslan.io/2026/06/02/review-of-the-moergo-go60-keyboard/
1•wapasta•25m ago•0 comments

Klaser Cards, a printable personal collection

https://klaser.cards/
2•Triphibian•25m ago•1 comments

Why Video Agent models are next

https://www.latent.space/p/video-agents
2•gmays•26m ago•0 comments

Dreambeans

https://labs.google/dreambeans
1•fallinditch•26m ago•0 comments

Aquifer – local flow control for bursty GPU-backed APIs

https://github.com/rjpruitt16/aquifer
1•rjpruitt16•27m ago•0 comments

Scholarly Futures: AI and the practical scientist

https://scholarlyfutures.substack.com/p/ai-and-the-practical-scientist
1•JohnHammersley•27m ago•0 comments

A community-ranked feed of blog posts from curated sources

https://bubbles.town/
1•wwfn•30m ago•1 comments

Dystopic Future: The Set Design in Alien

https://kevinmccorrytv.ca/alien-2.html
1•exvi•31m ago•0 comments

The Star Blazers Page

https://kevinmccorrytv.ca/blazers.html
1•exvi•31m ago•0 comments

Monterey Park votes to permanently ban datacenters

https://www.theguardian.com/us-news/2026/jun/03/california-monterey-park-datacenters-ban
4•logickkk1•32m ago•0 comments

Limbic Capitalism

https://cwcp.ca/blog/limbic-capitalism/
2•the-mitr•33m ago•0 comments

The Lost Space Battleship Yamato LaserDisc Game (2013)

https://www.ourstarblazers.com/vault/363/
1•exvi•33m ago•0 comments

Reflections on Two Years of Using Colemak

https://bojidar-bg.dev/blog/2023-12-27-colemak/
1•Curiositry•33m ago•0 comments

HTTP Pipelining

https://en.wikipedia.org/wiki/HTTP_pipelining
1•Brysonbw•34m ago•0 comments

U.S. to Dismantle System Tracking Atlantic Currents That Are at Risk of Collapse

https://e360.yale.edu/digest/trump-ooi-amoc
2•rguiscard•37m ago•0 comments

Show HN: tools wiki – cheatsheets for popular CLI commands

https://toolswiki.deebox.dev/
1•flexdinesh•37m ago•0 comments

Dumbphone 2

https://dumb.co/
3•skogstokig•40m ago•0 comments

Is Dreams of Violets AI slop – or the future of film-making?

https://www.theguardian.com/film/2026/jun/03/dreams-of-violets-ash-koosha-iran-tribeca-film-festival
2•fallinditch•42m ago•0 comments

Under the Hood of "Sum Ergo Demonstro" Demo [video]

https://www.youtube.com/watch?v=0_9YS2tsdYc
1•guiambros•43m ago•0 comments

TensorSharp: Open-Source Local LLM Inference Engine

https://github.com/zhongkaifu/TensorSharp
1•zhongkaifu•52m ago•1 comments