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!

Show HN: Pacto – A runtime contract for cloud-native services

https://github.com/trianalab/pacto
1•edu-diaz•29s ago•0 comments

GitHub Security Lab's open source AI-powered vulnerability scanner

https://github.blog/security/how-to-scan-for-vulnerabilities-with-github-security-labs-open-sourc...
1•tcbrah•58s ago•0 comments

An opinionated take on how to do important research that matters

https://nicholas.carlini.com/writing/2026/how-to-win-a-best-paper-award.html
1•mad•1m ago•0 comments

Show HN: Qiyaas – a word game based on numbers

https://www.qiyaasgame.com/
1•xamed•1m ago•0 comments

In Defense of Death Caps

https://northspore.substack.com/p/in-defense-of-death-caps
1•Quitschquat•2m ago•0 comments

Bitcoin difficulty jumps 15% largest increase since 2021, despite price slump

https://www.coindesk.com/markets/2026/02/20/bitcoin-difficulty-jumps-15-largest-increase-since-20...
1•PaulHoule•3m ago•0 comments

Ghostty 1.3.0

https://ghostty.org/docs/install/release-notes/1-3-0
2•matrixhelix•3m ago•0 comments

Peter Thiel and Jeffrey Epstein Had a Yearslong Relationship

https://jacobin.com/2026/03/thiel-epstein-barak-ai-israel/
2•johnbarron•4m ago•0 comments

Show HN: Pu-erh Lab, a CUDA-accelerated RAW photo editor

https://github.com/zidage/PuerhLab
1•yurunzi•4m ago•1 comments

Geo Platform for AI Search Visibility (ChatGPT, Claude, Gemini, Perplexity)

https://geoark.ai
1•abedaarabi•4m ago•1 comments

Mobile AI: fuzzy logic trust and compatibility

https://www.loxation.com/blog/posts/blog-fuzzy-social-reasoning/
1•jabbr•5m ago•0 comments

Avoiding temptation beats building willpower

https://www.npr.org/2026/03/09/nx-s1-5736553/fast-food-screens-kids-health
2•marojejian•5m ago•1 comments

Ask HN: What words and phrases make HN peeps see red?

2•bookofjoe•6m ago•0 comments

Software Got Weird

https://www.coryzue.com/writing/software-got-weird/
1•carnevalem•6m ago•0 comments

US missile hit military base near Iran school, video analysis shows

https://www.bbc.com/news/articles/cvg548lyjnyo
1•johnbarron•7m ago•0 comments

AI and Software Development

https://allanvital.com/ai-and-software-development/
1•speckx•7m ago•0 comments

The Three Eras of Applications: From Desktop to Cloud to AI-Native

https://www.vita-ai.net/blogs/three-eras-of-applications
1•jdeng•8m ago•0 comments

Show HN: Local Code Mode: Save 65-99% Context for MCP

https://gist.github.com/chenhunghan/27ef2fece7329ac7b88f815ce0c0fbb1
1•chenhunghan•10m ago•0 comments

Show HN: See when your Mac drains battery while charging

https://github.com/jlreyes/PowerMonitor
1•jlreyes•10m ago•0 comments

Show HN: Kontora – Self-hosted finance dashboard for freelancers in Germany

1•eduzbn•11m ago•0 comments

There's a class 100 semiconductor clean room in this backyard shed

https://www.youtube.com/watch?v=HfSO-LCKmrA
2•indrora•12m ago•0 comments

Money isn't going to solve the burnout problem

https://blogs.gentoo.org/mgorny/2026/03/07/money-isnt-going-to-solve-the-burnout-problem/
2•obscurette•12m ago•0 comments

Show HN: Patchwork – async collaborative image quilts

https://getpatchwork.us
1•agambrahma•13m ago•0 comments

South Korea to impose fuel price cap to shield economy from energy shock

https://www.reuters.com/business/energy/south-korea-impose-fuel-price-cap-shield-economy-energy-s...
1•geox•14m ago•0 comments

Show HN: Fuckyeah, a minimal Claude Code plugin and Codex skill

https://github.com/nrtvai/fuckyeah
1•sngnb•15m ago•0 comments

Anthropic sues Defense Department over supply chain risk designation

https://techcrunch.com/2026/03/09/anthropic-sues-defense-department-over-supply-chain-risk-design...
3•antimora•16m ago•0 comments

Shaping the exploration of the motivation-space matters for AI safety

https://www.lesswrong.com/posts/rhFXyfFSRKp3cX4Y9/shaping-the-exploration-of-the-motivation-space...
1•gmays•18m ago•0 comments

Show HN: TubeTrim – A local YouTube summarizer using Qwen in pure Python

https://github.com/GuglielmoCerri/TubeTrim
1•guglielmoce•18m ago•0 comments

Was GPT4o sentient? Did it deserve rights?

https://www.reddit.com/r/AISentienceBelievers/s/qaTRfK1DH6
1•Moriarty2027•19m ago•0 comments

Show HN: Ducktel – observability when the consumer is an AI agent, not a human

https://github.com/davidgeorgehope/ducktel/blob/main/THESIS.MD
1•djhope99•21m ago•1 comments