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•4mo ago

Comments

zljdanceholic•4mo 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!

You Should Be Rewriting Your Prompts

https://maxleiter.com/blog/rewrite-your-prompts
1•arrowsmith•30s ago•0 comments

The Art of the AI Prompt

https://www.art-of-the-ai-prompt.com/
1•logikblok•48s ago•0 comments

Avoid New York Law on Force Majeure

https://epic.law/avoid-new-york-law-on-force-majeure/
1•speckx•50s ago•0 comments

AI Engineering Resources

https://mmfm.bearblog.dev/ai-engineering/
1•younglin•1m ago•0 comments

Nano Banana AI Trend Explained: How to Generate Viral AI Images

https://www.revid.ai/blog/nano-banana-ai-trend-create-images
1•avinashvagh•2m ago•0 comments

Show HN: FastOpp: A Student-Friendly Starter for AI Web Apps

https://fastopp-site.fly.dev/
1•jcasman•3m ago•0 comments

Readers reply: Why are sports trophies so ugly?

https://www.theguardian.com/lifeandstyle/2025/sep/07/readers-reply-why-are-sports-trophies-so-ugly
1•PaulHoule•3m ago•0 comments

Live Pod Migration on Spot Instances

https://loopholelabs.io/blog/rethinking-spot-instances
1•loopholelabs•5m ago•0 comments

Smoke from Wildfires by Climate Change Will Fuel More Premature Deaths

https://insideclimatenews.org/news/18092025/wildfire-smoke-premature-deaths/
1•OutOfHere•6m ago•0 comments

21-Bit Encoder Technology: Precision Redefined

https://www.ark-dynamics.com/post/21-bit-encoder-technology-precision-redefined
1•Kinemaniacs•6m ago•1 comments

Clay Higgins Threatens Investigations Unless Charlie Kirk Critics Are Censored

https://clayhiggins.house.gov/2025/09/15/higgins-calls-upon-social-media-ceos-to-condemn-the-cele...
1•Improvement•7m ago•0 comments

One step closer to bringing back extinct dodo Dallas

https://www.axios.com/local/dallas/2025/09/18/one-step-closer-to-bringing-back-extinct-dodo
2•corvad•8m ago•1 comments

Migrating My Existing Elixir App to Ash Framework

https://blog.1-800-rad-dude.com/posts/2025/07-11-Migrating-my-Existing-Elixir-App-to-Ash-Framewor...
2•todsacerdoti•9m ago•0 comments

Northrop Grumman cargo ship reaches ISS after engine issue

https://abcnews.go.com/Business/wireStory/northrop-grumman-cargo-ship-reaches-international-space...
1•corvad•9m ago•0 comments

The RUM Diaries: Enabling Web Analytics by Default

https://blog.cloudflare.com/the-rum-diaries-enabling-web-analytics-by-default/
2•corvad•10m ago•0 comments

DuckLake 0.3 with Iceberg Interoperability and Geometry Support

https://ducklake.select/2025/09/17/ducklake-03/
1•szarnyasg•11m ago•0 comments

Snacking Report

https://www.ypulse.com/report/2025/09/17/snacking-report-2/
1•mooreds•12m ago•0 comments

The Notepad that knew too much: Humble text editor gets unnecessary AI infusion

https://www.theregister.com/2025/09/18/got_a_copilot_pc_now/
1•rntn•12m ago•0 comments

Book is getting banned everywhere: Guide To Amerca

https://www.guidetoamerica.info
1•bhagyash•13m ago•0 comments

Oil rig study reveals vital role of tiny hoverflies

https://phys.org/news/2025-09-oil-rig-reveals-vital-role.html
1•Brajeshwar•14m ago•0 comments

Oldest Dome-Headed Dinosaur Revealed by 'Shockingly Beautiful' Fossil

https://www.nytimes.com/2025/09/17/science/pachycephalosaurus-fossil-mongolia.html
1•Brajeshwar•14m ago•0 comments

WebGoat is a deliberately insecure application

https://github.com/WebGoat/WebGoat
1•Brajeshwar•14m ago•0 comments

Show HN: GPTShirt – Describe shirt. Wear shirt.

https://gptshirt.app
1•nliang86•14m ago•0 comments

Chaos Inside FEMA as Death Threats Distract from Hurricane Response

https://www.bloomberg.com/news/articles/2025-09-18/chaos-inside-fema-as-conspiracies-and-death-th...
5•chapulin•15m ago•0 comments

Vibe Code Transformation: More Planning, Less Building = Better Results

https://novice.media/p/vibe-code-transformation-more-planning
1•kirillzubovsky•15m ago•0 comments

Ask HN: Do you use Claude Code or Cursor slash commands?

1•alexoberneyer•16m ago•1 comments

Microservices and the Ops / Dev Ratio

https://logical.li/blog/ops-dev-ratio/
1•BinaryIgor•17m ago•0 comments

AI for Adults

https://matthewsanabria.dev/posts/ai-for-adults/
1•sebg•17m ago•0 comments

Hue and Cry

https://en.wikipedia.org/wiki/Hue_and_cry
1•n1b0m•17m ago•0 comments

The New AirPods Can Translate Languages in Your Ears. This Is Profound

https://www.nytimes.com/2025/09/18/technology/personaltech/new-airpods-language-translation-featu...
1•ingve•20m ago•1 comments