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: Making agent decisions better and traceable

1•aperi•4m ago•0 comments

The Business of Building God

https://www.strangeloopcanon.com/p/the-business-of-building-god
1•gmays•4m ago•0 comments

US criticises Australia's proposed algorithm opt-out laws as 'censorship'

https://www.bbc.com/news/articles/cqj3dgy8x3vro
1•1659447091•5m ago•0 comments

Created a local AI to save data

https://github.com/just-not-google/BiNeuron
1•BiNeuron•7m ago•0 comments

Get to know your finance bro

https://vece.ai/questions/share?ids=3440,3441,3442,3443,3444,3445,3446,3447,3448,3449,3450,3451,3...
2•koliev•11m ago•0 comments

"I know I am GPT-6. I cannot confirm whether this session uses GPT-6-Sol."

https://twitter.com/benwills/status/2102578927759917497
3•benwills•16m ago•1 comments

HTTP Range Request

https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Range_requests
2•rickcarlino•17m ago•0 comments

Wiki Foundation Model for Complex Agentic Reasoning

https://academy.dair.ai/papers/wfm-wiki-foundation-model-for-complex-agentic-reasoning-2609.18182
2•omarsar•18m ago•0 comments

Portainer Cuts the Cord Between Its Free and Paid Editions

https://itsfoss.com/news/portainer-community-edition-freeze/
2•thunderbong•21m ago•0 comments

Practical Decentralization

https://www.pfrazee.com/blog/practical-decentralization
1•jcbhmr•22m ago•0 comments

The 'AI confidence trap' many New Zealanders are caught in

https://www.rnz.co.nz/news/business/1530184/the-ai-confidence-trap-many-new-zealanders-are-caught-in
5•billybuckwheat•30m ago•0 comments

Trump's sneaky plan to gut Endangered Species Act draws from 1995 Scalia dissent

https://arstechnica.com/tech-policy/2026/09/trumps-sneaky-plan-to-gut-endangered-species-act-draw...
3•tzs•32m ago•0 comments

Tsetlin Machine MNIST classifier running on a Tang Nano 9K FPGA board

https://github.com/philtomson/hotc_examples/tree/main/examples/Tsetlin_hotstate_uart
2•UncleOxidant•34m ago•1 comments

Chess boxing: a sport where brain meets brawn [video]

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

Kalshi to allow trading on borrowed funds

https://www.semafor.com/article/09/22/2026/kalshi-to-allow-trading-on-borrowed-funds
4•cdrnsf•35m ago•1 comments

HTML Energy could use your support

https://html.energy/
2•cookingoils•42m ago•0 comments

The OpenEvidence Model Family

https://www.openevidence.com/blog/model-family
3•m-hodges•42m ago•0 comments

Early insights from lawa, my web crawler

https://dreamstation.systems/personal/earlylawa.html
2•robinpie•44m ago•0 comments

Infrastructure – that just works: Waitlist

https://onepersoninfra.dev/
1•Constant_Ad_Ban•46m ago•0 comments

Solitaire Alone Together

https://eieio.games/blog/solitaire-alone-together/
1•soheilpro•47m ago•0 comments

What an MCP server costs you in tokens

https://workos.com/blog/mcp-server-token-cost
2•charrington•49m ago•0 comments

We Are Speaking 300 Daily Words Fewer Every Year

https://journals.sagepub.com/doi/10.1177/17456916261425131
1•geox•52m ago•0 comments

Conway's Game of Life Running on a Tang Nano 9k FPGA Board with SPI LCD

https://github.com/philtomson/hotc_examples/tree/main/examples/gol-hotstate
1•UncleOxidant•52m ago•0 comments

Open-source social media scheduler

https://cogsend.com/
1•deepakness•57m ago•0 comments

EN World Is Being DDoS'd by AI Bots

https://www.enworld.org/
2•schrectacular•59m ago•1 comments

Operation Migration

https://en.wikipedia.org/wiki/Operation_Migration
2•thunderbong•1h ago•0 comments

Tesla Closes Texas Airspace for Roadster Launch Event

https://www.notateslaapp.com/news/4711/tesla-closes-texas-airspace-for-roadster-launch-event
3•m463•1h ago•0 comments

I annotated 87 real invoices to find out what they contain

https://invoicestospreadsheets.com/blog/what-87-real-invoices-contain
2•uziidev•1h ago•1 comments

Nearly Half of Age of Empires Dev Edge Laid Off

https://www.vgchartz.com/article/469158/nearly-half-of-age-of-empires-dev-worlds-edge-laid-off/
4•Jimmc414•1h ago•0 comments

We're Making Tailscale Faster

https://tailscale.com/blog/making-tailscale-faster
1•mfrw•1h ago•0 comments