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!

The Price of Palantir's Politics

https://www.ft.com/content/21038b20-646e-4773-a473-110c2d62ab15
1•pretext•49s ago•1 comments

Hackers Use Fake Emergency Requests to Steal Data from Apple, Meta and Others

https://www.bitdefender.com/en-us/blog/hotforsecurity/hackers-use-fake-emergency-requests-to-stea...
1•throw_await•1m ago•0 comments

ADDing agent-context annotations for existing API specs

https://github.com/norbert-walter/ai-device-description-add/
1•s03nk3•2m ago•0 comments

Your ’App’ Could Have Been a Webpage (so I fixed it for you)

https://danq.me/2026/07/09/your-app-could-have-been-a-webpage/
1•robin_reala•2m ago•0 comments

Observing oscillations, flares and tornados on the sun

https://phys.org/news/2026-07-oscillations-flares-tornados-sun.html
1•rbanffy•6m ago•0 comments

Harbor: Evaluate agents in sandboxed environments

https://www.harborframework.com/
1•pramodbiligiri•11m ago•0 comments

Show HN: Musing Image

https://musingimage.com/
1•sebjones•13m ago•0 comments

Swift's blockchain ledger ready for use

https://www.swift.com/news-events/press-releases/swifts-blockchain-ledger-ready-use-17-banks-set-...
1•ivell•14m ago•0 comments

Show HN: Proton – A pure Go GUI library with zero CGO dependencies

1•CzaxTanmay•15m ago•2 comments

Why LLMs get dates and times wrong (and how to fix it)

https://www.cronofy.com/blog/why-llms-get-dates-and-times-wrong
1•gshutler•17m ago•0 comments

Meta agentic model Muse Spark 1.1

https://twitter.com/finkd/status/2075218444056707458
1•ramshanker•18m ago•0 comments

From ETL, ELT, EtLT to agent-driven data engineering with Apache SeaTunnel

https://seatunnel.apache.org/blog/from-etl-elt-etlt-to-agent/
1•luckypeter•23m ago•0 comments

Show HN: AI Humanizer – Rewrite AI text into natural copy

https://ai-humanizer.space/
1•oliviamy•27m ago•0 comments

Show HN: Makoto the Claude Code plugin that keeps the AI honest

https://github.com/Clear-Sights/Makoto
1•Present_Flow•36m ago•0 comments

Long March-10B first landing [video]

https://www.youtube.com/watch?v=x9XDsiG40Uk
3•whwhyb•39m ago•1 comments

NeverDeliver, a fake online shop for the dopamine hit without the spending

https://never-deliver-shop.vercel.app
1•truffleMaestro•39m ago•0 comments

Whitegoods that aren't, but should be

https://www.rubenerd.au/whitegoods-that-arent-but-should-be/
1•Tomte•43m ago•0 comments

QR and Barcode Scanner

https://play.google.com/store/apps/details?id=com.qrcode.scanner.barcode.reader.qr.generator&hl=e...
1•karlnelsone•44m ago•1 comments

China may restrict foreign access to Chinese open-source AI models

https://www.reuters.com/technology/artificial-intelligence/china-weighs-silicon-curtain-around-so...
23•crowd51•45m ago•0 comments

Can AI Answer the $3T Question?

https://techcrunch.com/2026/07/09/can-ai-answer-the-3-trillion-question/
1•mjs06•46m ago•0 comments

The Future of Meta Superintelligence: A 1 Year Progress Update

https://newsletter.semianalysis.com/p/the-future-of-meta-superintelligence
1•mji•47m ago•0 comments

Old Photo to New Photo Online

https://oldphototonewphoto.com
1•keepscreenawake•48m ago•0 comments

Ask HN: How are you hiring engineers now?

1•nshmadhani•51m ago•3 comments

Show HN: Banana Battle – DOS Gorillas rebuilt as a web game

https://michael480th.github.io/Banana-Battle/
1•arrozconcosas•53m ago•1 comments

Anyone Mosh Coding Yet?

https://moshcoding.com
1•buffer_overlord•1h ago•0 comments

Why Industry 5.0 is more than AI-powered analytics

https://geekyants.com/blog/industry-40-built-visibility-industry-50-must-automate-decisions-says-...
2•Krishnaswaroop•1h ago•1 comments

Soaring 'McMansion' insurance prices create opening for commercial group

https://www.ft.com/content/e5c6684b-f401-405a-86f2-b5e96cb535a1
1•petethomas•1h ago•0 comments

Bayeux Tapestry delivered to British Museum in dead of night

https://www.bbc.co.uk/news/articles/cly9r54e5r4o
2•zeristor•1h ago•0 comments

Elvebredd for iOS

https://apps.apple.com/us/app/elvebredd/id6760745063
1•klausmikelson•1h ago•0 comments

The Feel-Good Story of the World Cup Is Too Good to Be True

https://www.theatlantic.com/technology/2026/06/world-cup-tourists-america/687572/
2•mmooss•1h ago•1 comments