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!

AGI brain project. I wonder whether anybody would like to join in and help me?

2•AGIEnthusiast•2m ago•0 comments

Public Schools' Eye of Sauron

https://www.educationnext.org/public-schools-eye-of-sauron-student-surveillance-merrill-v-marana-...
1•Tomte•3m ago•0 comments

MCP server integration for DaVinci Resolve Studio

https://github.com/samuelgursky/davinci-resolve-mcp
1•rldjbpin•4m ago•0 comments

Show HN: AgentPulse – Claude Code and Codex status in tmux

https://github.com/jerriclynsjohn/tmux-agent-pulse
1•jerriclynsjohn•6m ago•0 comments

Claude, change the "Add to Cart" button to blue

https://opusfived.dev/
2•matthieu_bl•8m ago•0 comments

What's New in Houdini 22

https://www.sidefx.com/products/whats-new-in-h22/
1•embedding-shape•9m ago•0 comments

CopyWheel – a radial snippet menu for macOS (native, 1 MB)

https://github.com/weselski/copywheel
1•kweselski•10m ago•0 comments

OpenClaw v2026.9.3: Live browser automation, persistent skills, and cloud work

https://docs.openclaw.ai/releases/2026.9.3
1•CoderLim110•14m ago•0 comments

MemCP – Faster than MySQL and Postgres by up to 90x

https://github.com/launix-de/memcp
1•carli2•16m ago•1 comments

Losing control of AI is the plan

https://www.theargumentmag.com/p/losing-control-of-ai-is-actually
3•DGAP•17m ago•0 comments

Show HN: Agent payments by social handles (not Stripe-based, not on bank rails)

https://github.com/Quidli/connect-mcp
1•jahn716•17m ago•0 comments

Tokendiet – see what your Claude Code session costs, for zero tokens

https://github.com/mcancellotti/tokendiet
1•mcancellotti•18m ago•0 comments

Solving the Dilemma of Screen Time

https://www.gse.harvard.edu/ideas/ed-magazine/26/04/solving-dilemma-screen-time
1•Tomte•18m ago•0 comments

Booting Linux [pdf]

https://www.almesberger.net/cv/papers/ols2k-9.pdf
1•ankitg12•20m ago•0 comments

Silicon Valley-backed Covenant unveils low-cost, mass-producible cruise missile

https://www.reuters.com/business/aerospace-defense/silicon-valley-backed-covenant-unveils-low-cos...
1•Hoasi•21m ago•0 comments

The Reinvention of Liberal Arts Colleges

https://www.educationnext.org/reinvention-of-liberal-arts-colleges-higher-education-brandeis-univ...
1•Tomte•25m ago•0 comments

Anthropic aligment lead warns about extinction by AI

https://twitter.com/EvanHub/status/2097497037956891126
1•margorczynski•25m ago•1 comments

Amazon Profitability Calculator

https://clarisix.com/amazon-profitability-calculator
1•claudiuclement•27m ago•0 comments

Mapped: Europe's Biggest Budget Deficits

https://www.visualcapitalist.com/mapped-europes-biggest-budget-deficits/
1•leonidasrup•28m ago•0 comments

Y Combinator, Mapped

https://dashboard.vclense.ch/ycglobe
1•plurby•28m ago•0 comments

PHP is Dead (and AI is to blame)

https://www.lifeofguenter.de/2026/09/php-is-dead-and-ai-is-to-blame
1•lifeofguenter•34m ago•0 comments

Show HN: Impress your boss with interactive Scikit-Learn Decision Tree

https://github.com/mljar/supertree
2•pplonski86•36m ago•0 comments

What makes $BigTechCompany's products bad, anyway?

https://herecomesthemoon.net/2026/09/why-is-big-tech-bad/
2•birdculture•37m ago•0 comments

Show HN: Project Estimator – a free, no sign-up software cost estimator

https://project-estimator.webround.net/
1•LucaSiviero•38m ago•0 comments

US claims Chinese AI firms are carrying out 'industrial-scale' theft

https://www.cnn.com/2026/09/08/politics/us-accuses-china-of-stealing-ai-technology
4•jllyhill•38m ago•1 comments

Primework by Kunst X

https://kunstx.online/primework/
2•kunstx•38m ago•1 comments

Bristol Myers' blood cancer cell therapy succeeds in mid-stage trial

https://www.reuters.com/business/healthcare-pharmaceuticals/bristol-myers-blood-cancer-cell-thera...
2•thunderbong•39m ago•0 comments

How Much of the Internet Is Written with AI?

https://www.pewresearch.org/data-labs/2026/08/20/how-much-of-the-internet-is-written-with-ai/
3•dp-hackernews•40m ago•0 comments

Steam now requires Australian users to verify their age with a credit card

https://www.reddit.com/r/Games/comments/1wbauz5/steam_now_requires_australian_users_to_verify/
2•haunter•40m ago•0 comments

Show HN: CreepyLink: A fun tool to turn safe URLs into suspicious looking links

https://www.creepylink.online
1•tangjei•43m ago•0 comments