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!

Opus 5.5 one-shot my MMO

https://3d.eldermyr.com
1•tipsy_pipsqueak•1m ago•1 comments

What AI Benchmarks Measure: Fifty-Six AI Benchmarks Compared

https://openreview.net/challenge?redirect=%2Fforum%3Fid%3D889XnQKyhM
2•paimapi•2m ago•0 comments

Feedback on Value Concept Paper

1•ai-mktg-ninja•2m ago•0 comments

Safe Optimistic Lock Coupling

http://databasearchitects.blogspot.com/2026/04/safe-optimistic-lock-coupling.html
1•greghn•3m ago•0 comments

GLP-1 drugs put $73B in global food value at risk, report finds

https://www.fooddive.com/news/glp-1-drugs-snacking-pepsico-reeses-kellogg-cheetos-doritos/830551/
1•speckx•4m ago•1 comments

BCBS blames AI as nearly $1B in questionable hospital charges appear

https://www.cnbc.com/2026/10/01/health-care-costs-insurance-claims-billing-ai.html
1•clumsysmurf•4m ago•0 comments

Isometric Mermaid Diagrams with Arcentry

https://arcentry.com/blog/isometric-mermaid-diagrams-with-arcentry/
1•wolframhempel•4m ago•0 comments

Show HN: Benchmark: AI doesn't find bugs unless you tell it what's wrong

https://swesweep.com/
1•lieret•4m ago•0 comments

Ethereum (ETH USD): What Vitalik Knows, and Tom Lee Doesn't [pdf]

https://culperresearch.com/wp-content/uploads/2026/03/Culper_ETH_3-5-2026.pdf
1•toomuchtodo•5m ago•0 comments

Show HN: My workout tracker tells you what to lift next

https://apps.apple.com/us/app/workout-tracker-beat-it/id6785606371
1•mp3soundcloud•5m ago•0 comments

Oceans absorbed record heat equal to 40 times annual global energy use

https://www.theguardian.com/environment/2026/sep/30/worlds-seas-warmed-23-zettajoules-2025
1•robtherobber•6m ago•0 comments

Show HN: Engrams, an open source alternative to Devin

https://github.com/cortexapps/engrams
8•nikhilunni•6m ago•0 comments

Red Hat Being Phased Out of Existence (Like Many Other Companies IBM Bought)

https://techrights.org/n/2026/10/01/Red_Hat_Being_Phased_Out_of_Existence_Like_Many_Other_Compani...
4•amcclure•7m ago•3 comments

Did an AI Agent Hack DIVD? The Zammad Zero-Days

https://mrkt30.com/did-an-ai-agent-hack-divd/
1•newscomAI•7m ago•0 comments

Show HN: BananaSplit CLI – manage personal and group expenses from AI agents

https://bananasplit.net/en/agents/
2•berteotti•8m ago•0 comments

Elon Musk to return his attention to government, advise Pentagon

https://www.washingtonpost.com/politics/2026/10/01/elon-musk-return-his-attention-government-advi...
2•_tk_•8m ago•0 comments

It Took GNOME's CoCC over 8 Months to Realise Reports Went into /Dev/Null/

https://techrights.org/n/2026/09/30/It_Took_GNOME_s_Code_of_Conduct_Committee_CoCC_Over_8_Months_...
1•amcclure•9m ago•0 comments

DeterV: Verifying Deterministic Parallel Execution [pdf]

https://scofieldliu.com/deterv-plos.pdf
1•matt_d•10m ago•0 comments

TIL: Loading .env files into my terminal

https://heitorpb.github.io/bla/dotenv/
1•hpb42•10m ago•0 comments

Is AI Just a Fad?

https://www.google.com/goto?url=CAESbwHrOzAVri3ht6siuZLejlfqHIAEwie8q0AGjenRJsxG8h2I6gHlWfYJoSOml...
1•MINTYSTAR12•12m ago•0 comments

September 2026 AI product and model launches

https://deepnoodle.ai/atlas/timeline/2026/09
1•myzie•12m ago•0 comments

Hegseth announces a new drone command and cuts to 20% of generals

https://apnews.com/article/hegseth-pentagon-generals-job-cuts-67a20b026ee858895c7e5ff7fadbc029
1•thisislife2•14m ago•0 comments

Testing System One models through their architecture, and inferring Jev's

https://www.silasdata.com/system-one-models/
1•silasyl•14m ago•0 comments

Show HN: Jinei – An interactive guide to computer architecture

https://computer-architecture-lab.yar91917.chatgpt.site
1•daseins•15m ago•0 comments

The DNS Museum

https://dns.museum/
2•ibobev•17m ago•0 comments

Powerboard Tyche Unveiled at Pianeta Amiga

https://www.powerpc-notebook.org/2026/09/powerboard-tyche-unveiled-at-pianeta-amiga/
2•ibobev•18m ago•0 comments

Semicolon Inspector

https://semicolon.trm.sh/
2•ibobev•18m ago•0 comments

Asm.fm – just the CPU and 44100 numbers a second

https://github.com/whispem/asm.fm
1•ta988•21m ago•0 comments

Ask HN: Show your micro-SaaS (October 2026)

1•genekrapivin•23m ago•0 comments

DataFlex Studio – 100% client-side JSON to CSV converter

https://dataflexstudio.vercel.app
1•topeka•24m ago•0 comments