#ai

75 snippets tagged with #ai

typescriptbeginner

Claude Messages API (Anthropic SDK)

Send messages to Claude using the official Anthropic SDK with system prompt and user turn.

Best for: AI assistant

#anthropic#claude
typescriptbeginner

DALL·E 3 Image Generation

Generate images from a text prompt using the OpenAI DALL·E 3 API and return a URL.

Best for: AI art generation

#openai#dall-e
typescriptbeginner

Content Moderation with OpenAI

Check user input for harmful content using the OpenAI Moderation API before processing.

Best for: user input safety

#openai#moderation
typescriptintermediate

Next.js AI Streaming Route Handler

Stream OpenAI responses from a Next.js App Router route handler using the Vercel AI SDK.

Best for: AI chatbot backend

#nextjs#openai
typescriptadvanced

RAG Pipeline Implementation

Build a retrieval-augmented generation pipeline that grounds LLM answers in your own documents.

Best for: Grounding LLM answers in private documents

#ai#rag
pythonadvanced

Build a RAG Pipeline with LangChain

Implement retrieval-augmented generation using LangChain, embeddings, and a vector store.

Best for: Knowledge base Q&A

#ai#langchain
pythonintermediate

OpenAI Structured Output with Pydantic

Force GPT to return validated JSON matching a Pydantic schema.

Best for: Review analysis

#ai#openai
pythonbeginner

Prompt Template Engineering Patterns

Design reusable, parameterized prompt templates for consistent LLM outputs.

Best for: Consistent LLM outputs

#ai#prompt-engineering
pythonintermediate

Semantic Similarity Search with Embeddings

Compute and compare text embeddings for semantic search and matching.

Best for: Semantic search

#ai#embeddings
pythonintermediate

Text Classification with Hugging Face

Fine-tune or use pre-trained Hugging Face models for text classification.

Best for: Sentiment analysis

#ai#huggingface
pythonintermediate

OpenAI Function Calling / Tool Use

Let GPT call your functions by defining tool schemas and handling responses.

Best for: AI agents

#ai#openai
pythonbeginner

Stream LLM Chat Responses

Stream OpenAI chat completions token-by-token for real-time UI updates.

Best for: Chat UIs

#ai#streaming
pythonbeginner

Token Counting and Cost Estimation

Count tokens accurately and estimate API costs before making LLM calls.

Best for: Budget management

#ai#tokens
pythonintermediate

Analyze Images with GPT Vision API

Send images to GPT-4o for description, analysis, and visual Q&A.

Best for: Image analysis

#ai#vision
pythonadvanced

Build a ReAct Agent Loop

Implement a reasoning-action loop for an AI agent that uses tools iteratively.

Best for: AI agents

#ai#agent
pythonadvanced

Output Guardrails for LLM Responses

Validate and sanitize LLM outputs to prevent hallucination and injection.

Best for: Safety filtering

#ai#guardrails
pythonintermediate

Batch Process Embeddings Efficiently

Process large datasets of embeddings with batching, caching, and rate limiting.

Best for: Large-scale indexing

#ai#embeddings
pythonadvanced

Prepare a Fine-Tuning Dataset for OpenAI

Format, validate, and upload training data for OpenAI model fine-tuning.

Best for: Model customization

#ai#fine-tuning
pythonintermediate

LangChain Conversation with Memory

Maintain conversation context across turns using LangChain memory modules.

Best for: Multi-turn chatbots

#ai#langchain
typescriptintermediate

Ollama Local LLM Inference

Run local LLM inference using Ollama REST API with streaming and model management.

Best for: local development

#ai#ollama
pythonintermediate

ChromaDB Vector Database Operations

Store and query vector embeddings using ChromaDB for semantic search and RAG applications.

Best for: semantic search

#ai#chromadb
typescriptadvanced

LLM Output Evaluation and Scoring

Evaluate LLM outputs programmatically with scoring rubrics for quality, relevance, and safety.

Best for: prompt testing

