Class CortexSearchService

java.lang.Object
dev.frostlake.metastore.model.CortexSearchService

public class CortexSearchService extends Object
A Cortex search service: a named, indexed view over one text column of a query's result, queried back through SNOWFLAKE.CORTEX.SEARCH_PREVIEW.

The engine keeps the whole definition — the searched column, the attribute columns, the defining query, the refresh options — but does no embedding of its own; that belongs to the optional frostlake-ai pack, the same division the geospatial types keep with frostlake-geo. A service can therefore be created, listed, described and dropped on a bare engine, and only a SEARCH_PREVIEW against it needs the pack.

The embedding model defaults to snowflake-arctic-embed-m-v1.5, which is the model Snowflake picks when CREATE names none.

  • Field Details

    • DEFAULT_EMBEDDING_MODEL

      public static final String DEFAULT_EMBEDDING_MODEL
      The model Snowflake indexes with when CREATE names no EMBEDDING_MODEL.
      See Also:
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • getDatabaseName

      public String getDatabaseName()
    • setDatabaseName

      public void setDatabaseName(String databaseName)
    • getSchemaName

      public String getSchemaName()
    • setSchemaName

      public void setSchemaName(String schemaName)
    • getSearchColumn

      public String getSearchColumn()
    • getAttributeColumns

      public List<String> getAttributeColumns()
    • getColumns

      public List<String> getColumns()
      Every column the defining query projects, in its order — what SEARCH_PREVIEW can return.
    • getWarehouse

      public String getWarehouse()
    • getTargetLag

      public String getTargetLag()
    • getEmbeddingModel

      public String getEmbeddingModel()
    • getDefinition

      public String getDefinition()
      The defining query, as written.
    • getComment

      public String getComment()
    • setComment

      public void setComment(String comment)
    • getCreatedOn

      public LocalDateTime getCreatedOn()
    • getOwner

      public String getOwner()
    • setOwner

      public void setOwner(String owner)