Browse by topic92 available tagsShow all tags
AI and WorkflowsIntermediate
Building a RAG Pipeline With pgvector and Django

Build a retrieval-augmented generation pipeline in Django with pgvector. Store embeddings, retrieve relevant content and include that context in the model request. Retrieval can improve grounding, but generated answers still need accuracy checks.

By Tai35 min158 views
DevelopmentBeginner
How to Write Idempotent Django Management Commands

Write Django management commands that can run repeatedly without duplicating work. Use existing-record checks, transactions, clear output and a dry-run option. Test repeated execution and consider database constraints for concurrent runs.

By Tai18 min222 views
DevelopmentIntermediate
How to Enforce Model-Level Validation in Django Using clean()

Define Django model business rules with clean(), report field-specific errors and call full_clean() in the appropriate application paths. Compare form/admin validation with direct saves. save(), bulk updates and database writes do not automatically enforce every model rule.

By Tai22 min188 views