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!

Show HN: Isaref: Machine-readable atlas of computing hardware

https://isaref.com/
1•Semtexzv•23s ago•0 comments

Strange 'topological' wires conduct electricity better the thinner they get

https://www.science.org/content/article/strange-topological-wires-conduct-electricity-better-thin...
1•Brajeshwar•2m ago•0 comments

Memo: Memory as a Model

https://arxiv.org/abs/2605.15156
2•burcsahinoglu•6m ago•0 comments

How we built Duo, a full-duplex, speech-to-speech model

https://duplexio.ai/blog/how-we-built-duo/
1•andersthuesen•6m ago•0 comments

Returning to the Neuron Basis for Interpretability

https://alignment.anthropic.com/2026/neuron-basis-theory/
1•ersinesen•6m ago•0 comments

People who refuse to let their gadgets die

https://www.theatlantic.com/technology/2026/10/meet-the-upgrade-holdouts/688874/
2•FinnLobsien•7m ago•0 comments

Microkernels Do Improve Security (2018)

https://microkerneldude.org/2018/08/23/microkernels-really-do-improve-security/
1•upboundspiral•8m ago•0 comments

From PG Connector to SW Connector: Growing a Multi-Engine Security Boundary

https://schemaweaver.dev/blog/from-pg-connector-to-sw-connector-growing-a-multi-engine-security-b...
3•Vivek-KY•8m ago•0 comments

Show HN: Dear Website – make and change a small website by email

https://dear.website/
1•victorbuilds•10m ago•1 comments

AI Is Fire

https://bigfastblog.com/ai-is-fire/
3•philwhelan•13m ago•0 comments

Show HN: I made an app that changes how any window looks

https://dimmerswitch.app
1•jakemanger•14m ago•0 comments

RIP IT Off

https://ripitoff.robertborghesi.is/
1•dghez•16m ago•0 comments

The British Pirated a Computer – Compukit UK101 [video]

https://www.youtube.com/watch?v=rHcdL-4GGjs
1•wicket•17m ago•0 comments

One month of selling an AI-written novel: 996 free downloads, 5 sales

https://jayhumelexier.substack.com/p/one-month-of-selling-an-ai-written
2•jaylexier•18m ago•0 comments

Show HN: Clockwork – 2D game engine with an AI agent verified by Kane CLI

https://github.com/tope-olajide/clockwork
1•temitope001•19m ago•0 comments

AI-Assisted Development in CNCF Projects: Findings from Maintainers

https://www.cncf.io/blog/2026/04/29/the-state-of-ai-in-cncf-projects-a-first-look-at-the-data/
1•charma7•20m ago•0 comments

Leisure Sickness Is What Happens When Workaholics Relax

https://www.bloomberg.com/news/articles/2026-11-25/always-get-sick-on-vacation-you-re-not-alone
3•helsinkiandrew•21m ago•2 comments

Google gives AI agents 69 days to move to Workspace MCP

https://vortner.de/blog/google-workspace-mcp-69-days
2•PKCon•22m ago•0 comments

Ask HN: Are you prepping for a large-scale infra disruption?

3•ronbenton•22m ago•3 comments

What if the RSA rumors are true?

https://www.lesswrong.com/posts/hNsPFqdYtjKguaSmv/what-if-the-rsa-rumors-are-true
2•aburan28•23m ago•0 comments

Interview with a Productivity Freak in 2026 [video]

https://www.youtube.com/watch?v=guvFKt_Zjqw
1•martialg•25m ago•0 comments

Winner of Controversial Caltech Mathathon Says Academic Math Is Over

https://learningcurve.fm/episodes/how-a-student-led-ai-math-contest-became-a-lightning-rod
1•learningcurv•28m ago•1 comments

Shein to pay $100M in fines to FTC for illegal practices

https://www.upi.com/Top_News/US/2026/11/25/shein-ftc-100-million/1661795636863/
5•nephihaha•28m ago•1 comments

Taking on Starlink: Europe's largest satellite factory opens in push to rival

https://www.cnbc.com/2026/11/26/starlink-satellites-aerospacelab-factory-belgium.html
3•svggrfgovgf•29m ago•1 comments

Freestanding mode: running Scala Native without an OS or Libc

https://github.com/scala-native/scala-native/issues/5188
1•theanonymousone•30m ago•0 comments

BCDD: A small contract language for telling an LLM what a system must do

https://bcdd.nolisoft.it
1•PaoloGe•31m ago•0 comments

Is A5 the New H3 for Spatial Analysis?

https://joets.medium.com/is-a5-the-new-h3-for-spatial-analysis-d650c0907b38
1•pheelicks•31m ago•0 comments

MCP servers can now ship skills, run tasks, and more with Claude

https://claude.com/resources/articles/skills-over-mcp-tasks-and-more
5•nvmdbljstm•33m ago•0 comments

One in 25 Starlink IPs Is a Residential Proxy

https://iptrust.co/blog/one-in-25-starlink-ips-is-a-residential-proxy
4•protoduction•33m ago•0 comments

Entering the Geminispace

https://jmmv.dev/2026/11/entering-the-geminispace.html
2•Brajeshwar•33m ago•0 comments