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!

Australopithecus did not consume substantial mammalian meat

https://www.science.org/doi/10.1126/science.adq7315
1•aziaziazi•1m ago•0 comments

HuggingFace Security incident disclosure – July 2026

https://huggingface.co/blog/security-incident-july-2026
1•Daviey•2m ago•0 comments

The Secret Math Society Known Simply as Nicolas Bourbaki

https://www.quantamagazine.org/inside-the-secret-math-society-known-as-nicolas-bourbaki-20201109/
1•pykello•3m ago•0 comments

Show HN: Loris Tunnel – an open-source desktop manager for SSH tunnels

https://github.com/RangerWolf/loris-tunnel-app
2•rangerwolf•6m ago•0 comments

The Computer at the Bottom of a Canal

https://negroniventurestudios.com/2026/07/18/the-computer-at-the-bottom-of-a-canal/
1•Kudos•7m ago•0 comments

Neither GCC nor Clang are compliant with standard C++

https://sebsite.pw/w/20260708-badstdcxx.html
1•jandeboevrie•9m ago•1 comments

Pal Routes: shortest Palworld 1.0 breeding routes from your owned Pals

https://palroutes.com/
1•AsterXing•10m ago•0 comments

Brazil Eyes Film Royalties and Drug Patents in US Tariff Retaliation

https://www.riotimesonline.com/brazil-us-tariff-film-royalties-drug-patents/
1•vrganj•16m ago•0 comments

Israeli ministers announce plans for illegal settlements in Gaza and West Bank

https://www.theguardian.com/world/2026/jul/18/israel-plan-new-illegal-settlements-gaza-west-bank-...
4•kubafu•17m ago•1 comments

Show HN: Fosnie – open-source self-hosted AI workspace for regulated teams

https://fosnie.dev/
1•bellapai•21m ago•0 comments

Wp2shell Pre Authentication RCE in WordPress Core

https://wp2shell.com/
1•Techbrunch•25m ago•1 comments

AI Mania Is Eviscerating Global Decision-Making

https://ludic.mataroa.blog/blog/ai-mania-is-eviscerating-global-decision-making/
3•bertman•26m ago•0 comments

Timeline Studio

https://github.com/MartinDelophy/ai-video-editor
1•martindelophy•28m ago•0 comments

Compaction

https://developers.openai.com/api/docs/guides/compaction
1•tosh•28m ago•0 comments

Cryptids

https://en.wikipedia.org/wiki/List_of_cryptids
2•tosh•30m ago•0 comments

We run 100% agentic coding at a €2M ARR healthcare SaaS

https://agenticprime.ai/issues/agentic-coding-healthcare-saas/
1•tosh•37m ago•0 comments

Flight Planning with Little Navmap

https://tech.marksblogg.com/little-navmap-flight-planning.html
1•marklit•39m ago•0 comments

Uruky – The Paid European Search Engine

https://robheghan.prose.sh/26_06_30_uruky
1•birdculture•41m ago•0 comments

Curated list of academic papers using Binary Ninja

https://github.com/affinepoly/awesome-binja-papers
2•affinepoly•41m ago•0 comments

JobsNate

https://www.jobsnate.com/
1•neodynix•44m ago•0 comments

Vikram-1, India's first private orbital rocket, aces debut launch

https://www.space.com/space-exploration/launches-spacecraft/skyroot-aerospace-india-first-private...
3•porridgeraisin•48m ago•0 comments

Behind the scenes: watching media on the browser (2021)

https://asyncimpulse.com/behind-the-scenes-watching-media-on-the-browser/
1•csmantle•50m ago•0 comments

External Commentary on LLM Global Workspace Representations [pdf]

https://www-cdn.anthropic.com/files/4zrzovbb/website/cc4be2488d65e54a6ed06492f8968398ddc18ebe.pdf
1•allenleee•50m ago•0 comments

US oil firms sign deals with Iraq to develop alternative shipping routes

https://apnews.com/article/oil-iraq-pipeline-deal-582b42f21cb62cfe8dc6c8e73d1dcafa
1•geox•52m ago•0 comments

Show HN: Yapp.page, publish a webpage from a Claude or ChatGPT chat

https://yapp.page/
1•hpko•58m ago•0 comments

The Sandpaper Cover of the Return of the Durutti Column (2014)

https://daily.redbullmusicacademy.com/2014/04/return-of-the-durutti-column-feature/
2•ravetcofx•59m ago•0 comments

Find What SaaS Tools Competitors Use via Sub-Processors

https://ashishb.net/tech/sub-processors-leak-saas-stack/
8•ashishb•1h ago•0 comments

How Reddit Detects Ban Evasion – and Why a New Account Isn't Enough

https://medium.com/@thesuperrepemail/how-reddit-detects-ban-evasion-and-why-a-new-account-isnt-en...
3•rajsuper123•1h ago•0 comments

DOSBox on OpenVMS (Alpha CPU)

https://astr0baby.online/AXP/OpenVMS/DOSBOX/
1•jandeboevrie•1h ago•0 comments

Vörwatch: The VPS Monitoring Tool

https://medium.com/@vektormemory/v%C3%B6rwatch-the-vps-monitoring-tool-we-built-because-we-needed...
1•vektormemory•1h ago•0 comments