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

Comments

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

California Political Operative Sentenced to 4 Years as Covert Agent of PRC

https://www.justice.gov/usao-cdca/pr/political-operative-sentenced-4-years-federal-prison-acting-...
1•737min•1m ago•0 comments

CEO Jensen Huang said he wants employees to stop coding

https://timesofindia.indiatimes.com/technology/tech-news/after-ceo-jensen-huang-said-he-wants-emp...
1•fraXis•1m ago•0 comments

Trump official overruled FDA scientists to reject Moderna's flu shot

https://arstechnica.com/health/2026/02/trump-official-overruled-fda-scientists-to-reject-modernas...
4•doener•3m ago•1 comments

FreeBSD: Home NAS, part 10 – monitoring with VictoriaMetrics and Grafana

https://rtfm.co.ua/en/freebsd-home-nas-part-10-monitoring-with-victoriametrics-and-grafana/
1•valyala•4m ago•0 comments

Ask HN: Best practices for AI agent safety and privacy

1•mw1•5m ago•0 comments

Ask HN: If your OpenClaw could do 1 thing it currently can't, what would it be?

1•stosssik•6m ago•0 comments

Ask HN: Fix MCP OAuth Gaps (CLI and CI Check)

https://github.com/authprobe/authprobe
1•chintant•7m ago•1 comments

The Scariest Climate Plot in the World (2023)

https://www.theclimatebrink.com/p/the-scariest-climate-plot-in-the
2•jacquesm•11m ago•0 comments

An Effect runtime visualizer that runs in the browser. Written in Effect

https://effect-viz.vercel.app
1•topheman•11m ago•1 comments

.plan Files (2020)

https://matteolandi.net/plan-files.html
1•todsacerdoti•12m ago•0 comments

Selfish AI

https://www.garfieldtech.com/blog/selfish-ai
2•mwcampbell•16m ago•0 comments

Evaluating Multilingual, Context-Aware Guardrails: A Humanitarian LLM Use Case

https://blog.mozilla.ai/evaluating-multilingual-context-aware-guardrails-evidence-from-a-humanita...
2•benbreen•17m ago•0 comments

The Ho-6 Masterclass

https://suretyinsights.com/blog/the-ho6-masterclass-everything-you-need-to-know-about-condo-insur...
1•engelo_b•18m ago•0 comments

How do founders demo real product without exposing sensitive data?

1•legitimate_key•19m ago•1 comments

Show HN: Revvly – Income operating system for freelancers (replacing 5 tools)

http://revvly.ca/
1•tlpeterson•21m ago•0 comments

Show HN: EPI – Cryptographically verifiable execution artifacts for AI agents

https://github.com/mohdibrahimaiml/epi-recorder
1•afridi_epilabs•23m ago•0 comments

In one swoop, Trump kills US greenhouse gas regulations

https://www.theverge.com/science/877371/trump-carbon-pollution-endangerment-finding-repeal-climat...
4•aaronbrethorst•24m ago•1 comments

How do you "step through" your own anxiety?

2•schneak•24m ago•2 comments

Learn Fundamentals, Not Frameworks

https://newsletter.techworld-with-milan.com/p/learn-fundamentals-not-frameworks
1•birdculture•24m ago•0 comments

Anthropic's Chief on A.I.: 'We Don't Know If the Models Are Conscious'

https://www.nytimes.com/video/opinion/100000010695648/is-claude-coding-us-into-irrelevance.html
4•jbegley•27m ago•2 comments

CCBench: How do agents perform on codebases that aren't part of training data?

https://ccbench.org/
1•rohitpaulk•27m ago•0 comments

I've built Googles LangExtract like libary on my own runtime

https://github.com/jolovicdev/sourcery
1•jolovicdev•28m ago•1 comments

Agents Shouldn't See API Keys

https://seksbot.com/blog/why-agents-shouldnt-see-api-keys/
1•stcredzero•28m ago•0 comments

Is It over for Metrics?

https://clickhouse.com/blog/is-it-over-for-metrics-in-observability
1•puppion•30m ago•0 comments

UniFi Drive 4.0

https://blog.ui.com/article/introducing-unifi-drive-4-0
1•ianrahman•31m ago•0 comments

The PaaS Graveyard: Why Platforms Keep Dying and Developers Keep Migrating

https://blog.cloud66.com/paas-graveyard-why-platforms-keep-dying
1•ksajadi•31m ago•2 comments

23 months left to escape the permanent underclass

https://escapethepermanentunderclass.com
3•andreyazimov•32m ago•1 comments

There is no AI pricing playbook. Here's what I'd do instead

https://www.solvimon.com/blog/there-is-no-ai-pricing-playbook
1•arnon•33m ago•0 comments

Discord Just Killed Anonymity

https://michael-dev-tech.github.io/Website/matrix.html
2•f0r3st•34m ago•0 comments

Md: It's now considered the LARGEST spill of wastewater in U.S. history

https://twitter.com/nova_campaigns/status/2021910025527046437
1•vinnyglennon•34m ago•1 comments