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!

Font League – new website typography

https://fontleague.com/
1•stephenkelman_•2m ago•0 comments

Show HN: A Ruby IDE running on a microcontroller

https://github.com/engneer-hamachan/area512
1•hamachang•4m ago•0 comments

I finally did it.Custom 4K screens with analog knobs,beautiful feedbadk fractals

https://www.youtube.com/watch?v=koDCabeh5kQ
1•thelightherder•6m ago•0 comments

The fun thing about Electron apps

https://yoavmoshe.com/blog/electron/
2•yoavm•7m ago•0 comments

Improving matrix multiplication exponent w. modern optimization and AlphaEvolve

https://arxiv.org/abs/2608.16884
1•theanonymousone•7m ago•0 comments

Are we cooked? Algorithms have rewired our language

https://www.npr.org/2026/08/21/g-s1-139147/are-we-cooked-algorithms-have-rewired-our-language
1•theanonymousone•9m ago•0 comments

AI Stock Research Assistant · Streamlit

https://ai-stock-research-kiaan.streamlit.app
1•KiaanKothari•10m ago•0 comments

Show HN: Forst – migrate TypeScript back ends to Go

https://forst-lang.org/docs
1•haveyaseen•10m ago•0 comments

Boeing engineers, tech workers reject contract offer

https://www.kuow.org/topics/business/2026-08-21/boeing-engineers-tech-workers-reject-contract-offer
2•Wuzzl•11m ago•0 comments

National Security Science and Technology Strategy [pdf]

https://www.whitehouse.gov/wp-content/uploads/2026/08/NSSTS-082026.pdf
1•jonbaer•11m ago•0 comments

Visual Studio Code 1.0 (2016)

https://code.visualstudio.com/blogs/2016/04/14/vscode-1.0
2•prvt•11m ago•0 comments

Show HN: K8s-audit – 30-second Kubernetes security check (kubectl and jq only)

https://github.com/k8s-security-pro/k8s-audit
1•k8ssecuritypro•14m ago•0 comments

PDPR – Public Dark Pattern Registry

https://pdpr.lyfmail.com/
2•LYFMail•15m ago•0 comments

The Art of the Fugue: Minimizing Interleaving in Collaborative Text Editing

https://arxiv.org/abs/2305.00583
1•danbitengo•16m ago•0 comments

'Darth Vader' makes the case for Flock cameras at city council meeting [video]

https://www.youtube.com/watch?v=7xOURK7-UMs
2•kingleopold•17m ago•0 comments

Show HN: Knoku – cited AI answers from docs, files, and team knowledge

https://knoku.com
1•knoku•18m ago•0 comments

I made a sweater from scratch (it made me insane) [video]

https://www.youtube.com/watch?v=L7QMgbMlaek
1•ot•18m ago•0 comments

The 1991 Unnormalized Linear Transformer (ULTRA)

https://people.idsia.ch/~juergen/1991-unnormalized-linear-transformer.html
2•tosh•22m ago•0 comments

Low-emission zones drive Vietnam's green vehicle transition

https://eastasiaforum.org/2026/08/22/low-emission-zones-drive-vietnams-green-vehicle-transition/
1•Meo_mean•22m ago•0 comments

Show HN: I built a simple free app that helps control ADHD symptoms

https://rawdog-one.vercel.app/
1•dixitbavu•24m ago•0 comments

Code Doesn't Speak for Itself

https://koenvangilst.nl/lab/code-doesnt-speak-for-itself
2•vnglst•25m ago•0 comments

FTC Targets Personalized Pricing, Stops Short of Ban

https://www.consumerreports.org/money/prices-price-comparison/personalized-pricing-surveillance-f...
4•DeepLogin•25m ago•0 comments

"I randomly picked 5 universities and looked up sociology department faculty."

https://www.drvinayprasad.com/p/10-thoughts-about-jason-arday-cambridge
1•jmeister•27m ago•1 comments

Why Social Media's Ad Dominance Is a Billion-Dollar Measurement Illusion

https://www.adexchanger.com/content-studio/why-social-medias-ad-dominance-is-a-billion-dollar-mea...
1•dotcoma•29m ago•0 comments

Espressif Releases Linux BSP for ESP32-S31 RISC-V Boards

https://www.cnx-software.com/2026/08/22/espressif-systems-releases-a-linux-bsp-developer-preview-...
1•jandeboevrie•32m ago•1 comments

ADHD diagnoses and prescriptions have increased globally across all age groups

https://theconversation.com/adhd-diagnoses-and-prescriptions-have-increased-globally-across-all-a...
1•downbad_•32m ago•0 comments

Apple cutting jobs from Siri, Vision Pro teams

https://techcrunch.com/2026/08/21/apple-is-reportedly-cutting-hundreds-of-jobs-from-siri-vision-p...
1•DGAP•35m ago•1 comments

Show HN: VinvAI runs and observes your services to find bugs and perf issues

https://vinv.ai/
3•itsAnshul•35m ago•0 comments

Show HN: hlquery, An open-source C++20 search engine

https://github.com/hlquery/hlquery
1•cfferry•36m ago•0 comments

Does herdr worth it? Harnesses like pi ship most of these features

1•abeauvois•37m ago•0 comments