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!

Anthropic Lacks Emotional Intelligence

https://www.lawfaremedia.org/article/anthropic-lacks-emotional-intelligence
1•ano-ther•45s ago•0 comments

Get notified the second Fable 5 comes back

https://fablewatch.com
1•markksantos•1m ago•0 comments

What happens if the EU loses the AI race [video]

https://www.youtube.com/watch?v=uVPoq1Svz7g
1•SpyCoder77•5m ago•0 comments

Show HN: Konxios a local first AI OS that connects LM Studio, Ollama and cloud

https://konxios.com
1•ifrosted•10m ago•0 comments

Eerie landscape of 100.000 monoliths made with fable 5(when it was available)

https://sand-morph.up.railway.app/atlas-of-quiet-monoliths
1•echohive42•12m ago•0 comments

The science behind Qantas' bet on 20-hour flights

https://www.reuters.com/business/aerospace-defense/sleep-light-science-behind-qantas-bet-20-hour-...
1•1659447091•13m ago•0 comments

Shellular: Run agents, terminals and browser DevTools from your phone

https://shellular.dev/
3•aquajet•16m ago•0 comments

GLM-5.2 vs. Claude Opus 4.8: Full Comparison

https://llm-stats.com/blog/research/glm-5-2-vs-claude-opus-4-8
3•gjvc•19m ago•0 comments

An offline earthquake monitor that detects P-waves before S-waves

https://play.google.com/store/apps/details?id=com.muhsin.mkdepremmonitor&hl=en_US
2•Muhsinkosoglu•22m ago•0 comments

How to Get Fired Using Switch Statements and Statement Expressions (2016)

https://blog.robertelder.org/switch-statements-statement-expressions/
1•downbad_•22m ago•0 comments

Show HN: Let agents send/receive SMS using your old Android phone

https://simlink.snaz.cz/
1•LukBrezina•25m ago•0 comments

HN with Pics

https://hn.is-ai-good-yet.com/
1•ilyaizen•25m ago•1 comments

Norway Says AI Ain't for Education

https://gizmodo.com/norway-says-ai-aint-for-education-2000774320
3•01-_-•28m ago•1 comments

Ask HN: What is the cutting edge research in compilers and PLT?

1•xqb64•28m ago•0 comments

Words of Conviction

https://www.propublica.org/series/911-call-analysis-forensic-science-investigation
1•ZeljkoS•28m ago•0 comments

NASA selects Eric Schmidt's rocket company for a 2028 mission to Mars

https://www.theverge.com/science/952988/nasa-relativity-space-eric-schmidt-mars
1•01-_-•28m ago•1 comments

Life After Data: the conference on de-datafication

https://www.law.georgetown.edu/privacy-technology-center/education/life-after-data-the-conference...
1•burnto•30m ago•0 comments

Antimatter Development Program – Casey Handmer's Blog

https://caseyhandmer.wordpress.com/2025/11/26/antimatter-development-program/
1•bilsbie•30m ago•0 comments

The artificial ice pyramids saving India's mountain villages

https://www.bbc.com/news/articles/c072414183go
1•Brajeshwar•33m ago•0 comments

Delete Doesn't Mean Deleted. Just Ask OpenAI

https://lindsaygross1.substack.com/p/delete-doesnt-mean-deleted-just-ask
4•rmason•36m ago•0 comments

Agentic Capital Raising What?

https://octum.ai/glossary/agentic-capital-research.html
1•stevejobs1287•37m ago•0 comments

Drudge Report for Institutional Allocators

https://www.sovguild.org/intelligence/
1•stevejobs1287•38m ago•0 comments

A free book on operating AI coding tools (no signup, source on GitHub)

https://dive.vladyslavpodoliako.com/
2•Belkins•39m ago•1 comments

EWD361: Programming as a discipline of mathematical nature [video]

https://www.youtube.com/watch?v=awYLxNV3zmA
1•akiarie•42m ago•0 comments

Testing Azure free tier with a live Juneteenth trivia competition

https://web.triviablack.com/board/juneteenth2026
3•hercules08•45m ago•0 comments

Daily AI briefing narrated by Seinfeld

https://nanloss.com/briefings/2026-06-18
2•rajap•45m ago•0 comments

Why Futhark?

https://futhark-lang.org/
1•tosh•46m ago•0 comments

Bevy 0.19 Released

https://bevy.org/news/bevy-0-19/
5•GenericCanadian•48m ago•2 comments

A startup claims it broke through a bottleneck that's holding back LLMs

https://www.technologyreview.com/2026/06/19/1139313/a-startup-claims-it-broke-through-a-bottlenec...
1•Brajeshwar•49m ago•0 comments

Protocol spec for row separated key value format

https://github.com/SymbolGroundingFramework/SGF-manifest/tree/main/rskv-spec
1•jstakelum•52m ago•1 comments