Class IndexFailure.Builder

java.lang.Object
ai.vectros.types.IndexFailure.Builder
Enclosing class:
IndexFailure

public static final class IndexFailure.Builder extends Object
  • Method Details

    • from

      public IndexFailure.Builder from(IndexFailure other)
    • code

      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.

    • code

    • message

      public IndexFailure.Builder message(Optional<String> message)

      A human-readable explanation of the failure, suitable for showing to an end user. Wording may change between releases — branch on code instead.

    • message

      public IndexFailure.Builder message(String message)
    • build

      public IndexFailure build()
    • additionalProperty

      public IndexFailure.Builder additionalProperty(String key, Object value)
    • additionalProperties

      public IndexFailure.Builder additionalProperties(Map<String,Object> additionalProperties)