frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•7mo ago

Comments

zljdanceholic•7mo 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 Scents of Christmas: Aromatic Plants, Memory, and the Ecology of Celebration

https://worldsensorium.com/the-scents-of-christmas-aromatic-plants-memory-and-the-ecology-of-cele...
1•dnetesn•1m ago•0 comments

Reality Exists Without Observers? Boooo

https://nautil.us/reality-exists-without-observers-boooo-1252289/
1•dnetesn•2m ago•0 comments

The Vatican returns sacred artifacts held for a century to Indigenous owners

https://www.cnn.com/2025/12/08/europe/vatican-pope-indigenous-artifacts-canada-intl-hnk
1•sipofwater•3m ago•1 comments

Ask HN: Async updates: Input friction vs. Output friction?

1•sangkwun•3m ago•0 comments

Show HN: I Built an AI platform for trainers to manage workouts and diets

https://extremefitness.app/
1•shuvrokhan•4m ago•1 comments

New Jersey looks to create hallucinogenic mushroom research program

https://www.njspotlightnews.org/2025/12/nj-looks-to-create-hallucinogenic-mushroom-research-program/
1•magictruffle•5m ago•0 comments

Ask HN: Which domain name registrar do you use?

1•not-so-darkstar•7m ago•1 comments

Show HN: Web app that lets you send email time capsules

https://resurf.me
2•walrussama•10m ago•0 comments

Good Conversations Have Lots of Doorknobs (2022)

https://www.experimental-history.com/p/good-conversations-have-lots-of-doorknobs
1•bertwagner•10m ago•0 comments

Show HN: ZeroNotes – Client-side encrypted notes (AES-256-GCM and Argon2id)

https://app.zeronotes.is
2•Bjoern_Dev•12m ago•0 comments

Why U.S. senator in top Intel post wants more spying on Chinese companies

https://www.cnbc.com/2025/12/06/china-us-technology-spying-senate-concerns.html
1•ironyman•17m ago•0 comments

Survivors Clung to Wreckage for Some 45 Minutes Before U.S. Military Killed Them

https://theintercept.com/2025/12/05/boat-strike-survivors-double-tap/
5•belter•19m ago•1 comments

Notes on RLHF Book by Nathan Lambert

https://shubhamg.bearblog.dev/notes-on-rlhf-nathan-lambert-book/
1•shubham13596•20m ago•0 comments

Keep hitting US Big Tech with fines, Europe's Greens tell von der Leyen

https://www.politico.eu/article/keep-hitting-us-big-tech-fines-europe-greens-tell-ursula-von-der-...
3•saubeidl•25m ago•2 comments

Show HN: Sornic – Turn any URL into social media posts for 6 platforms

https://sornic.com
2•digi_wares•26m ago•1 comments

Tree-me: Because Git worktrees shouldn't be a chore

https://haacked.com/archive/2025/11/21/tree-me/
1•wolfwyrd•26m ago•0 comments

Geometric derivation of proton radius matches CODATA within 577 ppm

https://zenodo.org/records/17847771
1•albert_roca•27m ago•1 comments

The new moat in AI isn't models. It's data infrastructure

https://twitter.com/mannamenash/status/1995518780064350607
3•leandrenash•31m ago•2 comments

"Not Always Right": Funny and True Stories

https://notalwaysright.com/
1•ColinWright•32m ago•0 comments

Waymo's self-driving cars passed stopped school buses

https://www.npr.org/2025/12/06/nx-s1-5635614/waymo-school-buses-recall
2•thinkcontext•32m ago•0 comments

The AI productivity struggle is not about AI

https://haugeto.medium.com/the-ai-productivity-struggle-is-not-about-ai-c932c7c76453
1•ingve•33m ago•0 comments

To boost research, states are building their own AI-ready supercomputers

https://www.science.org/content/article/boost-research-states-are-building-their-own-ai-ready-sup...
1•ashishgupta2209•36m ago•0 comments

A Fasting-Style Diet Seems to Result in Dynamic Changes to Human Brains

https://www.sciencealert.com/a-fasting-style-diet-seems-to-result-in-dynamic-changes-to-human-brains
1•makaimc•37m ago•0 comments

Queensland Museum accused of misleading teachers and children about climate

https://www.theguardian.com/australia-news/2025/dec/08/queensland-museum-accused-of-misleading-te...
2•doener•43m ago•1 comments

IntelliJ Scala Plugin 2025.3 Is Out

https://blog.jetbrains.com/scala/2025/12/08/scala-plugin-2025-3-is-out/
1•quapster•43m ago•0 comments

Russia Loses Launch Capability After Accident at Baikonur Cosmodrome

https://www.universetoday.com/articles/severe-accident-destroys-russias-ability-to-launch-astrona...
2•belter•44m ago•0 comments

TurtleStitch – Coded Embroidery

https://www.turtlestitch.org/
1•tosh•45m ago•0 comments

The Internet forgets, but I don't want to

https://alexwlchan.net/2025/social-media-scrapbook/
1•ingve•47m ago•0 comments

Clip of a Tesla Optimus teleoperator taking his headset off

https://bsky.app/profile/jjvincent.bsky.social/post/3m7hps4h2x22r
1•doener•50m ago•0 comments

Google is experimentally replacing news headlines with AI clickbait nonsense

https://www.theverge.com/ai-artificial-intelligence/835839/google-discover-ai-headlines-clickbait...
4•rbanffy•51m ago•3 comments