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!

15 sorting algorithms in 6 minutes (2013) [video]

https://www.youtube.com/watch?v=kPRA0W1kECg
1•akkartik•1m ago•0 comments

Stop your agent from saying it's done when it isn't

https://deepwiki.com/grainulation/bean
3•woptober•2m ago•0 comments

CodeTimeline – Visual AI-narrated history for any GitHub repo

https://github.com/Rohan5commit/codetimeline
1•rohan33332e•3m ago•1 comments

Vortex Layer Theory

https://zenodo.org/records/20806350
1•aleksy_rybicki•4m ago•0 comments

AI Code Stitcher - Agentic AI Avoidance.

1•aihatterer•4m ago•0 comments

Codex Fast mode isn't 50% faster, but still takes 2.5x usage

https://old.reddit.com/r/codex/comments/1t9p4t5/fast_mode_isnt_actually_50_faster_but_still_takes/
1•behnamoh•6m ago•1 comments

Guidance injection: reliable instructions for local LLMs

https://samihonkonen.com/posts/guidance-injection/
2•shonkone•7m ago•0 comments

Corelayer0 – Turn any OpenAPI spec into a hosted MCP server

https://corelayer0.com
1•shackdown•7m ago•0 comments

Picot: Codex style GUI for the Pi coding agent

https://github.com/shixin-guo/picot
1•gzpoffline•12m ago•0 comments

What do you think it work best Reddit vs. X

1•thepopson•18m ago•2 comments

Sam Altman Movie 'Artificial' Dropped by Amazon After OpenAI Partnership

https://variety.com/2026/film/global/luca-guadagnino-sam-altman-movie-artificial-dropped-amazon-1...
1•mgh2•18m ago•0 comments

Show HN: Zot now has model shortcuts: jump between your favorite models

https://github.com/patriceckhart/zot
3•patriceckhart•20m ago•0 comments

Bitmine, Sharplink and Joe Lubin back Ethereum R&D nonprofit

https://www.techsentiments.com/article/2026/06/22/bitmine-sharplink-and-joe-lubin-back-ethereum-r...
1•rajsuper123•21m ago•0 comments

Docker-compatible REST API on top of Apple container

https://github.com/socktainer/socktainer
2•uzyn•21m ago•0 comments

The Cheap Model Fallacy

https://twitter.com/deepwhitman/status/2067282002307612888
5•bilater•27m ago•0 comments

Unable to process: source material unavailable

https://fivetakes.news/global-minerals-supply-and-ai-infrastructure-eu-brazil-strategic-partnership
1•mmeirovich•30m ago•0 comments

Show HN: WSL Dashboard – an open-source,low-memory, high-performance GUI manager

https://github.com/owu/wsl-dashboard
3•GuardCalf•38m ago•0 comments

TIRx: An Open Compiler Stack for Evolving Frontier ML Kernels

https://tvm.apache.org/2026/06/22/tirx
1•matt_d•39m ago•0 comments

Prototyping data tools with AI, a case study: Solar and Battery Atlas

https://ember-energy.org/latest-updates/prototyping-data-tools-with-ai-a-case-study-solar-battery...
2•toomuchtodo•39m ago•1 comments

Stripe pre-launch security checklist for indie SaaS

https://github.com/galakurpi/stripe-prelaunch-security-checklist
1•jongalarraga•39m ago•0 comments

Show HN: A private pager for your AI agent loops

https://ask-a-human.ai
3•alexandroskyr•41m ago•1 comments

SeeDance 2.5 Is Stunning

https://twitter.com/Long4AI/status/2069262125776920582
4•vantareed•44m ago•0 comments

AI Wrote the Code. Nobody Knows Why It Made Those Decisions

https://brunelly.com/
4•rihabzt•48m ago•0 comments

Latexdiff online – diff two LaTeX files in the browser

https://thelatexlab.com/latexdiff-online/
1•sahiltll•48m ago•0 comments

Matrix and Quaternion FAQ

https://j3d.org/matrix_faq/matrfaq_latest.html
1•signa11•50m ago•0 comments

Who Does What? Team Topologies for the Agentic Platform

https://blog.owulveryck.info/2026/06/22/who-does-what-team-topologies-for-the-agentic-platform.html
1•owulveryck•51m ago•0 comments

Thousand-year-old ancient oak tree linked to 'Robin Hood' legend has died

https://abc7.com/story/thousand-year-old-ancient-oak-tree-tied-robin-hood-legend-has-died-wildlif...
1•ValentineC•53m ago•1 comments

Ask HN: Product idea validation made simple and streamlined

https://pmfboard.com/
1•connollystr•54m ago•1 comments

Mental Illness Does Not Cause Homelessness

https://truths-and-loves.ghost.io/mental-illness-does-not-cause-homelessness/
2•deterministic•58m ago•0 comments

The Lure of "Magic Bullets" in Reforming Schools

https://larrycuban.wordpress.com/2026/06/22/the-lure-of-magic-bullets-in-reforming-schools/
1•Tomte•59m ago•0 comments