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!

Show HN: What is the price impact over your sales (a price simualtion game)

https://www.fastcompete.com/price-wars
1•adibalcan•41s ago•0 comments

Angel Investor Simulator

https://guacosoft.com/angel/investorSim.html
1•babuskov•1m ago•0 comments

The Conversation Isn't Real

https://lonriesberg.com/posts/the-conversation-isnt-real/
1•lriesberg•1m ago•0 comments

Postgress Repo 3D Visualization

https://www.reddit.com/r/PrincipalAi/s/qt6tYiqeda
1•fernando-ram•1m ago•0 comments

Show HN: AI math chat that knows your notes, connecting you to human experts

https://www.prooftree.ai
1•lemma1729•1m ago•0 comments

Brave Place Search API: The Google Maps Alternative That Costs 6–7x Less

https://brave.com/blog/place-search-improved/
1•dotcoma•2m ago•0 comments

Two concerns I have with AI right now

1•ramoz•2m ago•0 comments

Ask HN: Any Quantum Computer people who knows how to run a benchmark here?

1•KenographerPrim•4m ago•0 comments

Two teens learn the hard way not to do toy gun drive-bys from a Waymo

https://arstechnica.com/cars/2026/07/two-teens-learn-the-hard-way-not-to-do-toy-gun-drivebys-from...
1•Gedxx•4m ago•0 comments

European countries top 'scorecard' on climate progress while US slips to 27th

https://www.theguardian.com/environment/2026/jul/08/climate-change-crisis-europe-us
1•mitchbob•4m ago•0 comments

Apple dropped plan for encrypting backups after FBI complained (2020)

https://www.reuters.com/article/us-apple-fbi-icloud-exclusive-idUSKBN1ZK1CT/
2•downbad_•5m ago•0 comments

AOLs Instant Messenger was the unsung hero of the early-aughts

https://a.wholelottanothing.org/aols-instant-messenger-was-the-unsung-hero-of-the-early-aughts/
1•gaws•5m ago•0 comments

TypeScript 7

https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/
2•DanRosenwasser•6m ago•0 comments

Show HN: Maps for e-scooters (hills and battery routing)

https://battmap.com
1•thepaulthomson•6m ago•0 comments

Measuring the Trustworthiness of Open-Source-Derived Models

https://cognition.com/blog/measuring-open-source-model-trustworthiness
1•lord_sudo•6m ago•0 comments

FlockCamRE – Reverse Engineering of Flock Cameras

https://github.com/kernelstub/FlockCamRE
1•denysvitali•7m ago•0 comments

Show HN: Aerohud – Grid Overview for AeroSpace (macOS)

https://github.com/nikhilmwarrier/aerohud
1•niksystems•8m ago•0 comments

AI memory is a filing cabinet

https://platformpilot.ai/blog/your-ai-memory-is-a-filing-cabinet
2•laurauzcategui•8m ago•0 comments

TV licence fee is 'yesterday's model', new BBC director general says

https://www.bbc.co.uk/news/articles/c20yjjm7n87o
1•mmarian•8m ago•0 comments

Stereotypical LLMs

https://ordinaryintelligence.substack.com/p/stereotypical-llms
1•mldev_exe•9m ago•0 comments

Jam Programming Language

https://rapha.land/jam-programming-language/
1•birdculture•9m ago•0 comments

Show HN: a new paradigm for a smartphone camera interface

https://phase.buzz/interface/
1•AndrewSwift•10m ago•1 comments

Show HN: I built a $90 terminal to find where locals eat via spatial gravity

https://hungrybutnotstupid.com/
1•kingchesco•10m ago•0 comments

Show HN: paddock – Ranks and runs LLMs on your Mac from live GGUF headers

https://github.com/MaximeDeconinck/paddock
1•maximedeco•11m ago•0 comments

Show HN: Git-Backed Skill Sharing for Non Techies

https://skillburst.ai/blog/why-i-built-skillburst/
1•htahir111•12m ago•0 comments

Leveraged Stock ETFs Are as Stable as a Row of Dominoes

https://www.bloomberg.com/opinion/articles/2026-07-08/leveraged-stock-etfs-will-burn-retail-inves...
1•petethomas•12m ago•0 comments

Ask HN: Why are there only a handful of high quality TUI apps in homebrew?

1•amichail•13m ago•1 comments

Factory was severely short on workers. Then it offered flexible work

https://www.npr.org/2026/07/08/nx-s1-5876084/manufacturing-flexible-part-time-work
2•iancmceachern•13m ago•1 comments

Identity At the Center on customer identity and access management [video]

https://www.youtube.com/watch?v=aaHEajBFAbI
1•mooreds•14m ago•0 comments

US will give Patriot missile license to Ukraine

https://www.reuters.com/world/europe/trump-says-both-sides-ukraine-war-want-settlement-2026-07-08/
1•geox•16m ago•0 comments