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!

ViewFit – Resize images to the size they are rendered at

https://github.com/andrea-bonacci/viewfit
1•andrea-bonacci•19s ago•0 comments

Culture Stops Slop

https://ampcode.com/podcast/season-02/episode-07
1•Multicomp•56s ago•0 comments

Stockfish in the Browser

https://stockfish-chess.pages.dev/
1•measurablefunc•1m ago•0 comments

A True Story of Resurrection and Retribution in the West

https://rewilding.org/a-true-story-of-resurrection-and-retribution-in-the-west/
1•speckx•2m ago•0 comments

Agentic Loops and the Headless Internet

https://francisshanahan.substack.com/p/agentic-loops-and-the-headless-internet
1•FrancisShanahan•2m ago•0 comments

I made a safe YouTube to MP3 (plus MP4;) converter that's free of ads

https://riplet.cc/
1•spammz•2m ago•1 comments

Better Launch

https://www.betterlaunch.co
1•useqrkit•3m ago•0 comments

Flawless UI-UX Skill 1.0.0

https://github.com/smokeeaasd/flawless-ui-ux/releases/tag/v1.0.0
1•99lcccss•3m ago•0 comments

Update for October 30th, 2026 Data Security Incident

https://workos.com/security/bulletins/update-for-october-30th-2026-data-security-incident
2•meetpateltech•8m ago•0 comments

Lessons from Building Copilot Cowork

https://commandline.microsoft.com/how-we-built-copilot-cowork-python-to-rust-migration/
1•gmays•8m ago•0 comments

Few Repercussions for Continued Gas Leaks After Couple's Death

https://insideclimatenews.org/news/03112026/few-repercussions-for-oil-firms-continued-leaks-after...
2•paimapi•9m ago•0 comments

GrapheneOS accuses YC of funding surveillance and enabling HN harassment

https://twitter.com/GrapheneOS/status/2118490356958597210
6•user_7832•12m ago•4 comments

Andrew Weldon post mortem on his Quake 4 levels

https://andrew-weldon.design/quake4.htm
1•klaussilveira•12m ago•0 comments

If your code chatbot was genuinely honest

1•chrisjj•13m ago•0 comments

GEO600 – A Vacuum Leak in the North Arm (2017)

https://www.geo600.org/77883/august-2017
1•_Microft•13m ago•0 comments

OneUptime 14.0: open-source observability platform adds data observability

https://github.com/OneUptime/oneuptime
2•bigoupea•14m ago•0 comments

show HN: Computer-Generated Asset Pipelines: Shading Language in Toy Story (1995)

https://codeaihq.com/computer-generated-asset-pipelines-shading-language-in-toy-story-1995/
2•CodeAIHQ•16m ago•0 comments

AI Product Team – 64 specialized AI agent roles with executable CLI workflows

https://github.com/3orionkings/ai-product-team
2•3orionkings•17m ago•0 comments

METR: Independent Assessment of AI R&D Acceleration at Anthropic in October 2026

https://www.lesswrong.com/posts/N5AmYkRks5CqAxvBg/metr-independent-assessment-of-ai-r-and-d-accel...
2•alach11•18m ago•0 comments

Humans slowly change, and that is our chance

https://evergreendesign.io/essays/humans-slowly-change-and-that-is-our-chance/
2•violinar•18m ago•0 comments

Piuma: New open source status bar for Hyprland

https://github.com/logicheneurali/piuma
2•logineur•18m ago•1 comments

Stay ahead in AI race; Build on next AI Idea

https://github.com/mukeshatnyc/dAIly
2•mukeshsinghnyc•19m ago•0 comments

VCF West Presentation: Is That Unix? – Sean Haas [video]

https://www.youtube.com/watch?v=RjtxpvXT5cA
2•oldnetguy•23m ago•0 comments

Harness 2: executing agent code as it streams

https://www.framer.com/blog/harness-2/
2•gmays•24m ago•0 comments

Devvm.dev: One VM for every project

https://devvm.dev/
2•luispa•25m ago•0 comments

Bye Deno, Hello Cloudflare

https://nerdy.dev/bye-deno-hello-cloudflare
3•speckx•25m ago•0 comments

Apple's grey list: iPhone won't autocorrect 'male chauvinist pig'

https://www.theguardian.com/technology/2026/nov/06/struggling-to-spell-male-chauvinist-pig-apple-...
2•uxhacker•25m ago•1 comments

When dreams feel real: the MÖBIUS model

https://www.nature.com/articles/s42003-026-09781-x
2•bryanrasmussen•26m ago•0 comments

Figma for hardware: AI can generate CAD, but what should we build?

https://opuslabs.substack.com/p/building-the-judgment-layer-for-hardware
1•opuslabs•27m ago•0 comments

The agentic web is here

https://www.technologyreview.com/2026/11/02/1147846/the-agentic-web-is-here/
1•bookofjoe•27m ago•0 comments