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•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!

Show HN: Backup Your Perplexity Research to Markdown and Obsidian

https://chatgpt2notion.com/products/perplexity-to-obsidian/
1•chatgpt2notion•2m ago•0 comments

Show HN: Zedra – Mobile control plane for AI coding agents

1•tanlethanh•3m ago•0 comments

Why is the HN crowd so anti-AI?

1•Ekami•3m ago•0 comments

Definitive guide for creating skill.md for your tools

https://docsalot.dev/blog/what-is-skill-md
1•fazkan•9m ago•0 comments

Agent-ML-skills – Teach Codex/Claude/Cursor to stop making ML mistakes

https://github.com/param087/agent-ml-skills
1•param087•14m ago•0 comments

Show HN: Apple Contacts MCP – Local AI Access to macOS Contacts

https://github.com/lu-wo/apple-contacts-mcp
1•luwo•14m ago•0 comments

Trump Signals Interest in US Owning Stakes in Top AI Labs

https://www.bloomberg.com/news/articles/2026-06-05/us-exploring-government-partnerships-with-ai-f...
2•grassfedgeek•21m ago•2 comments

A better go file/text sharing service with single binary, inspired by microbin

https://github.com/zaaack/go-bin
1•zaaack•22m ago•0 comments

Show HN: The Deterministic Core Architecture for AI-Augmented Applications

https://brandonbellsystems.com/deterministic-core/
1•Brandon_Bell•28m ago•0 comments

Something is jamming GPS over Europe. Here's what we found (Veritasium) [video]

https://www.youtube.com/watch?v=tz23G_UXCGA
3•kordlessagain•34m ago•1 comments

Show HN: Lite Agent redefines what an AI agent is

https://liteagent.cloud
2•cheikhshift•35m ago•0 comments

Show HN: Declank – Remove AI Watermarks from Images

https://declank.skeptrune.com/
1•skeptrune•39m ago•0 comments

Bernie Sanders: A.I. Is a Public Resource. You Should Own Half of It

https://www.nytimes.com/2026/06/01/opinion/artificial-intelligence-bernie-sanders.html
6•ankitr•42m ago•2 comments

SAT-Physical Thermodynamic Framework: treating constraints as a thermal system

https://github.com/alikamp/SAT_HARDNESS_P-NP
1•kauai1•46m ago•0 comments

Tinker Cookbook

https://github.com/thinking-machines-lab/tinker-cookbook
2•dima1830•47m ago•0 comments

Why sophrosyne, an ancient Greek virtue, matters more than ever in the age of AI

https://theconversation.com/why-sophrosyne-an-ancient-greek-virtue-matters-more-than-ever-in-the-...
1•1659447091•47m ago•0 comments

Rethinking the Value of Generated Tests for LLM Software Engineering Agents

https://arxiv.org/abs/2602.07900
1•zuzululu•56m ago•0 comments

Ask HN: Will your company be doing "LeetCode" interviews a year from now?

2•locusofself•57m ago•5 comments

Show HN: Incremental SfM pipeline that reconstructs 3D point clouds from images

https://github.com/egeozgul/Incremental-3D-Reconstruction-SfM/tree/main
1•egeozgul•1h ago•0 comments

Show HN: ABC Classic 100 Rankings visualised

https://classic100.gotski.workers.dev/
15•gotski•1h ago•11 comments

Some concerns about Ladybird's bylaws

https://tuananh.net/2026/06/06/ladybird-bylaws/
3•tuananh•1h ago•3 comments

Alzheimer's patient gets back speech, bladder control and memory in drug trial

https://nypost.com/2026/06/04/health/alzheimers-patient-recovers-speech-continence-and-memory-wit...
6•virgildotcodes•1h ago•2 comments

Google will pay SpaceX $920M per month for compute capacity

https://twitter.com/JackKuhr/status/2062975800488394777
6•bear_with_me•1h ago•2 comments

Protein overabundance is driven by growth robustness

https://www.science.org/doi/10.1126/sciadv.adz9623
1•PaulHoule•1h ago•0 comments

Ask HN: Questions about HN and life questions

2•mwhite•1h ago•0 comments

Unlocking Non-Uniform KV Cache for Efficient Multi-Turn LLM Serving

https://arxiv.org/abs/2606.06302
1•johnbarron•1h ago•0 comments

Astrocytic Contributions to Cognition Across Rodent Models of Brain Dysfunction

https://www.mdpi.com/2218-273X/16/5/662
1•PaulHoule•1h ago•0 comments

Data Centers and Local Job Creation

https://michaeljhicks.substack.com/p/data-centers-and-local-job-creation
1•toomuchtodo•1h ago•1 comments

Fusion Power's Newest Problem Is People Making Nukes

https://gizmodo.com/fusion-powers-newest-problem-is-people-secretly-making-nukes-2000767859
1•johnbarron•1h ago•0 comments

Show HN: Turn your landing page into print-ready business cards

https://www.kleidoprint.com
1•13001r•1h ago•0 comments