frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

zljdanceholic•1y 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!

Make systemd better for Podman with Quadlet (2023)

https://www.redhat.com/en/blog/quadlet-podman
1•rldjbpin•45s ago•0 comments

Show HN: Codex Sidecar – A Local macOS Companion for Codex Desktop

https://github.com/eshengsky/Codex-Sidecar
1•eshengsky•2m ago•0 comments

Show HN: I turned YouTube into a text-first experience so I could quit it

https://chromewebstore.google.com/detail/quit-youtube/miopcbpeelainechoghechmlempbeodm
1•adamgonda•3m ago•0 comments

a11yShiny: Accessibility for R Shiny Apps

https://bmbf.usercontent.opencode.de/datenlabor/a11yshiny/inst/pages/a11yshiny_blog.html
1•janderkran•15m ago•0 comments

Commodore 64 Basic for PostgreSQL

https://thombrown.blogspot.com/2026/07/load-plcbmbasic81-commodore-64-basic.html
1•hans_castorp•16m ago•0 comments

Designing Systems Series

https://yusufaytas.com/series/designing-systems
7•yusufaytas•18m ago•1 comments

Backtest to Insight: Building an Index Futures Strategy from Stock-Level Signals

https://medium.com/@DolphinDB_Inc/backtest-to-insight-building-an-index-futures-strategy-from-sto...
1•yiweileng•23m ago•0 comments

Godot says bye bye AI, bans vibe-coded contributions

https://www.theregister.com/ai-and-ml/2026/07/01/godot-says-bye-bye-ai-bans-vibe-coded-contributi...
2•taubek•25m ago•0 comments

Spyware found on phone of European Parliament member probing it

https://therecord.media/pegasus-spyware-european-parliament-pega-committee-member
4•jruohonen•26m ago•0 comments

How to Build an AI Chat Endpoint in Node.js with the Telnyx AI Assistants API

https://old.reddit.com/r/Telnyx/comments/1ukn7n3/how_to_build_an_ai_chat_endpoint_in_nodejs_with/
1•harpreetseehra•26m ago•1 comments

We Built a New Editor. Want to Try It?

https://simplenote.com/2026/07/03/we-built-a-new-editor-want-to-try-it/
1•ingve•28m ago•0 comments

Library Song

https://authorscalendar.info/
1•jruohonen•30m ago•0 comments

Rare copy of US Declaration of Independence found by volunteer in UK archives

https://www.bbc.co.uk/news/articles/cgrkl104ly5o
3•iam-TJ•31m ago•0 comments

The AI Superforecasters Are Here

https://www.astralcodexten.com/p/the-ai-superforecasters-are-here
1•Michelangelo11•32m ago•0 comments

Show HN: Scopewalker, an MCP server for codebase complexity metrics

https://github.com/timohaa/scopewalker-mcp
1•thaanpaa•33m ago•0 comments

Wordgard: The new in-browser rich-text editor from the creator of ProseMirror

https://wordgard.net/
1•indy•33m ago•0 comments

Show HN: Numbword – a daily word game where letters add up to a target

https://numbword.com/
1•celltalk•35m ago•0 comments

30-Second Cherry Trick Sleep Formula Explained

https://gamma.app/embed/30-Second-Cherry-Trick-For-Sleep-Yu-Sleep-Review-2026-tsv4bcfbd4syqwf?mod...
1•prepostseo•35m ago•0 comments

Check any website up/down Status?

https://urlwatch.io/
1•rajkverma123•38m ago•0 comments

The mathematical secrets of Barcelona's Sagrada Familia

https://mappingignorance.org/2026/06/30/sagrada-familia/
1•Gedxx•41m ago•0 comments

EU Parliament temporarily defies Chat Control

https://www.heise.de/en/news/Partial-victory-with-a-catch-EU-Parliament-temporarily-defies-chat-c...
4•donpott•41m ago•0 comments

SmrtLnks – Cheaper Bitly link shortener that routes by GEO, dynamic QR included

https://smrtlink.link/
1•ExcellentNobody•42m ago•0 comments

India asks WhatsApp to pause username feature rollout over fraud concerns

https://www.bbc.com/news/articles/ckg8e0n9l41o
2•Markoff•44m ago•0 comments

JPEG-XL Libjxl 0.12 Brings More Performance Optimizations

https://www.phoronix.com/news/JPEG-XL-libjxl-0.12
3•blurred•46m ago•0 comments

Multiple Linux tarballs return 404 on kernel.org

https://kernel.org/
2•Lwrless•52m ago•2 comments

Alibaba to ban Claude Code in workplace over alleged backdoor risks, source says

https://www.reuters.com/world/china/alibaba-ban-claude-code-workplace-over-alleged-backdoor-risks...
22•nsoonhui•52m ago•7 comments

Half-Baked Product

https://weli.dev/blog/half-baked-product/
3•weli•1h ago•1 comments

How eveRy webSite is tRacking you 24/7. SiTe STaMpS

https://medium.com/@thesuperrepemail/how-every-website-is-tracking-you-24-7-site-stamps-333e8026eaba
1•mssblogs•1h ago•0 comments

Giotto.ai: "A Swiss lab with European heart"

https://www.giotto.ai/#about
1•theanonymousone•1h ago•0 comments

ECTC 2026 Roundup, Intel, TSMC, SK Hynix, Samsung, Micron, Marvell, Lightmatter

https://newsletter.semianalysis.com/p/ectc2026
1•felixdoerp•1h ago•0 comments