frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•10mo ago

Comments

zljdanceholic•10mo 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!

Study finds that we could lose science if publishers go bankrupt (2024)

https://arstechnica.com/science/2024/03/study-finds-that-we-could-lose-science-if-publishers-go-b...
1•jruohonen•45s ago•1 comments

Systemd's New Feature Brings Age Verification Option to Linux

https://itsfoss.com/news/systemd-age-verification/
1•pera•5m ago•0 comments

I built a trend tracker that scans GitHub, HN, YC, SO, OpenAlex, and SEC filings

https://inqvey.com/trends
1•yarasheff•7m ago•0 comments

I built a tool that visualises GitHub repos as dependency graphs

https://github.com/lucyb0207/CodeAtlas
1•lucyb0207•9m ago•1 comments

Show HN: Agent skills for generating structured visuals with MotionCanvas

https://github.com/VideoZero/skills
1•prathje•13m ago•0 comments

FTC Should Develop Privacy-Protective Age Assurance Standards

https://epic.org/press-release-ftc-should-develop-privacy-protective-age-assurance-standards-lead...
1•geox•16m ago•0 comments

Molly holzschlag – 30 years of blog

https://mollyholzschlag.com/
1•vietyork•23m ago•0 comments

Musk found liable to Twitter shareholders in fraud lawsuit over $44B takeover

https://www.reuters.com/sustainability/boards-policy-regulation/musk-found-liable-twitter-shareho...
1•gostsamo•27m ago•0 comments

What AI augmentation means for technical leaders – Birgitta Boeckeler

https://www.youtube.com/watch?v=qB7rsbDfmQg
1•mcp_•27m ago•0 comments

A Markdown textfile based Kanban board in a single HTML file

https://github.com/chr15m/kanban-todo
2•chr15m•29m ago•2 comments

The easiest way to make the world smarter [video][30m]

https://www.youtube.com/watch?v=XRcwwZXJ8gk
1•Bender•31m ago•0 comments

NPM Visual Manager – a visual dependency manager for VS Code

https://github.com/luisssc/npm-visual-manager
1•luicc•33m ago•0 comments

I'm Sorry Did You Say Street Magic

https://en.wikipedia.org/wiki/I%27m_Sorry_Did_You_Say_Street_Magic
2•doener•34m ago•1 comments

Atuin v18.13 – better search, a PTY proxy, and AI for your shell

https://blog.atuin.sh/atuin-v18-13/
5•cenanozen•42m ago•0 comments

AI Slop Is Infiltrating Online Children's Content

https://undark.org/2026/03/20/ai-slop-children/
4•jruohonen•43m ago•0 comments

Tech Interview guide – the test without tests

http://opentranscripts.org/wp-content/uploads/2016/12/allison-parrish-programming-forgetting-04.png
1•anong1•47m ago•0 comments

Big Win for Open Source as Germany Backs Open Document Format

https://itsfoss.com/news/germany-digital-stack-mandate/
4•giuliomagnifico•47m ago•1 comments

Apple: Accelerate your machine learning workloads with the M5 and A19 GPUs

https://www.youtube.com/watch?v=wgJX1HndGl0
3•de_aztec•48m ago•0 comments

Etel-Tuning

https://etel-tuning.com/
2•mqus•50m ago•0 comments

I benchmarked managed Kubernetes across 31 EU providers – here's what I found

https://www.eucloudcost.com/blog/building-eucloudcost/
1•mixxor•53m ago•0 comments

Show HN: YoloAI: A sandbox and diff/apply workflow your agent can't escape

https://yoloai.dev/posts/the-only-sandbox-claude-cant-escape/
1•kstenerud•56m ago•0 comments

Show HN: World Time TUI

https://github.com/aleris/woti
1•realaleris149•1h ago•0 comments

Internet course on circuit theory using TINA

https://www.tina.com/free-dc-ac-course/
1•teleforce•1h ago•0 comments

Pydantic-Deep: Production Deep Agents for Pydantic AI – Vstorm

https://pydantic.dev/articles/pydantic-deep-agents
1•rbanffy•1h ago•0 comments

Show HN: Shareaslot Is a Doodle Alternative

https://shareaslot.com/
1•theill•1h ago•0 comments

Study: An AI decoded the rules of an ancient board game

https://news.flinders.edu.au/blog/2026/03/21/ai-sheds-light-on-an-ancient-gaming-mystery/
1•giuliomagnifico•1h ago•0 comments

Show HN: Live-Typing Chat

https://kraa.io/kraa/trees
2•levmiseri•1h ago•0 comments

Microscope (Role-Playing Game)

https://en.wikipedia.org/wiki/Microscope_(role-playing_game)
1•doener•1h ago•0 comments

SoftBank planning $500B data center in Ohio

https://www.japantimes.co.jp/business/2026/03/21/companies/softbank-ohio-data-center/
2•shrike•1h ago•1 comments

Hallucinated References: Five Excuses for Academic Misconduct

https://dorotheabaur.ch/en/texts-and-media/hallucinated-references-five-excuses-for-academic-misc...
2•jruohonen•1h ago•1 comments