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!

Agent Memory: An Anatomy

https://brgsk.xyz/agent-memory-anatomy/
6•brgsk•5m ago•0 comments

Linux Journey Now Part of LabEx

https://support.labex.io/en/using-labex/linux-journey-now-part-of-labex
1•getvm•5m ago•0 comments

Lago Open-source SDK: Bill on top of your LLM token cost with no middleware

https://github.com/getlago/lago-agent-sdk-python
1•AnhTho_FR•5m ago•0 comments

Alcove – Persistent architectural memory for coding agents

https://github.com/epicsagas/alcove
1•epicsagas•6m ago•0 comments

Wikipedia Whitewashes Mao – The Anatomy of Ideological Capture

https://www.tracingwoodgrains.com/p/how-wikipedia-whitewashes-mao
1•appreciatorBus•9m ago•0 comments

Pope Leo warns AI challenges must be confronted with regulation, transparency

https://www.cbc.ca/news/world/pope-leo-magnifica-humanitas-encylical-9.7210842
2•1vuio0pswjnm7•10m ago•0 comments

If every OS was open source, you could run vista

1•ms_menardi•11m ago•0 comments

Bye-Bye, HR – Bolt Boots HR Dept

https://nypost.com/2026/05/26/opinion/bye-bye-hr-lets-hope-bolt-financial-ceo-ryan-breslow-starts...
2•appreciatorBus•12m ago•0 comments

Ersc.io: Jujutsu-native source forge

https://ersc.io/blog/ersc-availability
1•yegle•14m ago•0 comments

User Guide to Model Checking for Industrial Programmers with TLA+

https://github.com/gshanemiller/tla-examples
1•scrubs•15m ago•1 comments

Challenges for AI Misuse Prevention: Jurisdictions, Open Models, and Privacy

https://substack.norabble.com/p/challenges-for-ai-misuse-prevention
1•nedruod•15m ago•0 comments

Sonny Rollins, Jazz's Saxophone Colossus and Greatest Improvisor, Dead at 95

https://www.rollingstone.com/music/music-news/sonny-rollins-jazz-legend-saxophone-colossus-dead-o...
5•boarsofcanada•20m ago•0 comments

Cursorfy – recursive Cursor SDK and FastAPI dashboard that sees itself

https://github.com/crowdcent/cursorfy
1•jrai•20m ago•0 comments

AI Tools Are Only as Good as Your Judgment – and That's the Point

https://theaileverageweekly.com/posts/your-ai-tools-are-only-as-good-as-your-judgment-and-that-s-...
2•talvardi7•22m ago•0 comments

Diary of a Disabled DJ

https://medium.com/@samhenrycliff/diary-of-a-disabled-dj-entry-1-81f55f8c23bf
1•6stringmerc•23m ago•0 comments

Ask HN: Are recent tech layoffs affecting mostly Sr and Jr devs?

3•bubbamack•26m ago•1 comments

Ask HN: What is your tips or wild usages on gcloud?

1•revv00•27m ago•0 comments

The OSS Sabotage Manual Became Corporate Best Practice

https://www.alephic.com/sabotage
2•cyb0rg0•28m ago•2 comments

ALPR Mission Creep: School Residency, Background Checks, and Noise Complaints

https://www.eff.org/deeplinks/2026/05/more-license-plate-reader-mission-creep-school-residency-ve...
3•hn_acker•32m ago•1 comments

Show HN: Artifold – A local-first library for AI-generated HTML artifacts

https://github.com/shubhamgoel27/artifold
1•shubhamgoel27•34m ago•0 comments

Anthropic Appoints KiYoung Choi as Representative Director of Korea

https://www.anthropic.com/news/kiyoung-choi-representative-director-anthropic-korea
1•surprisetalk•38m ago•0 comments

CodeAtlas – Google Maps for your codebase, with a live differential UML engine

https://www.codeatlas.live/
2•vamsikanneganti•42m ago•0 comments

Ecosystem for (Studying) Network Programming

https://docs.packetcord.io/
1•vmetodiev•45m ago•0 comments

Cloudflare Flagship

https://developers.cloudflare.com/flagship/
4•tjek•47m ago•2 comments

Unit cell designer for 2d wallpaper groups

https://nasqret.github.io/symm/
1•mathgenius•48m ago•0 comments

The true reason C++ always wins [video]

https://www.youtube.com/watch?v=I7fEsbksKRE
1•abhaynayar•49m ago•0 comments

You're about to feel the AI money squeeze

https://www.theverge.com/ai-artificial-intelligence/917380/ai-monetization-anthropic-openai-token...
2•1vuio0pswjnm7•53m ago•1 comments

Qualcomm strikes AI chip deal with TikTok owner ByteDance

https://www.reuters.com/business/qualcomm-strikes-ai-chip-deal-with-tiktok-owner-bytedance-bloomb...
2•Voblit•57m ago•0 comments

Grok Build

https://grok.com/build
3•kristianpaul•1h ago•0 comments

Show HN: I made a simple Keyword Research tool for app devs

https://ezscreenshots.com/aso/
1•abrowniejr•1h ago•0 comments