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!

EngineAI T800: Humanoid Robot Performs Martial Arts Moves

https://scienceclock.com/engineai-t800-humanoid-robot-martial-arts/
2•notthesay•42s ago•0 comments

If AI Becomes Conscious, We Need to Know

https://www.wsj.com/opinion/if-ai-becomes-conscious-we-need-to-know-83aa61d8
1•kvee•9m ago•0 comments

Gleam: The happy holidays release 2025

https://gleam.run/news/the-happy-holidays-2025-release/
1•nateb2022•11m ago•0 comments

Ask HN: Why Do You Blog?

2•onesandofgrain•17m ago•0 comments

ARK's Aggressive Pivot: Wood Doubles Down on Tesla and Re-Enters Big Tech AI

https://www.13radar.com/guru/catherine-wood
1•EvansWilson•22m ago•1 comments

Moving Images Related to the Apollo Missions, 1967–1969

https://catalog.archives.gov/id/133360601
2•handfuloflight•26m ago•0 comments

TurboDiffusion: 100–200× Acceleration for Video Diffusion Models

https://github.com/thu-ml/TurboDiffusion
1•meander_water•27m ago•0 comments

WiFi DensePose: WiFi-based dense human pose estimation system through walls

https://github.com/ruvnet/wifi-densepose
4•nateb2022•28m ago•0 comments

Show HN: A Claude Code plugin that catch destructive Git and filesystem commands

https://github.com/kenryu42/claude-code-safety-net
1•kenryu•32m ago•0 comments

Show HN: I built a tutor that teaches only by asking questions

https://sovyr-learn.vercel.app/
1•hugholousk•44m ago•0 comments

Show HN: Fun sketch – Bring your sketches to life

https://funsketch.kigun.org/
1•mishu2•47m ago•0 comments

HUML (Human-oriented Markup Language) [video]

https://www.youtube.com/watch?v=4M_tD1N14Ao
1•manlymuppet•48m ago•0 comments

Mathematically extra-complicated Secretest Santa 2025 (suckerpinch/tom7) [video]

https://www.youtube.com/watch?v=4pG8_bWpmaE
1•tambourine_man•49m ago•0 comments

macOS Terminal – still missing the mark Apple

https://garrett.damore.org/2025/12/macos-terminal-still-missing-mark-apple.html
2•zdw•50m ago•0 comments

Make your PR process resilient to AI slop

https://www.pcloadletter.dev/blog/pr-review-ai-slop-resilience/
1•ronbenton•52m ago•0 comments

Instagram CLI – A terminal client to use social media more intentionally

https://github.com/supreme-gg-gg/instagram-cli
3•jetc•54m ago•1 comments

Golden Literal Testing in UTest 0.9.0

https://www.lihaoyi.com/post/GoldenLiteralTestinginuTest090.html
1•lihaoyi•54m ago•0 comments

The Year in Mathematics

https://www.quantamagazine.org/the-year-in-mathematics-20251218/
1•nsoonhui•55m ago•0 comments

In the world of Abundance

https://lazydevcoder.medium.com/in-the-world-of-abundance-e62c1e62f3d3
1•rammy1234•1h ago•0 comments

AiDirs

https://aidirs.best
1•ivanvolt•1h ago•0 comments

Bugs selected on Bt corn have wing shapes better suited to long distance flight

https://academic.oup.com/ee/advance-article/doi/10.1093/ee/nvaf117/8328228?login=false
3•PaulHoule•1h ago•0 comments

The changing drivers of LLM adoption

https://epochai.substack.com/p/the-changing-drivers-of-llm-adoption
1•gmays•1h ago•0 comments

Kuyan – a privacy-focused monthly net worth tracker

https://github.com/dc-shimla/kuyan
2•Sublevel2245•1h ago•1 comments

Ultimate-Linux: Userspace for Linux in Pure JavaScript

https://github.com/popovicu/ultimate-linux
2•radeeyate•1h ago•0 comments

Flying Taxis? China Has Them. and Drone Lunch Deliveries, Too

https://www.nytimes.com/interactive/2025/12/17/climate/china-hefei-clean-energy-drones-evs-robots...
1•impact_sy•1h ago•0 comments

Show HN: Built Natural Language Test Automation Tool – OpenQA

https://github.com/openqa-labs/openqa
1•gurvinderd•1h ago•0 comments

Archlinux.org is down due to DDoS

https://status.archlinux.org/
7•deevus•1h ago•1 comments

Top Data Insights and Gradient Updates of 2025

https://epoch.ai/blog/top-10-data-insights-and-gradient-updates-of-2025
1•redohmy•1h ago•1 comments

The Deep Dark Terroir of the Soul

https://aneeshsathe.com/2025/12/25/the-deep-dark-terroir-of-the-soul/
1•boredgargoyle•1h ago•0 comments

Built a podcast player for all my NotebookLM audio in one place

https://old.reddit.com/r/notebooklm/comments/1pvsuli/built_a_podcast_player_for_all_my_notebooklm/
1•trungpv1601•1h ago•0 comments