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!

NASA's X-59 "frankenjet" tests supersonic flight without the sonic boom

https://arstechnica.com/gadgets/2026/06/nasas-x-59-frankenjet-tests-supersonic-flight-without-the...
2•joak•14m ago•0 comments

Warren Buffett skips donation to Gates Foundation amid Epstein review

https://www.aol.com/articles/warren-buffett-skips-donation-gates-012320000.html
2•1vuio0pswjnm7•17m ago•0 comments

Revisiting: Stack pivot, W^X break – in the context of PixelSmash

https://www.mail-archive.com/misc@openbsd.org/msg198341.html
1•gibletz•17m ago•0 comments

Snapcompact: SoTA Compaction – Instant, Local, Free

https://blog.can.ac/2026/06/10/snapcompact/
1•handfuloflight•21m ago•0 comments

Positive and Negative Time Flows in the Toronto Experiment on the 4/3πC Formula

https://medium.com/@f9121212/topological-derivation-of-geometric-boundaries-for-positive-and-nega...
2•ortrich•23m ago•0 comments

Exiled Chinese Tycoon Gets 30 Years in Prison for Billion-Dollar Fraud

https://www.bloomberg.com/news/articles/2026-06-29/exiled-chinese-tycoon-guo-gets-30-years-in-us-...
1•1vuio0pswjnm7•24m ago•0 comments

Silicon Valley Is Obsessed with 'Trust Stacking,' and the IRS Doesn't Like It

https://www.wsj.com/personal-finance/taxes/silicon-valley-is-obsessed-with-trust-stacking-and-the...
2•apparent•24m ago•3 comments

Loko Scheme 0.13.0

https://weinholt.se/articles/loko-scheme-0-13-0/
1•azhenley•26m ago•0 comments

Instatic is a modern self-hosted visual CMS

https://github.com/CoreBunch/Instatic
1•danboarder•26m ago•0 comments

Students are doing worse than you think

https://www.economist.com/international/2026/06/25/students-are-doing-worse-than-you-think
1•andsoitis•30m ago•0 comments

Is there a Mario Wii Web port?

1•Itzsplicez•34m ago•1 comments

T-Mobile Just Ripped 8M Customers Off Their Grandfathered Plans

https://www.gadgetreview.com/t-mobile-just-ripped-8-million-customers-off-their-grandfathered-pla...
1•momentmaker•38m ago•0 comments

GitHub profiles turned into FIFA Ultimate Team cards, rated out of 99

https://gitfut.com
3•beatthatflight•43m ago•0 comments

Magicbookshelf.org – A Spoiler Free Companion – The Brothers Karamazov

https://magicbookshelf.org/read/the-brothers-karamazov/
2•pfwitt•44m ago•0 comments

Why AI is like a (Clever Hans) Horse [video]

https://www.youtube.com/watch?v=0GQ2RP-25gM
2•tartoran•44m ago•0 comments

Should every baby's DNA be sequenced?

https://www.economist.com/science-and-technology/2026/06/29/should-every-babys-dna-be-sequenced
1•andsoitis•47m ago•0 comments

Prism: An Impure Functional Language with Typed Effects

https://www.stephendiehl.com/posts/prism/
1•ghc•48m ago•0 comments

SRAM as Processing

https://prawns.dev/til/processing-using-sram
1•random__duck•49m ago•0 comments

Open Domesday

https://opendomesday.org/
1•mellosouls•52m ago•0 comments

Moonshot AI (kimi) launches a credit card

https://www.kimi.com/aicard
1•danieltanfh95•54m ago•0 comments

Chinese tycoon sentenced to 30 years in US jail

https://www.bbc.com/news/articles/cjeg15vw3z9o
2•tartoran•54m ago•2 comments

New Student Loan Rules Are Poised to Amp Up Pressure on Colleges

https://www.wsj.com/us-news/education/student-loan-rules-accountability-tuition-earnings-threshol...
1•JumpCrisscross•55m ago•0 comments

Cisco to lay off more than 400 workers in California

https://www.latimes.com/business/story/2026-06-26/cisco-to-lay-off-more-than-400-workers-in-calif...
4•1vuio0pswjnm7•55m ago•0 comments

AI Does Not Have to Kill Humans to End the Human Future

https://kunyuan.substack.com/p/ai-does-not-have-to-kill-humans-to
2•Kiyo-Lynn•57m ago•0 comments

BlackBerry Staged a Comeback by Winning over Car Companies

https://thewalrus.ca/how-blackberry-staged-a-comeback-by-winning-over-car-companies/
3•pseudolus•58m ago•0 comments

The Lake They Couldn't See: gold, dark fiber, and the AI data-center boom

https://cyrusradfar.com/thoughts/the-lake-they-couldnt-see
2•cyrusradfar•58m ago•0 comments

'Humanity has chosen to become idiots': Brown professor discovers mass cheating

https://fortune.com/2026/06/29/roberto-serrano-brown-university-massacre-ai-cheating/
3•1vuio0pswjnm7•59m ago•1 comments

Illinois lawmakers crack down on junk fees, bots in online ticket sales

https://www.nprillinois.org/economy-business/2026-06-26/illinois-lawmakers-crack-down-on-junk-fee...
2•toomuchtodo•1h ago•1 comments

Reports of Anthropic Cutting Usage Limits Again

https://old.reddit.com/r/ClaudeCode/comments/1uim4jb/this_is_a_message_for_anthropic_bring_back_the/
1•quux0r•1h ago•0 comments

Shipwright Harness – open-source autonomous delivery agent for Claude Code (MIT)

https://github.com/app-vitals/shipwright
1•dodizzle•1h ago•0 comments