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!

A structurally chunked, pre-embedded SQLite corpus of the EU AI Act

https://huggingface.co/datasets/faitholopade/aiact-openrag
1•olopadef•2m ago•0 comments

One link-click Google account takeover

https://weirdmachine64.github.io/research/google-oauth-device-code-hijacking.html
1•zx8080•2m ago•0 comments

Trump made $1.4B from crypto in one year. Is Justin Sun the man who helped him?

https://www.theguardian.com/technology/ng-interactive/2026/jul/16/justin-sun-trump-family-crypto
1•beardyw•9m ago•0 comments

The most expensive instruction might be cmov

https://questdb.com/blog/cmov-vs-branch-perf/
1•theanonymousone•10m ago•0 comments

The Word "Emoji" Is Older Than You May Think

https://blog.emojipedia.org/the-word-emoji-is-older-than-you-may-think/
2•msephton•12m ago•0 comments

Show HN: cc-context-telemetry - context and rate-limit % in Claude Code's bar

https://github.com/alagiz/cc-context-telemetry
1•alagiz•13m ago•0 comments

Trump Media to sell instant access to 'market-moving' social posts

https://www.bbc.com/news/articles/c79gw4lj89eo
2•NikxDa•13m ago•0 comments

A visual data-app builder that generates SvelteKit source

https://svgrid.com/studio
1•boikom•21m ago•0 comments

America's Open-Model Paradox

https://twitter.com/DeanMeyerrr/status/2077834267086729674
1•aivantg•36m ago•0 comments

Show HN: We Want to Improve the Linux Experience on T2 Macs with KaiT2en Fedora

https://github.com/kaiT2en/KaiT2en-Fedora/
3•4l3x4f1sh3r•40m ago•3 comments

Grep by example: Interactive guide

https://antonz.org/grep-by-example/
4•saikatsg•41m ago•0 comments

Pushinka

https://en.wikipedia.org/wiki/Pushinka
3•benbreen•41m ago•0 comments

Gist of Go: Concurrency

https://antonz.org/go-concurrency/
1•saikatsg•42m ago•0 comments

We're Going to Make Out Like Bandits

https://www.rocketpoweredjetpants.com/2026/04/were-going-to-make-out-like-bandits/
1•birdculture•48m ago•0 comments

Passwork Shares Data with State-Certified Russian Firm

https://www.occrp.org/en/investigation/european-password-manager-shares-origins-and-updates-with-...
3•u1hcw9nx•49m ago•0 comments

Isvisible.ai, check if AI crawlers can access your site

https://isvisible.ai
1•alpkorpe•50m ago•0 comments

Show HN: Flick – Swipe Your Email

https://flicked.email/
2•Belkins•53m ago•1 comments

A few thoughts on building a terminal ePub reader with AI

https://github.com/newptcai/repy
3•dawdler-purge•54m ago•1 comments

Show HN: Open-source control engine for agents

https://attestorportal.com/
1•Oxlamarr•55m ago•0 comments

Netflix says around 300 titles used generative AI

https://www.theverge.com/streaming/966633/netflix-ai-titles-q2-2026-earnings
2•JamesAdir•55m ago•0 comments

Tech note: making your own V-I plots at home

https://lcamtuf.substack.com/p/tech-note-making-your-own-v-i-plots
1•surprisetalk•56m ago•0 comments

MongoDB Access Control – Users, Roles, and Permissions

https://visualeaf.com/blog/mongodb-access-control-users-roles-and-permissions/
3•mike_codes•59m ago•0 comments

Yggvault: Mirror Your Dependencies in One Binary

https://hackaday.io/project/206175-yggvault-mirror-your-dependencies-in-one-binary
1•SUNsung•1h ago•0 comments

Databricks is raising funding at $188B valuation

https://www.databricks.com/company/newsroom/press-releases/databricks-raising-strategic-round-fun...
1•shenli3514•1h ago•0 comments

VitaSet LLC's planning to add to LLVM's circt to make a FOSS Vita FPGA Compiler

1•VitaSetLLC•1h ago•0 comments

Show HN: Velora – On-device macOS dictation (Whisper and a local LLM, no cloud)

https://github.com/sushilk1991/velora
1•sushilk1991•1h ago•0 comments

Storm [video]

https://www.youtube.com/watch?v=HhGuXCuDb1U
1•nomilk•1h ago•0 comments

LLM Evaluators are Biased across Languages

https://arxiv.org/abs/2607.14480
1•sbulaev•1h ago•1 comments

Trump to declare emergency around midterms, former White House attorney says

https://www.pbs.org/newshour/show/trump-setting-stage-to-declare-emergency-around-midterms-former...
2•Alien1Being•1h ago•0 comments

The Determinist Fallacy

https://medium.com/luminasticity/the-determinist-fallacy-ae25f8bc50ed
1•bryanrasmussen•1h ago•0 comments