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!

New satellites from years to weeks, days, or hours

https://arstechnica.com/space/2026/06/a-us-military-exercise-in-space-got-underway-with-barely-an...
1•jonbaer•1m ago•0 comments

Please keep code descriptions simple

https://akselmo.dev/posts/please-keep-code-descriptions-simple/
1•birdculture•1m ago•0 comments

I Just Resigned

1•zuzululu•1m ago•0 comments

Show HN: Hallu – a web framework where an LLM hallucinates your app

https://github.com/alehlopeh/hallu
1•alehlopeh•1m ago•0 comments

Show HN: Apple Watch 10.6.2 Kernel R+W with Process Dumping

https://github.com/datalocaltmp/peepo
1•datalocaltmp•2m ago•0 comments

Think this open-source Flutter-native AI agent worth building?

https://github.com/anasfik/flutter_copilot
1•gwhyyy•3m ago•1 comments

Cheap USB-to-HDMI adapters are terrible, and yet useful

https://ounapuu.ee/posts/2026/06/22/usb-hdmi-adapter/
1•speckx•4m ago•0 comments

A Game Boy emulator that runs in your terminal (Rust)

https://github.com/dquigles/terminal_gameboy
1•Luvtooty•4m ago•0 comments

Swift Package Index Joins Apple

https://swiftpackageindex.com/blog/swift-package-index-joins-apple
1•JDevlieghere•4m ago•0 comments

PhoneBuddy: Training Open Models for Agentic Phone Use

https://phonebuddyai.github.io/
1•ilreb•5m ago•0 comments

Agents Declaration – Designing an Agents Orchestration Library – Part II

https://ffacu.dev/blog/arm-agent-fleet
1•ffacu•5m ago•0 comments

SharePoint Copilot Apps

https://devblogs.microsoft.com/microsoft365dev/going-beyond-text-in-microsoft-365-copilot-introdu...
1•saikatsg•6m ago•0 comments

Double stacked Indian freight trains

https://old.reddit.com/r/trains/comments/1udldj0/double_stacked_indian_freight_trains/
1•taubek•8m ago•0 comments

99% compressed, 1% on the bill: I audited 1B tokens to find out why

https://nuxs.ai/study
1•josuramos•9m ago•0 comments

Show HN: Grove – fast source insights for coding agents – via Tree-sitter

https://github.com/Entelligentsia/grove
1•bonigv•10m ago•0 comments

Oracle sheds 21,000 roles over the past year

https://www.cnbc.com/2026/06/23/oracle-ai-job-cuts-layoffs-21000.html
2•leopoldj•14m ago•0 comments

FUTO Swipe – A new swipe typing model

https://swipe.futo.tech/
3•futohq•15m ago•0 comments

Don't Trust OpenAI, "This Is Your Final Warning"

https://247wallst.com/investing/2026/06/21/dont-trust-openai-this-is-your-final-warning/
1•T-A•16m ago•0 comments

Hubble: Notepad for Agents

https://www.hubble.md/
1•handfuloflight•18m ago•0 comments

The truth about being a manager

https://sofiakodar.github.io/posts/becomingmanager/
12•adunk•19m ago•1 comments

NYC Wants to End Surveillance Pricing

https://prospect.org/2026/06/23/new-york-city-wants-to-end-surveillance-pricing/
4•h2si•20m ago•0 comments

My Steam Machine Is a 50ft HDMI Cable

https://blog.matthewbrunelle.com/my-steam-machine-is-a-50ft-hdmi-cable/
4•speckx•20m ago•0 comments

Skynet Progress Report

https://blog.dshr.org/2026/03/skynet-progress-report.html
1•jumpkick•22m ago•0 comments

A Man Has Been Drawing a Map of an Imaginary Land Since 1963

https://www.openculture.com/2026/06/this-man-has-been-drawing-a-map-of-an-imaginary-land-since-19...
2•Brajeshwar•22m ago•0 comments

Apache Grails 7.0.12 and 7.1.12

https://github.com/apache/grails-core
1•theanonymousone•23m ago•0 comments

JBang: Unleash the Power of Java

https://github.com/jbangdev/jbang
2•theanonymousone•25m ago•0 comments

New chip could help tiny robots traverse complex environments

https://news.mit.edu/2026/new-chip-could-help-tiny-robots-traverse-complex-environments-0623
2•droidjj•25m ago•0 comments

Ancient Tablets Show Markets Worked 4k Years Before Economists Explained Them

https://thedailyeconomy.org/article/ancient-clay-tablets-show-markets-worked-4000-years-before-ec...
2•NaOH•25m ago•0 comments

Over 1700 Cargill Meatpacking Workers Locked Out After Demanding Bathroom Breaks

https://sentientmedia.org/cargill-meatpacking-workers-locked-out/
2•randycupertino•26m ago•0 comments

Anthropic rolls out Claude Tag, your new agentic AI coworker in Slack

https://www.zdnet.com/article/anthropic-claude-tag-agentic-ai-coworker-slack/
1•thm•26m ago•0 comments