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!

AI labs are paying $100K–$2M for internal company workflow data

https://calendly.com/d/d3ss-w9w-7vs
1•dkggwl1990•50s ago•0 comments

Joe Rogan Experience #2578 – Calley Means [video]

https://www.youtube.com/watch?v=dMBBOawFy_4
1•jakeogh•2m ago•0 comments

70% of Brits say please or thank you when speaking to AI, some even apologize

https://www.techradar.com/pro/70-percent-of-brits-say-please-or-thank-you-when-speaking-to-ai-and...
1•giuliomagnifico•5m ago•0 comments

DeepSeek Harness – Creator Mode

https://www.reddit.com/r/DeepSeek/s/sxg7aAM6rS
1•sexy_seedbox•10m ago•0 comments

We're All Idiots

https://samparr.com/were-all-idiots/
1•Olshansky•11m ago•0 comments

Have a 401(k)? Help ProPublica Investigate What's Happening to Your Money

https://www.propublica.org/getinvolved/share-401k-fees-retirement-investment
1•toomuchtodo•11m ago•0 comments

Show HN: Codend – Build and publish web apps with AI agents

https://codend.dev
1•anythic•14m ago•0 comments

British Rail Double Arrow

https://en.wikipedia.org/wiki/British_Rail_Double_Arrow
1•ggm•14m ago•0 comments

Reddit User Detects Decrease in Thinking Blocks for Opus 5.5

https://www.reddit.com/r/claude/comments/1xql02s/is_opus_55_nerfed/
1•htrp•16m ago•0 comments

Maths Genealogy Project Graph

https://mgpgraph.com/
1•Tazerenix•18m ago•1 comments

Interleaf: An experimental tool for LLM assisted knowledge exploration

https://interleaf.tulv.in/
1•atulvi•20m ago•0 comments

AI Live Speech Rewriting Patent

https://patentlyze.com/patent/microsoft-live-ai-video-rewrites-speech/
1•sweetdingoes•22m ago•0 comments

Chimera Vocal Synth

https://twitter.com/jamesonhodge/status/2118733265372860826
1•ad8e•22m ago•0 comments

Real-Time Data Streaming for Live Video

https://www.red5.net/blog/real-time-data-streaming-for-live-video/
1•mondainx•22m ago•0 comments

Modern LLMs have tiny GPTs hidden inside them

https://invertedpassion.substack.com/p/modern-llms-have-tiny-gpts-hidden
2•gmays•36m ago•0 comments

My parents chose to die together and I was left to grieve alone

https://www.bbc.com/news/articles/c81dwllzv113o
5•onemoresoop•37m ago•0 comments

Here Be Monsters

https://www.nybooks.com/online/2026/10/30/here-be-monsters/
1•petethomas•37m ago•0 comments

VindexLLM – Windows Vulkan GPU GGUF LLM inference engine written in Delphi 12

https://github.com/tinyBigGAMES/VindexLLM
1•peter_d_sherman•38m ago•0 comments

PullDash – Review pull requests in a high-performance UI, driven by keybinds

https://pulldash.com/
1•anewhnaccount2•38m ago•0 comments

Self-promotion and the Altmetric score (2021)

https://yoursay.plos.org/2021/09/self-promotion-and-the-altmetric-score/
1•enjoyyourlife•39m ago•1 comments

What It Costs to Run 4 Apps on My Own Servers

https://akashrajpurohit.com/blog/what-it-costs-to-run-4-apps-on-my-own-servers/
1•ghostfoxgod•42m ago•0 comments

Pinot Noir: inside the criminal gangs making fake wine

https://www.economist.com/interactive/2026/11/06/pinot-noir-inside-the-criminal-gangs-making-fake...
1•axiomdata316•50m ago•0 comments

How do photonic logic gates work?

https://www.youtube.com/watch?v=ln0zZcQXv38
1•slowcooked12_•54m ago•0 comments

The internet has a human slop problem, and AI is exposing it

https://www.businessinsider.com/ai-human-slop-software-security-vulnerabilities-internet-2026-10
2•ghernando•54m ago•0 comments

Indirect Change

https://herbertlui.net/indirect-change/
2•herbertl•1h ago•0 comments

Sequoia shutting down its Scouts program marks the end of an era

https://techcrunch.com/2026/11/06/sequoia-shutting-down-its-scouts-program-marks-the-end-of-an-era/
2•nlpnerd•1h ago•0 comments

Next bcachefs release will be 100% Rust

https://github.com/lxc/incus/issues/213#issuecomment-6716682748
1•rsyring•1h ago•0 comments

My Two Front Teeth

https://theamericanscholar.org/my-two-front-teeth/
1•gmays•1h ago•0 comments

Show HN: We Build Shareable Context Layer for Agent Teams

https://github.com/volcengine/OpenViking
1•zaynjarvis•1h ago•1 comments

PolyNotes App

1•PolySync•1h ago•0 comments