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!

You can write in LLMese, but you don't have to

https://passo.uno/write-docs-llms-language/
1•eigenBasis•2m ago•0 comments

Job Hunters Are Using AI to Cheat in Interviews, and Failing at the Office

https://www.bloomberg.com/news/articles/2026-07-14/ai-tools-can-help-job-hunters-cheat-on-intervi...
2•petethomas•2m ago•0 comments

Electron isAccessibilitySupportEnabled broken when running JAWS since v34

https://github.com/electron/electron/issues/45856
1•shakna•2m ago•0 comments

How Brands Sneak in Cheaper Ingredients to Protect Their Profit Margins

https://www.bloomberg.com/news/articles/2026-07-14/from-chocolate-to-orange-juice-more-brands-sne...
1•petethomas•4m ago•0 comments

7 Questions to Custom Business Funding

https://fundingexplained.com/business-funding-quiz/
2•FE_com•7m ago•0 comments

Telstra outage blamed on known bug in obsolete server

https://ia.acs.org.au/article/2026/telstra-outage-blamed-on-known-bug-in-obsolete-server.html
2•shakna•13m ago•0 comments

We don't let the LLM decide what's clinically allowed

https://www.hamo.ai/blog/taking-the-clinical-decision-out-of-the-llm/
2•chrischengzh•14m ago•1 comments

Trust but Verify? Uncovering the Security Debt of Autonomous Coding Agents

https://arxiv.org/abs/2607.12428
1•Timofeibu•16m ago•0 comments

Xtree Fan Page

https://www.xtreefanpage.org/
2•razodactyl•17m ago•0 comments

Google and Epic stop fighting – third-party Android app stores coming next week

https://www.theverge.com/policy/965792/google-epic-withdraw-injunction-third-party-app-stores-com...
1•OuterVale•20m ago•0 comments

Show HN: I open-sourced the portal I built for a client's vibe-coded apps

https://github.com/menagerai/menagerai
1•tipani•22m ago•1 comments

Threading the AI in the UI for a personal app

https://millfolio.app/blog/millwright-ui-layers/
2•winding•24m ago•0 comments

Colombian Public School Reaches Top in Best School Prizes 2026

https://colombiaone.com/2026/07/13/colombian-public-school-reaches-top-10-in-worlds-best-school-p...
1•thunderbong•26m ago•0 comments

Poland begins construction of €2.3B deepwater port on Baltic coast

https://notesfrompoland.com/2026/07/14/poland-begins-construction-of-e2-3bn-deepwater-port-on-bal...
2•cromka•26m ago•0 comments

Is this the end of the once-mighty GoPro?

https://amateurphotographer.com/latest/photo-news/going-going-gone-is-this-the-end-of-the-once-mi...
2•aanet•31m ago•1 comments

Using One Agent Across Multiple Machines

https://syncless.ai/articles/let-syncless-across-your-environments
1•mountainview•32m ago•0 comments

The Matter of Taste(2018)

https://www.callum.website/the-matter-of-taste
2•num42•40m ago•0 comments

AgentCall – turn any coding agent into a live meeting participant

https://agentcall.dev
3•Marium_zehra•41m ago•0 comments

From Sawdust to Paw Patrol: The Spin Master Story (With Ronnen Harary) [audio]

https://www.econtalk.org/from-sawdust-to-paw-patrol-the-spin-master-story-with-ronnen-harary/
1•mooreds•42m ago•0 comments

Stripe, Advent offer to buy PayPal for more than $53B

https://www.reuters.com/business/finance/stripe-advent-offer-buy-paypal-more-than-53-billion-sour...
9•rvz•45m ago•3 comments

Atto Primo Oh God Opera Song

https://open.spotify.com/album/7DTggs1Cj2YcOmuJUWjjM4
1•mjbachhav•45m ago•0 comments

Show HN: GWZ – Git Workspace Zone (multi-repo that feels like plain Git)

2•owebeeone•48m ago•0 comments

The great flattening – article on Vorflux (launched by Rippling co-founder)

https://twitter.com/myprasanna/status/2077065557204222238
2•vardhanw•49m ago•1 comments

Sunburn Calculator

https://sunburntimer.com/
3•ckcheng•50m ago•0 comments

Make any winning ad yours

https://trykopykat.com/
2•justinbuilds•50m ago•1 comments

Our Company Was Worth $6B. We Shared Passwords over Slack

https://www.cerby.com/blog/our-company-was-worth-6-billion.-we-shared-passwords-over-slack
2•mooreds•51m ago•0 comments

Mr. Putin, where is the gas?

https://kyivindependent.com/mr-putin-where-is-the-gas/
2•dotcoma•57m ago•0 comments

Cell Just Changed Biology

https://www.youtube.com/watch?v=g9B3gBhcwqM
1•soupspaces•58m ago•0 comments

Data Showing Palantir's Positive Impact on NHS Riddled with Errors

https://novaramedia.com/2026/07/13/data-showing-palantirs-positive-impact-on-nhs-riddled-with-err...
5•notRobot•59m ago•1 comments

Mako: A Self-Evolving Agentic Operating System for Autonomous Web Exploitation

https://arxiv.org/abs/2607.11288
1•praneethn•59m ago•0 comments