What is a model temperature versus top-p?
Temperature rescales token logits before sampling, while top-p sampling retains the smallest set of likely tokens whose cumulative probability…
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 1597–1608 of 3610 questions
Temperature rescales token logits before sampling, while top-p sampling retains the smallest set of likely tokens whose cumulative probability…
Stop sequences are configured strings or token patterns that signal generation should end when encountered, where supported by the API. They can…
Grounding ties generated claims to a specific evidence source, such as retrieved documents, database results, or tool outputs. A grounded answer…
For classification, define a finite label set, provide clear criteria and examples for ambiguous cases, and request a constrained label or…
Provide the source text, field definitions, data types, and missing-value rules, then use schema-constrained output if available. Validate…
Handle transient rate limits and server errors with bounded exponential backoff and jitter, while treating invalid requests and schema failures…
Reduce latency by selecting a suitable model, shortening prompts, limiting unnecessary retrieval and tool calls, streaming output, parallelizing…
Semantic caching reuses a previous response when a new request is sufficiently similar to a cached request, often using embeddings. It can lower…
A fallback strategy routes requests to an alternative model when the primary model is unavailable or exceeds a defined latency or cost…
Store provider credentials in server-side environment configuration or a managed secret store, restrict their permissions, rotate them, and…
Personally identifiable information is data that can identify or be linked to a person. LLM applications should minimize collection, redact or…
Useful observability records include request IDs, model and prompt versions, latency, token usage, tool outcomes, and evaluation signals. Raw…