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!

Raspberry Pi 5 EEPROM update now blocks manual RAM upgrades

https://www.reddit.com/r/selfhosted/comments/1wkxjwg/raspberry_pi_5_eeprom_update_now_blocks_manual/
1•csmantle•2m ago•0 comments

Rosenbjerg/local-review: Minimal webapp for local code review of branches

https://github.com/rosenbjerg/local-review
3•bhubert•7m ago•0 comments

Shopify CEO says employees' `slop grenades` making more work for everyone else

https://fortune.com/2026/09/17/shopify-tobias-lutke-ai-slop-grenades/
2•theanonymousone•8m ago•0 comments

Replacing an agentic classification loop with Jev: 7x faster

https://blog.r6i.it/typesafe-jev-vs-agentic-loop.html
1•sammy_rulez•9m ago•0 comments

Do Artifacts Have Politics? (1980)

https://www.jstor.org/stable/20024652?seq=1
1•shinryuu•10m ago•0 comments

Thoughts on a Typesafe Coding Agent

https://docs.google.com/document/d/1G61uUB0FifUnmmrPzFQojZ3KpczYKmXGpgEXDJ2l_Zg/preview?pli=1&pru...
1•tosh•20m ago•0 comments

North Korean Hackers Posed as Recruiters.They Infected 30k Devices Worldwide

https://www.inc.com/kevin-haynes/north-korean-hackers-posed-as-recruiters-infected-30000-devices-...
2•jnord•21m ago•0 comments

Should you trust Al to deliver financial advice?

https://www.saturnos.com/report/artificial-authority
1•7777777phil•21m ago•0 comments

Publications on Regality theory and cultural selection theory

https://agner.org/cultsel/
2•andsoitis•23m ago•0 comments

Models Watching Models

https://www.southbridge.ai/blog/jev-watching-the-agents
1•tosh•24m ago•0 comments

Software Optimization Resources

https://agner.org/optimize/
1•andsoitis•24m ago•0 comments

Simple and Efficient Row-Level Security

https://acadia.engineering/blog/simple-and-efficient-row-level-security
1•mfru•24m ago•0 comments

Slower than an SD card under heavy load: iPhone 18 Pro Max's QLC storage tested

https://www.notebookcheck.net/Slower-than-an-SD-card-under-heavy-load-iPhone-18-Pro-Max-s-QLC-sto...
1•virgildotcodes•26m ago•0 comments

Infinitely Recursive of Game of Life

https://oimo.io/works/life/
1•helloplanets•27m ago•0 comments

Evaluating Long-Term Memory for AI Agents: AML Cycle 2 Is Now Open

https://twitter.com/AgentMemoryL/status/2101515447816663222
1•IreneAI•27m ago•0 comments

Perennial Technical Reads

https://parallelprogrammer.substack.com/p/a-reading-list-for-metalheads
1•signa11•28m ago•0 comments

Why Are People Cancelling?

https://bankstatementconverter.com/blog/posts/2026-09-21-why-are-people-canceling/
2•4pkjai•29m ago•0 comments

BYD car was easily hacked by cybersecurity expert

https://www.abc.net.au/news/2026-09-21/byd-hacked-by-cybersecurity-expert-vehicle-sabotage-survei...
2•Cadwhisker•32m ago•0 comments

A computer scientist-novelist reflects on AI and our understanding of maths

https://scroll.in/article/1095809/how-ai-could-influence-our-understanding-of-mathematics-a-compu...
1•adityaathalye•34m ago•1 comments

International Observe the Moon Night

https://en.wikipedia.org/wiki/International_Observe_the_Moon_Night
1•ButlerianJihad•34m ago•0 comments

iPhone 18 Pro Teardown: What Changed Inside? [video]

https://www.youtube.com/watch?v=oS_HMre7vk0
1•lisper•35m ago•0 comments

The big ideas and tiny details behind Amazon's new recyclable mailer (2019)

https://www.aboutamazon.com/news/sustainability/the-big-ideas-and-tiny-details-behind-amazons-new...
1•usaphp•35m ago•0 comments

Jev's Architecture Unmasked

https://archerhume.com/posts/jevs-architecture-unmasked/
2•nlpnerd•41m ago•0 comments

The Toxicity of Sports Media

https://medium.com/freedomofthought/the-toxicity-of-sports-media-ee6003e241ff
1•raynchad•42m ago•0 comments

Lightweight Markdown Viewer/Editor for Linux and Windows

https://marklite.app
2•mchilson•43m ago•0 comments

Kanye West: A Civil Rights Leader?

https://medium.com/freedomofthought/kanye-west-a-civil-rights-leader-48174114ef3b
1•raynchad•44m ago•0 comments

Elektron Machinedrum in the Browser

https://machinedrum-study.pages.dev/
1•risktopark•44m ago•0 comments

Less Typing, More Work

https://nicolasdular.com/blog/2026/09/20/less-typing-more-work/
4•tosh•50m ago•0 comments

Understanding the European Cyber Resilience Act (CRA)

https://openssf.org/cra-ebook/
3•tapanjk•50m ago•0 comments

Postgres 19: What's new in monitoring?

https://clickhouse.com/blog/postgres-19-monitoring-whats-new
2•saisrirampur•52m ago•0 comments