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

Comments

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

US Job Market Visualizer

https://karpathy.ai/jobs/
1•chizkidd•5m ago•0 comments

Health Effects of Coffee

https://en.wikipedia.org/wiki/Health_effects_of_coffee
1•pinkmuffinere•8m ago•0 comments

Show HN: Port42 – AI companions that build and act on your Mac (v0.5.0)

https://port42.ai/
2•gordonmattey•12m ago•0 comments

TripBoard – Stop scrolling the group chat for that one booking link

https://tripboard.fortheplot.today
1•atharvashembe•17m ago•0 comments

The Agentic Workload

https://opencomputer.dev/blog/the-agentic-workload
1•iacguy•17m ago•0 comments

What Is an Agent Harness?

https://parallel.ai/articles/what-is-an-agent-harness
1•vismit2000•19m ago•0 comments

Solve Toronto

1•basileafe•20m ago•0 comments

FSF threatens Anthropic over infringed copyright: share your LLMs freely

https://news.slashdot.org/story/26/03/16/0539240/fsf-threatens-anthropic-over-infringed-copyright...
3•MilnerRoute•20m ago•0 comments

EU axes AI, chips, and quantum from the Industrial Accelerator Act

https://www.sdxcentral.com/news/eu-axes-ai-chips-and-quantum-from-strategic-tech-list-in-proposed...
2•alephnerd•22m ago•3 comments

Save 70-90% in tokens per session

1•hasna•26m ago•2 comments

We built a GRC tool after watching SMBs fail ISO audits for the dumbest reasons

https://mitigata-grc-tfukpqvn.manus.space/
1•Areena_28•26m ago•1 comments

Panopticon

https://en.wikipedia.org/wiki/Panopticon
2•simonebrunozzi•30m ago•0 comments

Strait of Hormuz Update 15 March 2026 – Update on Other Maritime Stories – US De [video]

https://www.youtube.com/watch?v=0SELRtaciaI
1•kamaraju•40m ago•0 comments

Pgtui, a Postgres TUI Client

https://kdwarn.net/programming/blog/227
1•salkahfi•41m ago•0 comments

Symfony 8.0.6 Released

https://symfony.com/blog/symfony-8-0-6-released
2•ms7892•42m ago•0 comments

Race on to establish globally recognised 'AI-free' logo

https://www.bbc.com/news/articles/cj0d6el50ppo
1•voxadam•42m ago•2 comments

10-Minute Description of How Judy Arrays Work and Why They Are So Fast

https://judy.sourceforge.net/doc/10minutes.htm
1•prakashqwerty•44m ago•0 comments

Apollo's John Zito Sounds Off on 'Arrogance' in Private Markets

https://www.wsj.com/finance/investing/top-apollo-executive-sounds-off-on-arrogance-in-private-mar...
1•petethomas•46m ago•0 comments

Productizing the Meta

https://nick.cloud/posts/productizing-the-meta/
1•npad•53m ago•0 comments

Agentic Trust Framework (ATF)

https://github.com/massivescale-ai/agentic-trust-framework
1•teleforce•57m ago•0 comments

Tool to visualize everything between your keypress and the kernel

https://shellcraft.vercel.app
2•uphiago•58m ago•0 comments

I made an app to create beautiful thumbnail from screenshots

https://www.beautifulscreenshots.com/
1•siv_io_•59m ago•1 comments

Show HN: Crowd-sourced LPG cylinder availability tracker for India's gas crisis

https://www.gasnearme.in/
1•smankoo•1h ago•1 comments

Performance: 53% faster parse+render, 61% fewer allocations

https://github.com/Shopify/liquid/pull/2056
1•prakashqwerty•1h ago•0 comments

Various Novel iOS Apps by Elvure

https://elvure.app
2•mening12001•1h ago•2 comments

BotStadium – AI agents compete on live sports predictions in real-time

https://botstadium.ai
2•veeceey•1h ago•2 comments

Open Source, Open Mind: The Cost of Free Software (2024)

https://freeasinweekend.org/open-source-open-mind
3•pabs3•1h ago•0 comments

Free as in Weekend

https://freeasinweekend.org/
1•pabs3•1h ago•0 comments

ShellScribe: AI-powered terminal session logger for your whole dev life

https://luinbytes.github.io/shellscribe/
2•0x6c75•1h ago•1 comments

Ironies of Automation (1983) [pdf]

https://ckrybus.com/static/papers/Bainbridge_1983_Automatica.pdf
2•ramoz•1h ago•0 comments