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!

Show HN: Real-time app-specific metrics via simple HTTP POST

1•nishimoo•1m ago•0 comments

Lessons learned from studying Fizzy test suite

https://testdrivingrails.com/blog/fizzy-test-suite
1•strzibny•2m ago•0 comments

U.S. may require Dutch travelers to share 5 yrs of social media to enter country

https://nltimes.nl/2025/12/10/us-may-require-dutch-travelers-share-5-years-social-media-enter-cou...
1•TechTechTech•3m ago•1 comments

Useful patterns for building HTML tools

https://simonwillison.net/2025/Dec/10/html-tools/
1•simonw•4m ago•0 comments

Google rolling out Android Emergency Live Video sharing

https://9to5google.com/2025/12/10/android-emergency-live-video/
1•methuselah_in•4m ago•0 comments

Why America Is Winning the Carbon Capture Race

https://oilprice.com/Energy/Energy-General/Why-America-Is-Winning-the-Carbon-Capture-Race.html
1•PaulHoule•5m ago•0 comments

DHH and Open Source

https://ma.tt/2025/12/dhh-open-source/
1•cratermoon•5m ago•0 comments

AI Turns the Firehose into a Funnel

https://www.niemanlab.org/2025/12/ai-turns-the-firehose-into-a-funnel/
1•speckx•7m ago•0 comments

I miss the old Qasar, not the new Qasar

https://qy.co/writings/newqasar/
1•stopachka•7m ago•0 comments

Streaming Comes into the Fold – IBM Confluent Acquisition Analysis

https://tomtunguz.com/ibm-confluent-acquisition-analysis/
1•nowflux•9m ago•1 comments

Campus Hook: a social directory for college students (2002)

https://www.scribd.com/document/964087828/Campus-Hook-business-plan
1•jlodwick•9m ago•1 comments

The Xonsh shell wrapped up 2024-2025 with impressive improvements

https://github.com/xonsh/xonsh
1•ananany•9m ago•1 comments

Meta shifts to closed 'Avocado' AI model trained on Alibaba's Qwen

https://www.perplexity.ai/discover/top/meta-shifts-to-closed-avocado-Yd5AUbWsQw.ACDZxeNEzOA
1•chickensong•10m ago•0 comments

Predictions for Journalism 2026

https://www.niemanlab.org/collection/predictions-2026/
1•ChrisArchitect•11m ago•0 comments

Danish Spy Agency Now Views US as a Possible Security Concern

https://www.bloomberg.com/news/articles/2025-12-10/danish-spy-agency-now-views-us-as-a-possible-s...
3•sipofwater•13m ago•1 comments

Gregg Phillips, a Proponent of Election Conspiracy Theories, to Join FEMA

https://www.nytimes.com/2025/12/10/climate/gregg-phillips-fema.html
1•quapster•13m ago•0 comments

htpy: Generate HTML in Python

https://github.com/pelme/htpy
2•cl3misch•15m ago•0 comments

Show HN: Using WebMCP to make the CDP MCP server 90% more token efficient

https://github.com/WebMCP-org/chrome-devtools-quickstart
2•miguelspizza•16m ago•0 comments

US seizes tanker near Venezuela, Trump says

https://www.bbc.com/news/live/cy07yk63x80t
8•mikhael•22m ago•5 comments

Show HN: Cargo-rail: graph-aware monorepo tooling for Rust; 11 deps

https://github.com/loadingalias/cargo-rail
2•LoadingALIAS•23m ago•1 comments

OneUptime: Open-Source Datadog Alternative

https://oneuptime.com/
1•ndhandala•24m ago•0 comments

Apple Services Experiencing Outage

https://www.apple.com/support/systemstatus/
23•rock_artist•25m ago•6 comments

I ran DOOM on the Polkadot JAM blockchain on my laptop

https://www.youtube.com/watch?v=riyYJo-CKWE
2•danicuki•27m ago•1 comments

36 months and the Australia social media ban (2024)

https://bleepitybloopity.com/posts/social-media-ban/
2•navs•27m ago•0 comments

Twitter

https://www.twitter.new/
5•frizlab•28m ago•8 comments

LMArena Is a Cancer on AI

https://surgehq.ai/blog/lmarena-is-a-plague-on-ai
2•jumploops•29m ago•0 comments

AI chatbots can sway voters with remarkable ease

https://www.nature.com/articles/d41586-025-03975-9#ref-CR1
6•marojejian•29m ago•2 comments

The first learning-disabled artist to win the UK's most prestigious art award

https://www.theguardian.com/artanddesign/2025/dec/10/nnena-kalu-turner-prize-win-interview-disabl...
1•binning•29m ago•0 comments

We mapped 121,000 videos to figure out how TikTok learns your interests

https://www.washingtonpost.com/technology/interactive/2025/tiktok-algorithm-video-map-interests/
1•reaperducer•30m ago•0 comments

Italian cooking awarded Unesco cultural heritage status

https://www.bbc.co.uk/news/articles/c80x3p331lxo
2•binning•31m ago•0 comments