Embeddings and vector search
Embeddings map content to vectors; vector search ranks items by similarity or distance.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 2977–2988 of 3610 questions
Embeddings map content to vectors; vector search ranks items by similarity or distance.
Chunking splits source documents into retrievable pieces; size and overlap affect retrieval precision and context.
Evaluate correctness, groundedness, relevance, latency, cost, refusal behavior, and security on representative cases.
Use timeouts, bounded retries, rate limits, token budgets, usage monitoring, and fallbacks.
An agent proposes tool calls to accomplish tasks; the application validates arguments and permissions before execution.
Use allowlists, strict schemas, authorization, scoped credentials, timeouts, audit logs, and confirmation for consequent…
SQL injection occurs when untrusted input changes query structure; parameters keep values separate from SQL syntax.
argparse defines typed command-line options and help text.
Measure before optimizing; timeit benchmarks snippets and cProfile helps find program hotspots.
Generators, chunked processing, and avoiding unnecessary copies reduce memory pressure.
Use timezone-aware timestamps for real-world events; normalize to UTC for storage and convert for display.
In standard CPython, the GIL limits simultaneous Python-bytecode execution by threads; I/O can overlap, while CPU work m…