This repository demonstrates two different approaches to building an agentic Retrieval-Augmented Generation (RAG) system focused on Pydantic AI documentation:
- Pydantic AI Implementation: A Python-based implementation using Pydantic AI framework
- n8n Implementation: A workflow-based implementation using n8n and Crawl4AI
Both implementations achieve the same goal: creating an AI assistant that can answer questions about Pydantic AI by retrieving information from its documentation.
/paydanti-ai-version
: Python-based implementation using Pydantic AI framework/n8n-version
: Workflow-based implementation using n8n
These implementations represent two fundamentally different approaches to building AI systems:
Feature | Pydantic AI Approach | n8n Approach |
---|---|---|
Development paradigm | Code-first | Visual workflow |
Language | Python | JSON workflow definition |
Learning curve | Python knowledge required | Visual interface, less coding |
Customization | Highly customizable | Limited to available nodes |
Deployment | Standard Python deployment | n8n server required |
Web crawling | Using Crawl4AI library | Using Crawl4AI service |
Database | Supabase vector database | Supabase vector database |
See detailed instructions in the pydantic-ai-version README.
See detailed instructions in the n8n-version README.
For a more detailed comparison between these two approaches, check out my Medium article read me.
This project is licensed under the MIT License - see the LICENSE file for details.