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: YouAskTube: Type Ask in URL for Anon YT Chat

https://youasktube.com/
1•BitVibeLabs•1m ago•0 comments

I Wrote My First Book Like a Puzzle

1•JRCrest•2m ago•0 comments

Following legal advice, the Nitter project will continue

https://github.com/zedeus/nitter
2•Cider9986•2m ago•0 comments

Nitter is unarchived and will continue

https://github.com/zedeus/nitter/commit/1428b4c2b4246f92a7e5b2673438e5fb39fcc4a3
1•zImPatrick•4m ago•0 comments

I threw a ton of various logic puzzles at Astra and it solved of them

https://twitter.com/fakepsyho/status/2096588951251243219
1•stared•5m ago•0 comments

Scunthorpe Problem

https://en.wikipedia.org/wiki/Scunthorpe_problem
1•chistev•7m ago•0 comments

Scott Galloway issues grim SpaceX stock price forecast

https://www.thestreet.com/investing/stocks/spcx-scott-galloway-spacex-stock-price-target-forecast
1•yogthos•7m ago•0 comments

Designing physics experiments with artificial intelligence

https://www.nature.com/articles/s41586-026-10898-6
1•bookofjoe•8m ago•0 comments

AAIF Ecosystem Landscape Map

https://aaif.github.io/ws-taxonomy-landscape/landscape/
1•mooreds•11m ago•0 comments

Liquid Types. (2008) [pdf]

https://patrickrondon.com/research/papers/liquid-types-pldi08.pdf
1•fanf2•12m ago•0 comments

The Cone of Plausibility

https://substack.com/@drexdsgn/note/c-326376193
1•hakkikonu•13m ago•0 comments

Forte UI – React components whose palette derives from one CSS variable

https://forte-ui.com/
1•arsenghazaryan•13m ago•0 comments

Is Education for Industry or for Thinking?

https://candost.blog/journal/education-for-industry/
1•mooreds•14m ago•0 comments

Bigger Is Not Better

https://huntersoftwareconsulting.com/posts/2026-09-06-bigger-is-not-better/
1•mooreds•15m ago•0 comments

Show HN: Aethel-Core – Ultra-Lightweight Neuro-Symbolic WAF Built in SWI-Prolog

https://github.com/lokinpendawa/aethel_core
1•lokinpendawa•20m ago•0 comments

HN: Chef's Helper – Kitchen costing, prep, rotas and safety app

https://www.chefshelper.app/landing
2•RobHepCH•22m ago•0 comments

ShiftLens: Mech. Actuated Optical Surfaces for Switchable Appearances on 3D Objs

https://hcie.csail.mit.edu/research/shiftlens/shiftlens.html
1•sargstuff•23m ago•0 comments

A simple tool to track projects, time, and income streams (£1.99)

https://shipandearn.com
1•seraph2000•24m ago•0 comments

Show HN: Alias – Custom Domain Email for Gmail

https://chromewebstore.google.com/detail/alias-custom-domain-email/hdmholmgdmnmdgbipelccdjidnjlmlke
1•yazanbaker•27m ago•0 comments

Bank ID vendor traced to a dark web license sale

https://www.americanbanker.com/news/bank-id-vendor-traced-to-a-dark-web-license-sale
5•NewCzech•29m ago•1 comments

In Defense of Polyfills

https://lea.verou.me/blog/2026/polyfills/
2•eustoria•37m ago•0 comments

German startup sends first commercial rocket into space from Europe

https://www.theguardian.com/business/2026/sep/06/german-startup-sends-first-commercial-rocket-int...
2•giuliomagnifico•38m ago•1 comments

MotionSites AI – Official Premium AI Website Prompts

https://motionsites.ai/
2•eustoria•38m ago•0 comments

Dither Garden

https://www.dithergarden.com/
1•eustoria•39m ago•0 comments

Ask HN: I just learned of the term "Recall@K" – tell me more please?

1•consumer451•39m ago•0 comments

The aesthetic turn in intellectual property law copyright lessons from Pelham II

https://www.elgaronline.com/view/journals/qmjip/16/2/article-p99.xml
1•rbanffy•39m ago•0 comments

Ask HN: How safe are our password managers in face of LLM cyber attacks?

2•muddi900•42m ago•0 comments

If a startup worth your career

https://www.thetrueengineer.com/p/ego-equity-or-exit-checklist-to-decide
4•adletbalzhanov•45m ago•2 comments

Ask HN: Model Sycophancy Benchmarks?

2•gradus_ad•47m ago•1 comments

Show HN: Ontoplano, FOSS Life Management desktop and mobile app with MCP server

https://github.com/ontoplano/ontoplano
1•chedieck•47m ago•0 comments