#ai#evaluation
typescriptintermediate

Text Chunking Strategies for RAG

Implement different text chunking strategies for RAG pipelines — fixed, recursive, and semantic.

Best for: RAG pipeline preprocessing

#ai#chunking
typescriptintermediate

OpenAI Vision API Image Analysis

Analyze images using GPT-4o vision capabilities with base64 and URL inputs.

Best for: image captioning

#ai#vision
typescriptadvanced

Anthropic Claude Tool Use Pattern

Implement tool/function calling with Claude using the Anthropic SDK for agentic workflows.

Best for: agentic workflows

#ai#anthropic
typescriptbeginner

Transformer Architecture

AI/ML technique: transformer-architecture

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Bert Embeddings

AI/ML technique: bert-embeddings

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Gpt Fine Tuning

AI/ML technique: gpt-fine-tuning

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Llama Models

AI/ML technique: llama-models

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Attention Mechanism

AI/ML technique: attention-mechanism

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Self Attention

AI/ML technique: self-attention

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Multi Head Attention

AI/ML technique: multi-head-attention

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Cross Attention

AI/ML technique: cross-attention

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Positional Encoding

AI/ML technique: positional-encoding

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Rotary Embeddings

AI/ML technique: rotary-embeddings

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Tokenization Advanced

AI/ML technique: tokenization-advanced

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Bpe Tokenizer

AI/ML technique: bpe-tokenizer

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Text Classification

AI/ML technique: text-classification

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Sentiment Analysis

AI/ML technique: sentiment-analysis

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Named Entity Recognition

AI/ML technique: named-entity-recognition

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Semantic Similarity

AI/ML technique: semantic-similarity

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Clustering Embeddings

AI/ML technique: clustering-embeddings

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Semantic Search Advanced

AI/ML technique: semantic-search-advanced

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Reranking Models

AI/ML technique: reranking-models

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Retrieval Ranking

AI/ML technique: retrieval-ranking

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Knowledge Graphs

AI/ML technique: knowledge-graphs

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Ontology Design

AI/ML technique: ontology-design

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Entity Linking

AI/ML technique: entity-linking

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Relation Extraction

AI/ML technique: relation-extraction

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Question Answering System

AI/ML technique: question-answering-system

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Open Domain Qa

AI/ML technique: open-domain-qa

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Reading Comprehension

AI/ML technique: reading-comprehension

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Multi Hop Reasoning

AI/ML technique: multi-hop-reasoning

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Machine Translation

AI/ML technique: machine-translation

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Transliteration

AI/ML technique: transliteration

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Code Generation

AI/ML technique: code-generation

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Text To Code

AI/ML technique: text-to-code

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Image Captioning

AI/ML technique: image-captioning

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Visual Qa

AI/ML technique: visual-qa

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Object Detection Models

AI/ML technique: object-detection-models

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Segmentation Models

AI/ML technique: segmentation-models

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Diffusion Models

AI/ML technique: diffusion-models

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Vae Variational

AI/ML technique: vae-variational

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Gan Generative

AI/ML technique: gan-generative

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Flow Models

AI/ML technique: flow-models

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Reinforcement Learning

AI/ML technique: reinforcement-learning

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Policy Gradient

AI/ML technique: policy-gradient

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Q Learning

AI/ML technique: q-learning

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Actor Critic

AI/ML technique: actor-critic

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Prompt Engineering

AI/ML technique: prompt-engineering

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Rag Evaluation

AI/ML technique: rag-evaluation

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Model Distillation

AI/ML technique: model-distillation

Best for: machine learning

#ai#machine-learning
typescriptadvanced

Model Quantization

AI/ML technique: model-quantization

Best for: machine learning

#ai#machine-learning
typescriptbeginner

Lora Finetuning

AI/ML technique: lora-finetuning

Best for: machine learning

#ai#machine-learning
typescriptintermediate

Vector Database Indexing

AI/ML technique: vector-database-indexing

Best for: machine learning

#ai#machine-learning