python-testing-patterns
Comprehensive testing strategies for Python using pytest, fixtures, mocking, and test-driven development.
similarity-search-patterns
Implement efficient similarity search with vector databases. Use when building semantic search, implementing nearest neighbor queries, or optimizing retrieval performance.
Full skill instructions
Patterns for implementing efficient similarity search in production systems.
| Metric | Formula | Best For | | ------------------ | ------------------ | --------------------- | --- | -------------- | | Cosine | 1 - (A·B)/(‖A‖‖B‖) | Normalized embeddings | | Euclidean (L2) | √Σ(a-b)² | Raw embeddings | | Dot Product | A·B | Magnitude matters | | Manhattan (L1) | Σ | a-b | | Sparse vectors |
┌─────────────────────────────────────────────────┐
│ Index Types │
├─────────────┬───────────────┬───────────────────┤
│ Flat │ HNSW │ IVF+PQ │
│ (Exact) │ (Graph-based) │ (Quantized) │
├─────────────┼───────────────┼───────────────────┤
│ O(n) search │ O(log n) │ O(√n) │
│ 100% recall │ ~95-99% │ ~90-95% │
│ Small data │ Medium-Large │ Very Large │
└─────────────┴───────────────┴───────────────────┘
Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.
Comprehensive testing strategies for Python using pytest, fixtures, mocking, and test-driven development.
Profile and optimize Python code using cProfile, memory profilers, and performance best practices.
Comprehensive patterns for Next.js 14+ App Router, Server Components, and modern full-stack React development.
Systematic code review practices for constructive feedback, bug detection, and team knowledge sharing.
REST and GraphQL API design principles for building scalable, developer-friendly APIs.
Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features
Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features
Production-ready FastAPI project structure with async patterns, dependency injection, and layered architecture.
Material Design 3 and Jetpack Compose patterns for building modern, adaptive Android applications.
Comprehensive guide to building reliable, maintainable end-to-end test suites with Playwright and Cypress.
Implement proven backend architecture patterns for maintainable, testable, and scalable systems.
Native iOS app design with SwiftUI, Apple HIG compliance, and adaptive layouts for iPhone and iPad.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience