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!

OpenOx – A Protocol for Self-Evolving Agents

https://openox.ai/
1•ziyzhu•37s ago•0 comments

On Average: The choice in maximizing expected value

https://eehh-stanford.github.io/monkeys_uncle/posts/means_to_ends/
2•anigbrowl•2m ago•0 comments

Show HN: School chaos. Zero stress. Nuet organizes it all

https://www.nuet.ai/
1•wowinter15•3m ago•0 comments

Mistral and Humain Announce Colab to Advance AI in Saudi Arabia and Regionally

https://mistral.ai/news/mistral-x-humain/
2•leumon•3m ago•0 comments

Fuck Your Groupthink

1•shoman3003•3m ago•0 comments

Map301 – two URL lists in, a redirect file out

https://www.map301.com
1•GerRodriguez•5m ago•0 comments

I built 270 AI agents in an Obsidian vault – zero API costs, all open source

https://gist.github.com/NenadConnor/b9bb71d56c9e70a9072c55e262885b8b
1•ai-ultron•5m ago•0 comments

Speculative Programmatic Tool Calling

https://alexzhang13.github.io/blog/2026/spec-ptc/
1•lebek•8m ago•0 comments

Hermes Agent has 23000 open PRs and climbing

https://github.com/NousResearch/hermes-agent/pulls
2•nhecker•8m ago•1 comments

Solution to Darwin's Dilemma: Discovery of the Missing Precambrian Record

https://www.pnas.org/doi/full/10.1073/pnas.97.13.6947
1•bryanrasmussen•11m ago•0 comments

Autonomous Computer: 2-GPU AI Workstation

https://www.autonomous.ai/computer-2
1•tortilla•12m ago•0 comments

Oceans hit highest temperature on record

https://www.bbc.com/news/articles/c62m4gpnp78o
3•tcp_handshaker•12m ago•0 comments

MIDI Survivor: play music to defeat monsters

https://www.midisurvivor.com/
2•higgins•12m ago•0 comments

There will be 3 types of people in the future

https://twitter.com/thedankoe/status/2091876986444533842
1•bilsbie•12m ago•1 comments

Built a platform to let instagramers create campaigns with target amounts

https://bigfan.lol
1•akad•15m ago•1 comments

Rasora – import a recipe from any link, video, or photo

https://www.myrasora.com/
1•varchun•15m ago•0 comments

HelixDB Query Insights

https://www.helix-db.com/blog/introducing-helixdb-query-insights
1•xavcochran•16m ago•0 comments

Chatbots Are Pushing Us Toward a Post-Human Internet

https://www.nytimes.com/2026/08/14/magazine/ai-chatbots-internet-communication-loops.html
2•bookofjoe•17m ago•1 comments

Logs as Tables

https://blog.sturdystatistics.com/posts/logs_as_tables/
1•kianN•18m ago•0 comments

C# 15 Preview

https://devblogs.microsoft.com/dotnet/explore-csharp-15/
3•eterm•18m ago•1 comments

The invisible flaw in my photo backup strategy

https://islandinthenet.com/photo-backup-strategy/
1•speckx•19m ago•0 comments

Trump Media CEO defends selling faster access to president's Truth Social posts

https://www.cnbc.com/2026/08/24/trump-media-ceo-truth-api.html
5•tcp_handshaker•19m ago•0 comments

Postgres Sharding

https://planetscale.com/blog/the-history-of-postgres-sharding
1•0xedb•20m ago•0 comments

AI billing tool is fast. Is it accurate enough to pass an audit?

https://www.insightits.com/products/prismclaim.html
1•parvaamin•20m ago•0 comments

Never put an API key in a place your coding agent can read

https://zipbox.ai
2•hishboy•21m ago•0 comments

African nations ramp up their space programmes a bid to reduce reliance the West

https://www.euronews.com/next/2026/08/24/african-nations-ramp-up-their-space-programmes-in-a-bid-...
4•devonnull•23m ago•0 comments

Show HN: Rate Floor Pricer – like price insurance on GPU, estimated in real time

https://www.getcomputable.com/hedge
1•yuansong98•23m ago•0 comments

Forkfolio, a live portfolio that syncs with your GitHub every night

https://forkfolio.dev
3•ForkFolio•24m ago•0 comments

Nvidia customers notified about AI-related price hikes above 15%

https://www.reuters.com/business/nvidia-customers-notified-about-ai-related-price-hikes-above-15-...
3•dgellow•24m ago•0 comments

Leaked AWS Keys Remain Active with Full Admin Access

https://techupdate24.com/leaked-aws-keys-truffle-security-admin-access/
3•udayhero•24m ago•0 comments