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!

Firebase's Global Outage

https://blog.pragmaticengineer.com/the-pulse-firebases-global-outage-poor-response/
1•EnnEmmEss•20s ago•0 comments

Show HN: APIFlow Studio – Open-source, offline-first Postman alternative

https://apiflowstudio.onrender.com/
1•yashpateldev•4m ago•0 comments

The Negotiator II – A 5-48V power supply in your wallet

https://anasmalas.com/bcv2/
2•AnasMalas•5m ago•2 comments

Codex Cloud shipped with Tailscale support. Nobody told us

https://tailscale.com/blog/codex-cloud-tailscale
1•tosh•6m ago•0 comments

Star Wars Author Timothy Zahn Will Write First Star Trek Graphic Novel

https://nerdist.com/article/exclusive-star-wars-author-timothy-zahn-to-write-first-star-trek-grap...
1•Tomte•7m ago•0 comments

Claude release: Dashboard for data visulization and Motion for data Animation [video]

https://www.youtube.com/watch?v=en0GuyhieQk
1•yuanBuilds•12m ago•1 comments

Show HN: Which Show HN Projects have licenses that you can use

https://thoughtwave.com/radar
1•jkalbfeld•12m ago•0 comments

Amazon builds 1,000th satellite, will launch internet service by end of year

https://arstechnica.com/space/2026/10/amazon-builds-1000th-satellite-is-weeks-away-from-space-int...
1•jonbaer•14m ago•0 comments

New Percentile and Median Absolute Deviation Aggregations in Manticore

https://manticoresearch.com/blog/percentile-aggrs-blogpost/
1•GloVin•15m ago•0 comments

The Ghetto on the Lagoon

https://aeon.co/essays/the-making-of-the-ghetto-on-a-venetian-island-in-1516
1•Thevet•17m ago•0 comments

Instrumental Convergence

https://en.wikipedia.org/wiki/Instrumental_convergence
1•jonbaer•21m ago•0 comments

Show HN: Quake ported to safe Rust, playable in browser

https://quake-srp.pages.dev/
18•ilreb•22m ago•3 comments

Plz No Ban

https://github.com/ZmoleCristian/clodex
1•tragdate•23m ago•0 comments

Show HN: Wy – a Rust terminal tool for understanding AI-generated code

https://github.com/grandimam/wy
1•grandimam•23m ago•0 comments

API Fault Lab

https://github.com/jamal2drive/api-fault-lab
1•jamal2art•24m ago•0 comments

OpenAI cannot make AI safe on its own [pdf]

https://mikitabalesni.com/letter/letter.pdf
3•soltanov•28m ago•0 comments

Moving at the Speed of Light

https://write.ianwsperber.com/p/moving-at-the-speed-of-light
1•MrOrelliOReilly•35m ago•0 comments

Why does the arrow (->) operator in C exist?

https://stackoverflow.com/questions/13366083/why-does-the-arrow-operator-in-c-exist/13366168#1336...
1•theanonymousone•36m ago•0 comments

Gigacity: Every tower, car and light grown from one seed

https://sael.net/gigacity/
1•memalign•39m ago•0 comments

Eniac: web search API that turns millions of pages into cited datasets

https://eniac.floworks.ai
1•sudiptabiswas22•43m ago•1 comments

VSCode silently switches to Microsoft models, ignoring BYO agent configuration

https://github.com/microsoft/vscode/issues/340651
4•apatheticonion•47m ago•2 comments

DHS plans to charge international students $70k for work authorization

https://www.reuters.com/legal/government/trump-administration-plans-charge-international-students...
3•beisner•49m ago•0 comments

Scientists Spotted a Giant New Species in the Background of an Instagram Selfie

https://gizmodo.com/someone-posted-an-instagram-selfie-scientists-spotted-a-giant-new-species-in-...
1•gumby•50m ago•0 comments

2026 State of PQC on the Web

https://www.f5.com/labs/articles/2026-state-of-pqc-on-the-web
1•msgchainhq•55m ago•0 comments

AI model can reconstruct images from your brain

https://petapixel.com/2026/10/07/fastest-ever-mind-reading-ai-model-can-reconstruct-images-from-y...
3•antman•56m ago•0 comments

Build live dashboards and animate explainers with Claude

https://claude.com/resources/articles/dashboards-and-motion
3•matheussampaio•1h ago•1 comments

Cybernetics of AI Companies

https://ai-cybernetics.grok.me
4•measurablefunc•1h ago•2 comments

Show HN: Woodpecker – a browser agent built with Pi and user scripts

5•tyr034•1h ago•0 comments

Per-task model routing for native Codex

https://github.com/cybrking/modelrudder
1•tfelder•1h ago•0 comments

WebTorrent Broadcasting / ebubbl / web 3.1

https://ebubbl.com/neighborhoods/bubbles/neighborhood-gallery?neighborhoodId=6ac2b8618881aa4e5deb...
1•bc3mc2•1h ago•3 comments