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!

Reliable AI automation done right (it's model-agnostic)

https://skeptical.ai/
1•senorcarbone•1m ago•1 comments

Mathathon: Old Problems, New Proofs

https://mathathonchallenge.com/
1•JohnHammersley•5m ago•0 comments

Boeing's Starliner won't launch astronauts until 2028 (and may need new rocket)

https://www.space.com/space-exploration/human-spaceflight/boeing-starliner-wont-launch-astronauts...
1•JumpCrisscross•5m ago•0 comments

We Mapped All 11,000 Factory Farms in Iowa. Here Are Five Things We Learned

https://sentientmedia.org/five-takeaways-mapping-iowas-factory-farms/
1•voidmain0001•7m ago•0 comments

Watch scientists decipher burnt scrolls without unrolling them

https://www.nature.com/articles/d41586-026-02920-8
2•bookofjoe•7m ago•1 comments

App Store review allowed a Meta Muse copycat

https://lapcatsoftware.com/articles/2026/9/8.html
1•JumpCrisscross•8m ago•0 comments

Ukrainian forces advance in key eastern battlefield

https://www.reuters.com/world/europe/ukrainian-forces-advance-key-eastern-battlefield-senior-comm...
1•JumpCrisscross•8m ago•0 comments

Orcarouter/OrcaSAQ-2-27B

https://huggingface.co/orcarouter/OrcaSAQ-2-27B
1•handfuloflight•8m ago•0 comments

How the Internet got 32-bit addresses, as explained by Vint Cerf (in 2026)

https://emot.substack.com/p/how-the-internet-got-its-addresses
1•emot•10m ago•0 comments

Munich 787 Vietnam Airlines Interim report is out

https://www.bfu-web.de/EN/Publications/InterimReports/IR2026/IR26-0757_AX_Boeing787.html
1•nixass•12m ago•0 comments

Destroy Any Website with a Stickman

https://twitter.com/HugoDuprez/status/2104579137575018827
1•hackerbeat•13m ago•0 comments

Toughen GPS to resist jamming and spoofing (2022)

https://www.gpsworld.com/toughen-gps-to-resist-jamming-and-spoofing/
1•conorcleary•13m ago•0 comments

OpenAI Scraps Release of New AI Model over Safety Concerns

https://www.wsj.com/tech/ai/openai-chatgpt-model-release-cancel-safety-5a2f9f42
5•borski•14m ago•1 comments

MoreWrong

https://morewrong.lol/
1•etc-hosts•14m ago•0 comments

Replace Your OpenAI, Anthropic or Google API Call with Middleware

https://middleware.now/
1•aperi•15m ago•0 comments

Designing an iPhone gaming dock in an afternoon with GPT-6 Astra

https://getdockade.com/
1•shashu10•15m ago•1 comments

Who should be held accountable when an AI Agent (accidentally) acts maliciously?

https://blog.greenpants.net/ai-accountability/
3•Greenpants•16m ago•0 comments

Metadata requests not tracked [since about a month ago] in PyPI download counts

https://blog.pypi.org/posts/2026-08-31-download-counts/
1•zahlman•17m ago•0 comments

Code-rendered music video for "I'm Upping My P(doom)"

https://github.com/mexicat/pdoom-video
1•aziis98•18m ago•0 comments

Having a Good Frequency at VCFMW21

https://www.michaelwashere.net/post/2026-09-17-vcfmw-time/
1•geerlingguy•20m ago•0 comments

Can Jev Parse CSV?

https://remy.wang/blog/jev-csv.html
2•remywang•21m ago•1 comments

Escalate hard decisions with the advisor tool

https://code.claude.com/docs/en/advisor
1•mfiguiere•24m ago•0 comments

NYT head of engineering and gaming experience allegedly shot by elderly in-laws

https://www.nbcnews.com/news/us-news/new-york-executive-shot-killed-laws-bay-area-park-police-say...
1•Vaslo•25m ago•0 comments

Made a thing, if you use Grok and Pi check it out. Or scoll on bros

https://github.com/JangMan-J/pi-grok-agent
1•JangManJ•30m ago•1 comments

HouseOS – self-hosted homesystem platform, designed to be operated by agents

https://github.com/boitech-dev/HouseOS
1•owazabi•31m ago•1 comments

Found in translation: the selfless legacy of Eien Ni Hen

https://magnvsrpgjourney.substack.com/p/found-in-translation-the-selfless
1•wk_end•31m ago•0 comments

Range – open a 1 TB AI model in 3 seconds without downloading it

https://getrange.sh/
1•andreygrehov•31m ago•0 comments

How I Made a Zero Dependency Terminal Text Editor in C Using POSIX System Calls

https://111nation.github.io/posts/creating-text-editor/
1•111nation•32m ago•0 comments

Openprinter

https://www.crowdsupply.com/open-tools/openprinter
3•animal_spirits•35m ago•0 comments

Recalld – A memory layer for AI agents that returns only relevant facts

https://recalld.ai/
2•costinu•39m ago•1 comments