Question 930
A PostgreSQL cosine query refuses to use a vector index created with the L2 operator class. Which lasting release or operating safeguard most directly reduces recurrence of this specific problem?
Explanation
Correct Answer
This safeguard targets recurrence after the fix: Pin the metric consistently across embeddings, index definitions and queries. It controls the exact risk in A PostgreSQL cosine query refuses to use a vector index created with the L2 operator class. The targeted engineering repair remains Rebuild the index with an operator class matching the distance operator in the query.
Incorrect Answers
The alternative addresses: ANN index creation requires a fixed supported vector dimension. The reported constraint here is different: This safeguard targets recurrence after the fix: Pin the metric consistently across embeddings, index definitions and queries. The case-specific choice is: Pin the metric consistently across embeddings, index definitions and queries.
The candidate-search breadth is too narrow for desired approximate recall. By contrast, the relevant technical condition here is: This safeguard targets recurrence after the fix: Pin the metric consistently across embeddings, index definitions and queries. The appropriate selection is: Pin the metric consistently across embeddings, index definitions and queries.
Planner statistics or filter selectivity can make an alternative scan plan cheaper. This is a separate requirement; the current case instead hinges on: This safeguard targets recurrence after the fix: Pin the metric consistently across embeddings, index definitions and queries. The matching answer is: Pin the metric consistently across embeddings, index definitions and queries.