How do you version prompts?
Store prompts as versioned artifacts with a clear owner, change history, evaluation results, and rollback path.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 121–132 of 3610 questions
Store prompts as versioned artifacts with a clear owner, change history, evaluation results, and rollback path.
Structured output constrains a model response to a known shape such as JSON fields for a support ticket or product classification.
JSON Schema describes the expected structure, types, and constraints of JSON data.
Parse the response defensively, validate it against a schema, and classify failures as truncation, invalid syntax, missing fields, or semantic violations.
Constrained decoding restricts the model's next-token choices so outputs conform to a grammar or schema supported by the serving system.
Validate extracted fields using type checks, allowlists, date and numeric parsing, cross-field consistency, and domain rules.
An embedding is a numeric vector representing semantic features of text or other data.
A vector database stores embeddings and supports nearest-neighbor search, often with metadata filters and conventional indexes.
Cosine similarity measures the angle between two vectors and is often used to compare embeddings.
Chunking divides source documents into smaller units that can be embedded and retrieved independently.
Metadata can identify document, tenant, access policy, source URL, version, date, and chunk position.
RAG retrieves relevant external information and includes it in the model context before generating an answer.