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!

Show HN: Use Obsidian as a knowledge base for Claude Code

https://github.com/aneequrrehman/agent-cortex
1•aneequrrehman•52s ago•0 comments

TDD as Induction

https://blog.ploeh.dk/2026/02/23/tdd-as-induction/
1•vinhnx•1m ago•0 comments

Show HN: Slipshow, a multi-paradigm presentation tool

https://slipshow.org
1•panglesd•2m ago•0 comments

A reliable pick–– Straightforward HTML5 games

https://play2.uaaws.com/
1•TrendSpotterPro•3m ago•0 comments

Piecing Together an Ancient Epic Was Slow Work. Until A.I. Got Involved (2024)

https://www.nytimes.com/2024/08/12/books/booksupdate/ai-ancient-tablets-gilgamesh.html
1•fidotron•4m ago•0 comments

VR exam checks eye health and screens for early signs of Alzheimer's

https://health.ucdavis.edu/news/headlines/virtual-reality-exam-checks-eye-health-and-screens-for-...
1•geox•5m ago•0 comments

fitgpu: cli tool to know if a model will run on your GPU without downloading it.

https://pypi.org/project/fitgpu/
1•prashantpandeyy•5m ago•0 comments

Pockets of Humanity

https://herman.bearblog.dev/pockets-of-humanity/
1•HermanMartinus•6m ago•0 comments

Using AI to Transform Streets

https://transform-streets.vercel.app
1•rkayg•6m ago•1 comments

Foolery v0.3.0 Released

https://github.com/acartine/foolery/releases/tag/v0.3.0
1•therealcartine•7m ago•0 comments

Inkscape project struggling with lack of (active) contributors [video]

https://friprogramvarusyndikatet.tv/w/ofcCwyxiE2VSaJPBFNnZLb
2•black_puppydog•8m ago•1 comments

Termux Commands – Quick Reference – Phone Hacks

1•rocky101•8m ago•0 comments

How the LA Review of Books destroyed itself

https://nobaddaysinla.substack.com/p/how-the-la-review-of-books-destroyed
1•speckx•9m ago•0 comments

Fluxer – FOSS instant messaging and VoIP platform

https://fluxer.app
1•gessha•9m ago•0 comments

Pass the Remote: User Input on TV Devices

https://netflixtechblog.com/pass-the-remote-user-input-on-tv-devices-923f6920c9a8
1•andsoitis•10m ago•0 comments

Superhuman Acquired Rows

https://rows.com/blog/post/rows-is-joining-superhuman
2•FinnLobsien•12m ago•0 comments

Show HN: AgentReady – Drop-in proxy that cuts LLM token costs 40-60%

https://agentready.cloud/hn
2•christalingx•12m ago•1 comments

I Invented a New Metric to See If Work Is Happening

https://ksaweryskowron.substack.com/p/active-work-in-progress
1•mooreds•14m ago•0 comments

The simple rule that could stop South Africa's debt spiral

https://www.joburgetc.com/business/south-africa-fiscal-rule-avoid-financial-collapse/
1•mooreds•15m ago•0 comments

The A.I. Disruption Has Arrived, and It Sure Is Fun

https://www.nytimes.com/2026/02/18/opinion/ai-software.html
1•9woc•18m ago•0 comments

Mental Health Escalation Router

https://github.com/IAmSoThirsty/Mental-Health-Escalation-Router
1•IAmSoThirsty•19m ago•1 comments

Second Chatbot Chess Championship [video]

https://www.youtube.com/watch?v=7S8QPpeCyD8&list=PLBRObSmbZluQwBIvxyiWfm_b495AnpzDn
2•gus_massa•20m ago•1 comments

Straw Checkerboards in Zhongwei: A 70-Year Green Marvel Guiding Global Ecology

https://myglobalnews.net/china/20250814-straw-checkerboards-in-zhongwei-a-70-year-green-marvel-gu...
1•mooreds•20m ago•0 comments

Coffee Break Rhythm: Using Location Pressure as a Productivity Forcing Function

https://www.ssp.sh/brain/coffee-break-rhythm/
1•articsputnik•20m ago•0 comments

Show HN: YAML-schema-router – schemas for multi-doc Kubernetes YAML

https://github.com/traiproject/yaml-schema-router
1•drLuca•22m ago•0 comments

Digital Independence Day

https://muc.ccc.de/en/blog/2025/12/27/digital-independence-day/
1•doener•23m ago•0 comments

Managed OpenClaw hosting, 60-second provisioning

2•yixn_io•24m ago•0 comments

Ukraine's 'Kill Zone'

https://subs.ft.com/viewsubscriptions
2•mmarian•24m ago•0 comments

Everyone in AI is building the wrong thing for the same reason

https://www.joanwestenberg.com/everyone-in-ai-is-building-the-wrong-thing-for-the-same-reason/
2•tsak•24m ago•3 comments

Ask PH: Worktrees or isolated sandboxes for multi-agent AI workloads?

https://agyn.io/blog/isolated-execution-ai-engineering
3•NBenkovich•25m ago•1 comments