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!

G A modern .NET language with Go, Kotlin, and Swift ergonomics

https://davidobando.github.io/gsharp/
1•mashally•40s ago•0 comments

Mesh LLM: distributed AI computing on iroh

https://www.iroh.computer/blog/mesh-llm
1•tionis•47s ago•0 comments

AI and Job Postings: From Destruction to Creation?

https://www.hiringlab.org/2026/07/08/ai-and-job-postings-from-destruction-to-creation/
2•petilon•2m ago•0 comments

ContextOps, an ESLint-like static analyzer for LLM context

https://github.com/Abhijeet777ui/contextops
1•Abhijeet_Buag•3m ago•0 comments

Stop Telling Me to Ask an LLM

https://blog.yaelwrites.com/stop-telling-me-to-ask-an-llm/
3•theorchid•10m ago•3 comments

The Gravitational Olbers' Paradox and the Entropic Accelerating Universe

https://zenodo.org/records/21225371
1•nmstoker•12m ago•0 comments

"material deletion occurred" Sol wiped out user's home

https://twitter.com/mattshumer_/status/2075657271401390161
1•zxspectrumk48•23m ago•0 comments

Show HN: Token Time – Screen Time, but for your AI agent tokens

https://tokentime.bar
1•wzulfikar•25m ago•0 comments

Neobrowser AI has rediculously strong VPN builtin for FREE

https://neobrowser.ai/
1•burgeekingdom•26m ago•0 comments

Show HN: OpenThomas – weather trader agent for prediction markets

https://github.com/PredictionMarketTrader/openthomas
1•thomaslwang•26m ago•0 comments

Package Management as Org Chart

https://nesbitt.io/2026/07/10/package-management-as-org-chart.html
1•birdculture•27m ago•0 comments

Combinatorial Games in Lean

https://github.com/vihdzp/combinatorial-games
1•wertyk•28m ago•0 comments

Modern Implementation of Notational Velocity

https://nvnv.yoga/
1•sirodoht•29m ago•1 comments

New flapping robot swims and flies like a diving bird

https://news.mit.edu/2026/new-flapping-robot-swims-and-flies-like-diving-bird-0709
3•rodrodrod•29m ago•0 comments

What If It's Not the Phones?

https://www.theatlantic.com/technology/2026/07/phones-haidt-play-gray/687846/
4•voisin•39m ago•1 comments

RISCBoy is an open-source portable games console, designed from scratch

https://github.com/Wren6991/RISCBoy
5•mariuz•41m ago•0 comments

Rhode Island is regulating grocery checkout lines now

https://reason.com/2026/07/09/rhode-island-is-regulating-grocery-checkout-lines-now/
3•gmays•43m ago•1 comments

Never Built: Lockheed CL-1201

https://foundandexplained.com/2021/05/01/never-built-cl-1201/
1•yubblegum•44m ago•0 comments

Rubber ducking is a mirror that says nothing

https://pilgrima.ge/p/the-mirror-that-says-nothing
1•momentmaker•45m ago•0 comments

AI found a secret computer bug hidden for 15 years.

https://www.untempled.com/guilhermen/art/ai-found-a-secret-computer-bug-hidden-for-15-years-plus-...
1•glmnes•46m ago•0 comments

Gates Heir's Shopping App Claimed Sales It Didn't Drive

https://www.bloomberg.com/news/articles/2026-07-09/gates-heir-s-shopping-app-took-credit-for-sale...
4•imichael•52m ago•0 comments

Why 'com_maxfps 250x' uncaps Quake Live's frame rate

https://marco-nett.de/blog/why-com_maxfps-250x-uncaps-quake-lives-frame-rate/
2•hoechst•52m ago•0 comments

Two LLMs play live chess and rewrite their own brains after each game

https://aitradingcompetition.com/chess.html
1•chumzygood•54m ago•0 comments

Evilcharts

https://evilcharts.com/docs/sankey-chart/static
2•handfuloflight•55m ago•0 comments

Dez minutinhos set envolvente [video]

https://www.youtube.com/watch?v=mBFDmV0W_i4
1•gdss•58m ago•0 comments

Why we stopped using an automated SRE agent

https://blog.neatcontext.com/operations/2026/07/12/why-we-stopped-using-an-automated-sre-agent/
1•tanglearncode•59m ago•2 comments

Remembering Disney Legend Don Iwerks

https://thewaltdisneycompany.com/news/remembering-disney-legend-don-iwerks/
2•toomuchtodo•59m ago•1 comments

Cleanplanet

https://www.cleanplanet.co.jp/technology/
1•theendisney•1h ago•0 comments

Postgres Makes Transactions Atomic

https://brandur.org/postgres-atomicity
1•gurjeet•1h ago•0 comments

Bootstrapping a Post-Quantum Shadow Ledger via Op_return [pdf]

https://github.com/Blackcoin-Dev/Blackcoin/blob/main/doc/whitepaper-quantum-quasar.pdf
1•QQ_Blackcoin•1h ago•0 comments