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!

Litespeed – a local coding agent with multi-model workflows

https://github.com/BerriAI/litespeed/tree/main
1•hmokiguess•49s ago•0 comments

River home to 500 crocodiles chosen as Olympic rowing venue

https://www.bbc.com/sport/olympics/articles/cqvgy1m9z4k8o
1•vismit2000•2m ago•1 comments

Nuclear Fusion's Moment of Truth

https://email.newsletters.ft.com/c/eJyMkslS40gQhp-mdCtH7ctBB29iRMxgzDIMcyGqKrOMsCy5JRkHPH1HE_Ry5J...
1•helsinkiandrew•2m ago•0 comments

Kidney Transplantation in Highly Sensitized Persons After Car T-Cell Therapy

https://doi.org/10.1056/nejmc2608825
1•sbulaev•3m ago•0 comments

Show HN: On-device meeting transcription for iPhone (no cloud, no account)

https://apps.apple.com/us/app/fieldnoter-transcription/id6789909820
1•ljokr•3m ago•0 comments

HavenCo

https://en.wikipedia.org/wiki/HavenCo
1•vismit2000•4m ago•0 comments

19th Nervous Breakdown

https://thebuild.com/blog/19th-nervous-breakdown/
1•haeseong•4m ago•0 comments

The damage a tiny speck of space debris can do at 15000mph(2018)

https://bigthink.com/hard-science/heres-the-damage-a-tiny-speck-of-space-debris-can-do-at-15000mph/
1•num42•4m ago•0 comments

SpaceX – Starmind

https://www.spacex.com/spacexai/starmind
1•vismit2000•6m ago•0 comments

Show HN: Ink Signal, editor themes with fewer colours

https://gaurav-singh.info/ink-signal/
1•gvsh_maths•6m ago•0 comments

Infinite View – Public Domain Image Archive

https://pdimagearchive.org/infinite-view/
1•Bluestein•7m ago•0 comments

Who's buying your personal data: Disney, GM, your insurer and bank

https://themarkup.org/privacy/2026/09/16/whos-buying-your-personal-data-disney-gm-your-insurer-an...
1•DeepLogin•8m ago•0 comments

My Take on Procrastination

https://hossein.naghdbishi.com/posts/en/goal-orientation-and-procrastination/
2•niyumard•8m ago•0 comments

Show HN: Bottle – a tiny ledger for bot memory

https://github.com/imron/bottle
2•imron•8m ago•0 comments

Show HN: Out-of-tree Linux driver for a reverse-engineered Cavium 10GbE SmartNIC

https://github.com/nicologiuliani6/cavium-cn6640-snic10e-octeon-ii-nic
1•nicologiuliani6•8m ago•0 comments

US automakers could soon be forced to include AM radio for free

https://techcrunch.com/2026/09/16/us-automakers-could-soon-be-forced-to-include-am-radio-for-free/
1•soltanov•9m ago•0 comments

Mammals

https://thingofthings.substack.com/p/strange-mammals
1•surprisetalk•10m ago•0 comments

Show HN: OpenBot, open source framework similar to Grok Bot

https://github.com/regnull/openbot
1•regnull•12m ago•0 comments

Canadian PM Mark Carney Addresses EU Parliament in a Historic Speech

https://www.youtube.com/watch?v=cMHmZHDouUY
1•cromka•12m ago•0 comments

Show HN: AntFlow AI: Agentic AI Framework for Spec-Driven Development

https://geekyants.com/antflow-ai
1•vanessa1211•12m ago•0 comments

Show HN: EMV 3DS Protocol Lab – Interactive visualizer for 3-D Secure flows

https://cnpshield.github.io/3dslab/
1•cswasif•13m ago•0 comments

Show HN: Promptbar – type // in any text box to insert your saved prompts

https://chromewebstore.google.com/detail/promptbar-—-prompt-manage/nijgnlioekanikhnlleeijjhjbjm...
1•madebypointco•16m ago•0 comments

Ask HN: How is AI destruction of books legal?

1•Madmallard•17m ago•3 comments

Show HN: Facefork – A tree interface to AI edit photos for fun

https://facefork.com/
1•reacharavindh•18m ago•0 comments

Optimizing Qwen3.8 27B on one AMD R9700

https://eliovp.com/blog/paiton-qwen38-mxfp4-dflash2-r9700
1•Eliovp•19m ago•0 comments

Why Vanilla RAG When you can do this

https://medium.com/@NikoZero11/your-rag-pipeline-doesnt-need-more-retrieval-it-needs-better-decis...
1•Razeer•22m ago•0 comments

Show HN: An agent-skill to generate preview, AppStore screenshots and campaigns

https://github.com/imshaikot/app-preview-craft-skill
1•imshaikot•22m ago•0 comments

I don't like websites these days

https://ahmedhossamdev.com/writing/i-dont-like-websites-these-days/
3•ahmedhossamdev•23m ago•0 comments

ignore & delete.

2•loopydosuette•23m ago•0 comments

Arata: A fine PRNG based on ARX, with domain separation and min period guarantee

https://github.com/eternal-io/arata
1•eternal-io•23m ago•0 comments