Class IndexFailure

java.lang.Object
ai.vectros.types.IndexFailure

public final class IndexFailure extends Object
  • Method Details

    • getCode

      public Optional<IndexFailureCode> getCode()
      Returns:
      A stable, machine-readable reason code. Branch on this value rather than on message. SOURCE_UNAVAILABLE — the underlying item could not be loaded and may have been deleted. TEXT_INDEX_FAILED — keyword indexing failed; the content may still be findable by semantic search. EMBEDDING_FAILED — semantic indexing failed; the content may still be findable by keyword search. INDEXING_FAILED — no index leg is serving this content, so it is not findable by search at all. VECTOR_LIMIT_EXCEEDED — your vector storage limit was reached, so semantic indexing was skipped; keyword search is still serving this content. INTERNAL — an error on our side; retry, and contact support if it persists.
    • getMessage

      public Optional<String> getMessage()
      Returns:
      A human-readable explanation of the failure, suitable for showing to an end user. Wording may change between releases — branch on code instead.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static IndexFailure.Builder builder()