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

Comments

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

There is no psychohistory, and there never will be (2018)

https://scatter.wordpress.com/2018/02/22/there-is-no-psychohistory-and-there-never-will-be/
1•isomorph•2m ago•0 comments

Four countries to boycott Eurovision 2026 as Israel cleared to compete

https://www.theguardian.com/tv-and-radio/2025/dec/04/ireland-spain-and-the-netherlands-to-boycott...
4•JustSkyfall•3m ago•1 comments

Show HN: A collection of questions on the human experience

https://goodquestions.qzz.io/
1•tdsone3•4m ago•0 comments

Show HN: Steps.org – AI prompts for porn addiction recovery (free, no app)

https://www.steps.org
1•tiagom87•4m ago•1 comments

Netflix wins the bidding war for Warner Bros

https://www.theverge.com/news/838781/netflix-warner-bros-discover-bids-buyout
2•poniko•5m ago•0 comments

Writing our own Cheat Engine in Rust

https://lonami.dev/blog/woce-1/
1•hu3•6m ago•0 comments

Zerodha Is Down

https://zerodha.com/
1•vinyasns•6m ago•0 comments

Hike to a Hidden Gem in Galway, Ireland, on St Patrick's Bed Trail [video]

https://www.youtube.com/watch?v=lSO39uwHT-w
1•keepamovin•9m ago•0 comments

Ask HN: Which companies were caught out again or not by Cloudfare?

1•tippa123•10m ago•0 comments

We would sell books by AI, says Waterstones boss

https://www.bbc.co.uk/news/articles/cpvdkw4xgewo
1•ouked•10m ago•0 comments

Cloudflare Is Back Onine?

2•llmacpu•11m ago•0 comments

The AI will see you now

https://www.jom.media/the-ai-will-see-you-now/
1•decimalenough•13m ago•0 comments

What Is the Best Startup Accelerator for Sri Lankan Startup

1•pasindu_anuhas•13m ago•0 comments

Show HN: Banana Prompts – Curated Prompts for Nano Banana Pro

https://bananaprompts.fun/
1•zenja•14m ago•0 comments

Zoom is down (because Cloudflare)

https://www.zoom.com
1•ale42•16m ago•1 comments

Stack Overflow Is Down

https://stackoverflow.com/questions
5•nomilk•17m ago•1 comments

Kenyan court declares law banning seed sharing unconstitutional

https://apnews.com/article/kenya-seed-sharing-law-ruling-ad4df5a364299b3a9f8515c0f52d5f80
3•thunderbong•18m ago•0 comments

Render.com down – hosted servers unresponsive

https://render.com/
2•khaledg•20m ago•0 comments

npm registry down

1•arbol•20m ago•1 comments

Toyota Gazoo Racing Presents the World Premiere of the GR GT and GR GT3

https://newsroom.toyota.eu/toyota-gazoo-racing-presents-the-world-premiere-of-the-gr-gt-and-gr-gt3/
1•teleforce•21m ago•0 comments

Show HN: Internet Recipe

https://matthewquerzoli.com/#/projects/internet-recipe
1•Quiza12•21m ago•0 comments

Tell HN: Even LinkedIn is running on Cloudflare and not Azure

1•vira28•22m ago•0 comments

It's time to buy short positions for Cloudflare stocks again

3•mensoi•22m ago•1 comments

Claude is down (05 Dec '25) Cloudflare returning 500

https://claude.ai/#
1•fagnerbrack•22m ago•0 comments

Open Social (and Back to Open Web)

https://www.ssp.sh/brain/open-social/
1•articsputnik•22m ago•0 comments

Cloudflare Hosting Down

https://www.cloudflarestatus.com/?date=05-03-2025
2•glemmaPaul•23m ago•0 comments

Cloudflare is investigating issues with Cloudflare Dashboard and related APIs

https://www.cloudflarestatus.com/incidents/lfrm31y6sw9q
4•zlatkov•24m ago•0 comments

Cloudflare Down

https://dash.cloudflare.com/
4•ransom1538•24m ago•0 comments

Cloudflare Is Down Again

https://radar.cloudflare.com/outage-center
2•edweis•25m ago•0 comments

Unpkg.com Is Down

https://unpkg.com
2•CaRDiaK•25m ago•0 comments