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!

CATL is building more than 200 battery swap stations every month

https://electrek.co/2026/07/04/catl-is-building-more-than-200-battery-swap-stations-every-month/
1•breve•38s ago•0 comments

French Police Dismantle Operation Behind the Defunct YggTorrent

https://torrentfreak.com/french-police-dismantle-operation-behind-the-already-defunct-yggtorrent/
1•gslin•1m ago•0 comments

Morph Reflexes

https://docs.morphllm.com/sdk/components/reflexes
1•handfuloflight•4m ago•0 comments

Return of the Nigerian Prince Redux: Beware Book Club and Book Review Scams

https://writerbeware.blog/2025/09/19/return-of-the-nigerian-prince-redux-beware-book-club-and-boo...
1•Anon84•11m ago•0 comments

Infographic – An Infographic Generation and Rendering Framework

https://infographic.antv.vision/
1•javatuts•12m ago•0 comments

Vibe Coded X11 Server Written in Rust Adds Xinerama, FreeBSD Support

https://www.phoronix.com/news/YSERVER-1.3-Released
1•breve•12m ago•0 comments

The Declaration of Independence

https://acoup.blog/2026/07/04/collections-on-the-declaration-of-independence/
1•colonCapitalDee•13m ago•0 comments

Obsidian AI Setup – Bootstrap a Personalized Obsidian Vault with AI

https://github.com/anliberant/obsidian-ai-setup
1•javatuts•13m ago•0 comments

Reticulum Is Interesting

https://bergie.iki.fi/blog/reticulum-is-interesting/
1•bergie•15m ago•0 comments

Costco's growing cool factor attracts younger audiences

https://www.seattletimes.com/business/costcos-growing-cool-factor-attracts-younger-audiences/
1•TMWNN•16m ago•0 comments

The goal isn't to build "another AI IDE."

https://github.com/BotCoder254/limboo
1•telvin_Teum•17m ago•0 comments

Mama Look a White Dove

https://extelligence.substack.com/p/mama-look-a-white-dove
2•Aloha•30m ago•0 comments

Damo Academy unveils an AI agent able to discover superconductors

https://www.scmp.com/tech/big-tech/article/3359335/alibabas-elements-claw-ai-agent-unearths-four-...
2•yogthos•33m ago•0 comments

India's largest eVTOL demonstrator completes flight tests

https://newatlas.com/aircraft/india-evtol-demonstrator-sarla-aviation-sylla-shunya/
1•breve•34m ago•0 comments

Nvidia Has Become the Bank Behind the AI Boom

https://startupfortune.com/nvidia-has-quietly-become-the-bank-behind-the-ai-boom/
2•insanetechh•34m ago•0 comments

Tier-aware data federation between Postgres and Apache Iceberg

https://github.com/Modak-Labs/modak
1•addu390•38m ago•0 comments

Zo Computer

https://www.zo.computer
1•erhuve•42m ago•0 comments

America is destroying itself. It's no surprise

https://www.theguardian.com/commentisfree/2026/jul/04/us-history-destruction
5•skissane•42m ago•1 comments

Guix substitute and guix pull vulnerabilities

https://guix.gnu.org/blog/2026/guix-substitute-pull-vulnerabilities/
1•logickkk1•50m ago•0 comments

Scientists reverse brain aging, with a nasal spray

https://stories.tamu.edu/news/2026/04/14/scientists-reverse-brain-aging-with-a-nasal-spray/
51•cybermango•52m ago•9 comments

Apple Container 1.0 Released as a Native Docker Alternative for macOS

https://linuxiac.com/apple-container-1-0-released-as-a-native-docker-alternative-for-macos/
3•atkrad•53m ago•0 comments

Reflections on the Guillotine

https://theanarchistlibrary.org/library/albert-camus-reflections-on-the-guillotine
3•halperter•57m ago•0 comments

Blood Cell 'Nurseries' Upend Understanding of Human Physiology

https://news.feinberg.northwestern.edu/2026/07/02/blood-cell-nurseries-upend-understanding-of-hum...
2•cybermango•58m ago•1 comments

Be a Hikikomori for Science

https://www.theregister.com/science/2026/07/04/nasa-says-it-will-isolate-volunteers-from-the-outs...
5•johnea•1h ago•2 comments

Proxying inference requests in 6ms with Pingora, Envoy, and Spanner

https://modal.com/blog/serverless-servers
1•birdculture•1h ago•0 comments

Brawndo Plasma Thermos Makes What Plants Crave [video]

https://www.youtube.com/watch?v=brfSLxoHUps
1•westurner•1h ago•0 comments

Tungsten – an expressive, fast programming language

https://tungsten-lang.org/
3•jeffpeterson•1h ago•2 comments

Mapping with In-Memory Layers to Reduce LLM Overload

https://ridgetext.com/blog/mapbox-llm-composition
2•Buckwheat469•1h ago•0 comments

Jellyfont: Visual Search Engine for Fonts

https://www.jellyfont.xyz/
2•lcutner•1h ago•0 comments

Drone Autonomy Crash Course

https://www.cggonzalez.com/blog/index.html
2•cgg1•1h ago•0 comments