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!

October Security Incident

https://www.dreamhost.com/news/announcements/october-security-incident/
1•danboarder•58s ago•0 comments

North Korea became a hacking superpower

https://www.ft.com/content/46c03338-63d5-43fc-a946-ebcbe9e1c07a
1•cwwc•1m ago•0 comments

Nitro – Build static sites in plain Python

https://nitro.sh
1•ghstcode•1m ago•0 comments

Bunny CDN Security Incident

https://status.bunny.net/incidents/p6gf1by9kr7m
1•SondreDag•2m ago•0 comments

NASA ponders a Hubble servicing mission or a controlled deorbit

https://www.theregister.com/science/2026/10/30/nasa-ponders-a-hubble-servicing-mission-or-a-contr...
1•samizdis•2m ago•0 comments

BBC licence fee expected to top £200 amid row over 'YouTube tax'

https://www.independent.co.uk/news/uk/politics/bbc-licence-fee-price-rise-youtube-tax-b3076318.html
1•nephihaha•3m ago•0 comments

French digital tax may kill VideoLan non-profit

https://twitter.com/videolan/status/2116229135919919278
3•miohtama•6m ago•0 comments

Quantum Algorithms for Beginners

https://ketsandgates.com/
1•liamlutton•6m ago•1 comments

Put AI to Work for You

https://ifttt.com/explore/put-ai-to-work-for-you
2•joebig•8m ago•0 comments

Moju – Open-source physics auditing for CFD and SciML training data

https://github.com/IfimoAI/moju/blob/main/docs/case-studies/cylinder-re100-converged-forces.md
1•Abi_il_2026•9m ago•0 comments

Tracking 11,709 AI launches on Hacker News

https://spark.site/blog/ai-startup-failure-rate
1•danielxli•10m ago•0 comments

The Gestures We've Forgotten

https://www.theatlantic.com/newsletters/2026/10/time-change-rediscover-joy/689221/
1•fortran77•12m ago•0 comments

Rival AI models write an encyclopedia and judge each other blind

https://scio.md/
1•evisoft•14m ago•0 comments

China unveils 13-foot robot that can lift a cow

https://www.the-independent.com/tech/china-robot-humanoid-neodradynamics-neo1-ai-b3074374.html
3•stared•16m ago•1 comments

What happened to 145 Nasdaq companies after the $1 warning letter

https://equibles.com/research/nasdaqs-1-warning-most-companies-stay-listed-most-shares-fall
2•daniel3303•17m ago•0 comments

Microsoft Feedback, Deleted

https://www.perspectives.plus/p/your-feedback-deleted
1•jukkan•19m ago•0 comments

Language models running locally on hardware that has no business running them

https://github.com/emrehangorgec/awesome-llm-on-anything
1•gawacer•21m ago•0 comments

Pentagon tells Europeans to cool their rhetoric on Russia, sources say

https://www.reuters.com/business/finance/pentagon-tells-europeans-cool-their-rhetoric-russia-sour...
2•gvieri•22m ago•0 comments

CoreWeave: Borrowing to Build the AI Cloud

https://editide.com/pintura/coreweave/
1•danielochoa0620•22m ago•0 comments

Eli Lilly scraps phase2 Alzheimer program after drug falls short of expectations

https://www.fiercebiotech.com/biotech/lilly-scraps-ph-2-alzheimers-disease-drug-it-did-not-meet-h...
1•randycupertino•23m ago•0 comments

Go 1.24 MPTCP default exposes servers to Linux kernel RCE (CVE-2026-98432)

https://www.openwall.com/lists/oss-security/2026/10/30/1
1•ultral•23m ago•0 comments

Inferssd – Run models larger than RAM or VRAM by streaming MoE experts from SSD

https://github.com/wici-ai/inferssd
1•oceansky•24m ago•0 comments

ACLs Don't [pdf]

https://shiftleft.com/mirrors/www.hpl.hp.com/techreports/2009/HPL-2009-20.pdf
2•fanf2•25m ago•0 comments

Little Snitch Shows Who Your Mac Talks To

https://little-snitch.app/
1•6thbit•25m ago•1 comments

Show HN: BeamDisk – High Performance iSCSI Initiator for macOS

https://beamdisk.app/
1•nulledy•26m ago•0 comments

Claude 20x is now Ultra without the 5-hour limit

https://support.claude.com/en/articles/17728952-what-is-the-ultra-plan
1•fagnerbrack•29m ago•0 comments

Playscii – open-source ASCII art/animation/game creation

https://jplebreton.com/playscii/
1•sargstuff•30m ago•0 comments

How to find 300% of a lost performance in a mature database code

https://mariadb.org/how-mariadb-11-8-became-about-3x-faster-on-some-in-memory-workloads-fixing-a-...
1•drrtuy•30m ago•0 comments

Old Ideas

https://blog.fogus.me/thoughts/old-ideas.html
3•janvdberg•30m ago•0 comments

Ask HN: Is applying to Y Combinator worth it if you aren't an insider?

2•all2•31m ago•2 comments