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!

Data for Canada – Orthoimagery Data Packages

https://source.coop/dataforcanada/d4c-datapkg-orthoimagery
1•marklit•3m ago•0 comments

Ask HN: As a human, are you glad the AI bubble is bursting?

1•roschdal•3m ago•0 comments

CoreWeave Is Under Review by a Major Partner (Microsoft)

https://simplywall.st/stocks/us/software/nasdaq-crwv/coreweave/news/coreweave-crwv-is-under-revie...
1•intrusive_mango•9m ago•0 comments

Studies: Does working life change our personality?

https://wiwi.uni-mainz.de/en/2026/09/08/studies-working-life-personality/
1•rohanm93•10m ago•0 comments

China Newspaper Dismisses Jensen Huang Spy Claim, Warns on Ties

https://www.bloomberg.com/news/articles/2026-11-09/china-newspaper-dismisses-jensen-huang-spy-cla...
1•saikatsg•16m ago•0 comments

Brotli CVE-2026-111497 reaches stock WordPress through pingbacks

https://hatamoto.dev/wordpress/brotli-flaw-wordpress-xmlrpc-pingback
1•zenincognito•18m ago•0 comments

Github.com 504 Gateway Timeout due to surge in anonymous users

https://www.githubstatus.com/incidents/c9px7cw2ghrs
6•wilsonfiifi•20m ago•1 comments

National Popular Vote Interstate Compact

https://en.wikipedia.org/wiki/National_Popular_Vote_Interstate_Compact
1•JumpCrisscross•20m ago•0 comments

Oriental Men's operating system [video]

https://www.youtube.com/watch?v=qvcwnwoQbWI
1•CHB0403085482•22m ago•0 comments

How I Give Feedback

https://diatone.net/feedback
1•diatone•24m ago•0 comments

Low Latency HLS: How to Fix High Latency Issue Step by Step

https://www.red5.net/blog/two-ways-to-fix-hls-low-latency-streaming/
1•mondainx•28m ago•0 comments

Those who have lost their job to AI what was your job?

1•dev_grex•29m ago•0 comments

Show HN: A bot attack forced me to rebuild my tools on Cloudflare Workers

https://sitetoolsbox.com/article.php?id=52
2•kagouhui•31m ago•0 comments

Can you help falsify this speculative quantum foundations idea?

https://zenodo.org/records/24072504
2•pankkum•31m ago•0 comments

What If the Next Computer Virus Isn't Software? Rise of AI-Powered USB Threats

https://medium.com/@makalin/what-if-the-next-computer-virus-isnt-software-the-rise-of-ai-powered-...
1•makalin•31m ago•0 comments

The tau protein (Alzheimer's) re=organiezed/folded/measured

https://github.com/alozano978-spec/the-tau-protein
2•forged-on-chain•36m ago•0 comments

Show HN: Logcrux – An intelligent local log analyzer

https://logcrux.com
2•ravipatib•41m ago•0 comments

AetherSkin User Testing

https://aetherskin.app
1•krrled•42m ago•0 comments

Colophon Protocol – How to Deal with Agents Emails

https://colophon-protocol.org/
2•valboa•53m ago•1 comments

Apple capped engineers at a $200 daily AI budget

https://www.stork.ai/newsletter/2026-11-08-apple-capped-engineers-at-a-200-daily-ai-budget#story-1
16•GloVin•55m ago•14 comments

Is PostgreSQL Winning?

https://stokerpostgresql.blogspot.com/2026/11/is-postgresql-really-winning.html
2•ejboy•57m ago•0 comments

Conductor's shutting down on the 20th so I built an alternative (founder, AMA)

https://concors.dev/
1•katalist•1h ago•0 comments

Anthropic secures $3.4B generator deal for AI data centers

https://www.reuters.com/business/energy/anthropic-secures-34-billion-generator-deal-ai-data-cente...
3•giuliomagnifico•1h ago•1 comments

Trying to outsmart the Apple News algorithm

https://www.fabian.fyi/2026/11/rock-veto-algorithm.html
1•optimiz•1h ago•0 comments

AI learns from the products of thinking, not thought itself

https://theconversation.com/ai-learns-from-the-products-of-thinking-not-thought-itself-thats-a-pr...
2•bitofenglish•1h ago•0 comments

The Origins of Peanut Allergy

https://stephenskolnick.substack.com/p/on-the-origins-of-peanut-allergy
3•bobbiechen•1h ago•0 comments

Four Useful Questions

https://www.henrikkarlsson.xyz/p/four-useful-questions
1•Curiositry•1h ago•0 comments

Show HN: An Ad-Free, 100%

https://minitooldesk.com/vs/
1•minitooldesk•1h ago•0 comments

Detecting signs of hypertension using wearable sensors

https://research.google/blog/detecting-signs-of-hypertension-using-wearable-sensors/
1•jonbaer•1h ago•0 comments

Show HN: Huobidex – A handpicked hub for tools and products

https://huobidex.com
1•dotcurio•1h ago•0 comments