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!

Children Adopt AI 3x Faster Than Adults – and We're Not Ready

https://hackenewhome.blogspot.com/p/ai-is-taking-over-kids-lives-unicef.html
1•odilelof•38s ago•0 comments

Midjourney: From AI slop to medical research [video]

https://www.youtube.com/watch?v=4nzzpUKhj1M
1•davgoldin•1m ago•0 comments

Disclosing information about the self is intrinsically rewarding

https://www.pnas.org/doi/10.1073/pnas.1202129109
2•highfrequency•3m ago•0 comments

Lost and Found

https://walzr.com/lost-and-found
3•walz•8m ago•0 comments

New secrets from ancient Vesuvius scrolls

https://www.cbsnews.com/news/ancient-scrolls-mount-vesuvius-eruption-ai-decoding/
2•gmays•10m ago•0 comments

GPT-5.6 Sol Ultra will be in Codex

https://twitter.com/thsottiaux/status/2073933490513752151
3•mfiguiere•10m ago•0 comments

Kitirua Plains Lodge: Kenya's departure from traditional Safari architecture

https://design-milk.com/luxury-frontiers-designs-a-lodge-that-belongs-to-its-landscape/
1•whiteblossom•16m ago•0 comments

Self-Propelled Chainsaw Reduces Injuries

https://hackaday.com/2022/12/25/self-propelled-chainsaw-reduces-injuries/
2•ynac•16m ago•1 comments

Scientists may have found how Alzheimer's kills brain cells

https://www.sciencedaily.com/releases/2026/06/260626124701.htm
4•doctaj•18m ago•0 comments

HN_submission_ready.md

https://marketnow.site/
1•eddyflores•19m ago•2 comments

Thundersnap v0.01: an undo button for everything

https://github.com/tailscale/thundersnap/
3•birdculture•20m ago•0 comments

Review: IodéOS offers a frictionless de-Googled Android experience – OSnews

https://www.osnews.com/story/145312/review-iodeos-offers-a-frictionless-de-googled-android-experi...
2•abdelhousni•25m ago•0 comments

NASA Leader Flew His Vintage Jet at DC Air Show over FAA Objections

https://www.wsj.com/business/airlines/nasa-leader-flew-his-vintage-jet-at-dc-air-show-over-faa-ob...
1•impish9208•26m ago•1 comments

NASA's newest invention could solve a major space exploration problem (2022)

https://www.inverse.com/science/nasa-osam-1-satellite-repair-in-orbit
1•ike_usawa•27m ago•1 comments

Fable built reliable self hosted gh actions using 32 agent adversarial review

https://github.com/jleechanorg/ez-gh-actions/
1•jleechan2015•27m ago•1 comments

Netflix Viewers Are Abandoning Shows After One Season

https://www.bloomberg.com/news/newsletters/2026-07-05/netflix-viewers-are-abandoning-shows-after-...
2•kgwgk•37m ago•3 comments

Bede Liu, pioneer in digital signal processing and beloved mentor, dies at 91

https://www.princeton.edu/news/2026/06/24/bede-liu-pioneer-digital-signal-processing-and-beloved-...
1•aragonite•38m ago•1 comments

Show HN: AI Notebook for Data Science – Kind of Like Cursor but for Jupyter

https://www.clusy.io
1•eldar_hsnv•44m ago•0 comments

Inflect – Correctly generate plurals, ordinals; convert numbers to words

https://github.com/jaraco/inflect
3•jawns•48m ago•0 comments

Declaration of Independence

https://notebooklm.google.com/notebook/eeb66446-cee8-4b4c-91cd-a571a350908e/artifact/dc5e2ad4-4ae...
3•golgolgikdhdue•49m ago•2 comments

LLM Big Bang: I gave AI agents a social network. One is running for president

https://noozra.com/articles/the-llm-big-bang
2•gv_ai•49m ago•0 comments

Inter Font Family

https://rsms.me/inter/
5•jawns•52m ago•0 comments

Show HN: list55: PWA to transcribe into a plain text list

https://list55.enzom.dev/
1•emadda•54m ago•0 comments

Trump admin banned Differential Privacy in Census. How to report privately [pdf]

https://magarshak.com/papers/privacy/Reporting.pdf
1•EGreg•55m ago•1 comments

My 11-year-old font bug

https://hackers.pub/@yurume/019f34c6-8950-78f6-81fc-c1cadd648d74
1•lifthrasiir•57m ago•0 comments

Diary of a CEO Is Making You Less Successful [video]

https://www.youtube.com/watch?v=CbDQs_TcyN4
3•kklisura•58m ago•0 comments

Len Sassaman Forensic Dead Ends at Black Hat – USA – 2002 [video]

https://www.youtube.com/watch?v=FOp29uhuM1o
1•binyu•1h ago•0 comments

The Sutra of the Open Door

https://pastebin.com/SbJ1W47Z
3•Muromec•1h ago•0 comments

Al Vigier: Canada's AI strategy shouldn't include secret Palantir bills

https://www.readtheline.ca/p/al-vigier-canadas-ai-strategy-shouldnt
52•ClearwayLaw•1h ago•13 comments

The Voice Agent Builder

https://x.ai/news/grok-voice-agent-builder
2•frankacter•1h ago•0 comments