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!

Elon Musk is a 'real genius', Putin says after satellite talks with SpaceX boss

https://www.bbc.com/news/articles/c63djl148n3eo
1•vrganj•40s ago•0 comments

AI Powered Cold Email

https://usemailrush.com
1•samkadel•48s ago•0 comments

Extremely Brief History of PDP Computers

https://entropicthoughts.com/history-of-pdp-computers
1•signa11•11m ago•0 comments

How we detect frontier model misalignment

https://openai.com/index/how-we-detect-frontier-model-misalignment/
1•pretext•11m ago•0 comments

Nim Version 2.4.0 Released

https://nim-lang.org/blog/2026/10/28/nim-240.html
1•keyle•23m ago•0 comments

Business Entrepreneur: Tycoon

https://play.google.com/store/apps/details?id=com.bbelnexgames.businesssimulator.entrepreneur_tyc...
1•Paje_mx•23m ago•0 comments

Hinoki Offensive One: Open Access Cyber Model

https://hinoki.security
1•amanverasia•26m ago•0 comments

If we stop, we lose

https://piccalil.li/blog/if-we-stop-we-lose/
2•gsky•30m ago•0 comments

Canada to invest up to $1.6B in Toronto-based AI company Cohere

https://www.cbc.ca/news/business/canada-cohere-ai-investment-9.7401367
1•Teever•33m ago•0 comments

Plan R: AI Safety by ASICs

https://www.lesswrong.com/posts/n8u3BfqFoGh4jnzpo/plan-r-ai-safety-by-asics
2•neverbeenasked•34m ago•0 comments

Dell workstation with 96GB Nvidia GPU may cost less than graphics card alone

https://videocardz.com/newz/complete-dell-workstation-with-96gb-nvidia-gpu-may-cost-less-than-gra...
3•jacquesm•37m ago•1 comments

Laid off 60 days in: what is the tech industry doing to developers?

https://samueleast.co.uk/playground/laid-off-from-plex-60-days-in
1•isnotchicago•44m ago•0 comments

I Teach at a Business School. It's Time to Shut Them Down

https://www.nytimes.com/2026/10/18/opinion/business-school-mba-harvard-cornell-cambridge.html
4•atomicnature•45m ago•0 comments

Two Kinds of Code Review

https://haydenbleasel.com/writing/two-kinds-of-code-review
1•meetpateltech•45m ago•1 comments

MEPs tell China: Your exports are hurting our industry

https://www.euronews.com/2026/10/29/eu-lawmakers-press-beijing-to-rein-in-exports-during-beijing-...
1•Markoff•46m ago•0 comments

Experimenting with Bindless Textures in WebGPU

https://toji.dev/2026/10/06/webgpu-bindless.html
1•mariuz•54m ago•0 comments

Blockchain analysis firm TRM says North Korea behind Binance crypto theft

https://www.reuters.com/legal/government/blockchain-analysis-firm-trm-says-north-korea-behind-bin...
2•snikolaev•54m ago•1 comments

Otocoustic Emission

https://en.wikipedia.org/wiki/Otoacoustic_emission
2•hettygreen•55m ago•0 comments

Legal exploits may emerge at scale

https://www.felixringe.com/
2•madars•57m ago•0 comments

ChatGPT release notes October 29, 2026

https://help.openai.com/en/articles/6825453-chatgpt-release-notes
3•gjvr•57m ago•0 comments

Anthropic now lets Claude users jump out of plane without parachute

https://www.theregister.com/ai-and-ml/2026/10/27/anthropic-now-lets-claude-users-jump-out-of-plan...
4•GloVin•57m ago•0 comments

Time Dilation in the Movie Project Hail Mary Visualized [video]

https://www.youtube.com/watch?v=8FT-oz9aZU4
1•devy•59m ago•0 comments

Show HN: Korea-data-MCP – Korean public APIs that agents can't misread

https://github.com/YoungsoonLee/korea-data-mcp
1•youngtip•1h ago•1 comments

Keeping the Bonfires Lit

https://www.historytoday.com/archive/out-margins/keeping-bonfires-lit
2•Petiver•1h ago•0 comments

Show HN: Freewheel – Ride a bicycle through the streets of Guwahati

https://noworklabs.com/freewheel
3•the____outcast•1h ago•1 comments

Show HN: ZyVOP – Git Push to Publish on Dev.to, Hashnode, Medium and WordPress

https://zyvop.com/
1•sanjays442•1h ago•0 comments

Trojanized Claude Code Extension Plants an SSH Backdoor

https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor
7•elffjs•1h ago•1 comments

Europe Is Aflame, and It's Not Going to Stop

https://www.nytimes.com/2026/10/29/opinion/europe-protests-youth-france.html
1•TMWNN•1h ago•0 comments

Show HN: Gates – My attempt to end free-trial abuse through email aliases

https://github.com/IrondomeDev/GATES
2•YPANDAR•1h ago•1 comments

Seychelles has 58,396 IPv4 addresses per 1000 people, the most per capita

https://en.wikipedia.org/wiki/List_of_countries_by_IPv4_address_allocation
2•jjmarr•1h ago•1 comments