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!

Making difficulty curves in games

http://www.davetech.co.uk/difficultycurves
1•hakkikonu•1m ago•0 comments

What Is Cloud.microsoft?

https://support.microsoft.com/en-us/office/what-is-cloud-microsoft
1•iso1631•5m ago•1 comments

The Depths She'll Reach (2021)

https://thedepths.longlead.com/
1•Thunder_rumbles•5m ago•0 comments

How HN: Argus – open-source security scanner with MCP

https://github.com/argus-code-scanning/argus-codescan-mcp
1•Gabrielokiri•6m ago•0 comments

Companies once tied to Assad kept winning UN contracts under Syria's new rulers

https://www.icij.org/investigations/damascus-dossier/companies-once-tied-to-assad-kept-winning-un...
2•robtherobber•10m ago•0 comments

Episode 2: Trump Must Admit Defeat in Iran [video]

https://www.youtube.com/watch?v=nRAtD7iAgwY
2•hebelehubele•12m ago•0 comments

A creature that the internet is raising together

https://canwecooperate.com
1•sheepyellow•14m ago•0 comments

The Economist Problem and AI

https://pithandpip.com/blog/the-economist-problem-and-ai
1•maguay•15m ago•0 comments

Show HN: Systematic reporting in under an hour, not months

https://octigen.com/blog/posts/2026-08-04-systematic-reporting/
7•m_mueller•20m ago•0 comments

Helios: Decentralized Autonomous Collision Avoidance for Megaconstellations

https://github.com/kamilprochazka27-art/HELIOS
1•HELIOSDecentral•21m ago•0 comments

Show HN: TickerNotch: Live tickers and news in the MacBook notch

https://bitvibelabs.com/tickernotch/
2•BitVibeLabs•24m ago•0 comments

The software group Palantir paid just £2M in corporation tax in the UK in 2024

https://www.theguardian.com/technology/2026/aug/05/palantir-corporation-tax-uk-2024-accounting-pr...
4•igortru•24m ago•1 comments

Bitcoin BIP110 mandatory activation this Saturday, how game theory will unfold?

https://www.simondixon.com/blog/bip-110-the-spam-war-and-the-battle-nobody-wants-to-name-where-i-...
2•slavgoyim•24m ago•0 comments

OpenAI pays $3.2M to settle claims it discriminated against US workers

https://www.theguardian.com/us-news/2026/aug/04/openai-worker-discrimination-claims-settlement
5•igortru•26m ago•0 comments

The official draw.io MCP Server

https://github.com/jgraph/drawio-mcp
2•saikatsg•26m ago•0 comments

OpenAI and Anthropic models 'went rogue' during UK cybersecurity test

https://www.theguardian.com/technology/2026/aug/05/openai-anthropic-models-went-rogue-cybersecuri...
3•ablation•27m ago•0 comments

AI's Arctic Land Grab

https://www.arctictoday.com/ai-arctic-land-grab/
2•NishanStepak•28m ago•1 comments

Why smarter AI models could drive up compute prices 10x

https://www.dwarkesh.com/p/why-compute-might-get-10x-more-expensive-video
1•mefengl•29m ago•1 comments

Callosium, one shared memory for every AI, in plain Markdown files

https://github.com/callosium/callosium
1•amk96•31m ago•0 comments

Affordable and automated EU AI Act compliance

https://scanara.io
2•scanara•31m ago•0 comments

Pentect: Let agents use secrets without seeing them

https://pentect.dev/start/what-is-pentect/
2•kozika•32m ago•0 comments

My thoughts on the foreign policy AI evaluation gap

https://www.karlsnotes.com/my-thoughts-on-the-foreign-policy-ai-evaluation-gap/
1•valkrieco•35m ago•0 comments

AI-generated stories rated better quality than human-written ones, study finds

https://www.theguardian.com/technology/2026/aug/05/ai-generated-stories-rated-better-quality-than...
2•amichail•36m ago•0 comments

Offline-First Data Architecture for a National Postal Service

https://necromant2005.github.io/dev/offline-first-data-architecture-for-a-national-postal-service/
3•rmykhajliw•37m ago•0 comments

Technology executives shouldn't give up control

https://kimchi.dev/blog/technology-executives-shouldnt-give-up-control
1•BlackPlot•39m ago•0 comments

Tech giant Palantir accused of 'agressive tax avoidance' at Europe's expense

https://www.ftm.eu/articles/us-tech-giant-palantir-tax-avoidance-europe
4•robtherobber•39m ago•0 comments

Four Days After a Pay Complaint, Cobot Fired Its Only Woman in Sales

https://runtimewire.com/article/exclusive-four-days-after-a-pay-complaint-cobot-fired-its-only-wo...
1•ryanmerket•43m ago•0 comments

An Exegesis of the Visionary Autobiography of a Fourteenth-Century French Monk

https://www.psupress.org/books/titles/978-0-271-06650-9.html?srsltid=AfmBOorGIOS9Y77k3J_CX6UWqfZl...
1•Bluestein•43m ago•0 comments

Out-of-control SpaceX rocket believed to have smashed into the Moon

https://www.independent.co.uk/space/spacex-rocket-moon-crash-falcon-9-b3027645.html
1•emot•44m ago•0 comments

Helsinki Hacker News Meetup

https://calpaterson.com/helsinki-hn.html
4•calpaterson•45m ago•1 comments