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 desktop wrapper for orchestrating web design AI agents

https://github.com/swiftsellai-ssa/sticky/releases/tag/v1.0.0
1•gabriel_sstech•3m ago•0 comments

Ask HN: What do you do when your one model hits Limit?

1•ZaanCogil•3m ago•0 comments

Lies, Damn Lies and Database Benchmarks

https://questdb.com/blog/lies-damn-lies-and-database-benchmarks/
1•birdculture•5m ago•0 comments

Oracle's 21,000 layoffs help drive its debt-fueled AI investments

https://arstechnica.com/ai/2026/06/oracles-21000-layoffs-help-drive-its-debt-fueled-ai-investments/
1•joozio•7m ago•0 comments

Employee #1: Reddit (2016)

https://www.ycombinator.com/blog/chris-slowe-interview/
1•downbad_•9m ago•0 comments

World Cup 26 Goal Map– every goal, live

https://a-maherr.github.io/wc2026-goalmap/
1•theanonymousone•10m ago•0 comments

Excellent Repairability: Steam Machine Tear-Down and Accessing RAM and SSD [video]

https://www.youtube.com/watch?v=glXA3ObwSwQ
2•jrepinc•11m ago•0 comments

Segregation by Design (Urban Planning)

https://www.segregationbydesign.com
1•kristopolous•12m ago•0 comments

An interesting read about aviator callsigns

https://www.war.gov/News/Feature-Stories/Story/Article/2903882/aviator-call-signs-the-history-nam...
1•callsign_bats•12m ago•0 comments

Same-Day Shells: A Full-Chain RCE Sweep Against Cisco CUCM (CVE-2026-20230)

https://defusedcyber.com/cucm-cve-2026-20230-fullchain-sweep
1•waihtis•14m ago•0 comments

Char: Agentic Notepad

https://char.com/
2•handfuloflight•16m ago•0 comments

Agent Identity

https://claude.com/blog/agent-identity-access-model
3•shahargl•17m ago•1 comments

Show HN: Memory layer for Claude Code(+10.2 pts on SWE-bench Verified benchmark)

https://github.com/SaravananJaichandar/world-model-mcp
2•saravanan2294•18m ago•0 comments

Show HN: Tapegif – Generate terminal GIFs in seconds

https://tapegif.mimrgrowthlab.com/
3•lightyoruichi•24m ago•0 comments

Kennedy Space Center not ready for era of super heavy rockets

https://arstechnica.com/space/2026/06/report-kennedy-space-center-not-ready-for-era-of-super-heav...
2•cryptoz•24m ago•0 comments

Cisco AI Defense Skill Scanner

https://github.com/cisco-ai-defense/skill-scanner
2•chha•27m ago•0 comments

Keeping the Web Open and Private in the Bot Era

https://blog.mozilla.org/en/privacy-security/keeping-the-web-open-and-private-in-the-bot-era/
2•maxloh•27m ago•1 comments

IPv6-Only vs. IPv6-Mostly: Appropriate Use Cases

https://labs.ripe.net/author/jordipaletm/ipv6-only-vs-ipv6-mostly-appropriate-use-cases/
2•enz•32m ago•0 comments

Guadagnino's Sam Altman movie dropped by Amazon after partnership with OpenAI

https://www.theguardian.com/film/2026/jun/19/luca-guadagnino-sam-altman-movie-dropped-amazon-open...
3•theletterf•33m ago•0 comments

Lost Confidence

https://longform.asmartbear.com/confidence/
2•r4um•36m ago•1 comments

Safer Than YOLO: Auto Mode for Exec Approvals

https://openclaw.ai/blog/safer-than-yolo-auto-mode-for-exec-approvals
2•Taradisechic•39m ago•0 comments

Curl 8.21.0

https://daniel.haxx.se/blog/2026/06/24/curl-8-21-0/
4•robin_reala•41m ago•0 comments

NixOS on Xilinx Zynq and ZynqMP

https://github.com/chuangzhu/nixos-xlnx
2•joooscha•49m ago•0 comments

I built an LLM router that doesn't use an LLM

https://github.com/itsthelore/wayfinder-router
3•tcballard•52m ago•2 comments

The Problem Is Prompt Debt

https://www.dbreunig.com/2026/06/22/the-problem-is-prompt-debt.html
1•ingve•54m ago•2 comments

What data on myself I collect and why? (2020)

https://beepb00p.xyz/my-data.html
1•downbad_•54m ago•0 comments

Agents Are the New Product's Interface

https://www.hopsworks.ai/post/agents-are-your-new-product-interface
2•LexSiga•55m ago•1 comments

Ranked: Countries Spending the Most on Research and Development

https://www.visualcapitalist.com/ranked-countries-spending-most-on-r-and-d/
6•theanonymousone•59m ago•1 comments

Smart Hotel Management Software for Hotels, Resorts and Vacation Rentals

https://app.notion.com/p/Smart-Hotel-Management-Software-for-Hotels-Resorts-Vacation-Rentals-de44...
2•jackarnold•1h ago•0 comments

"Start with a Monolith" Was Good Advice. AI Is Changing That

https://medium.com/@pivotfakie/start-with-a-monolith-was-good-advice-ai-is-changing-that-a2181b8e...
3•feeblefakie•1h ago•1 comments