Package dev.frostlake.metastore.model
Class CortexSearchService
java.lang.Object
dev.frostlake.metastore.model.CortexSearchService
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe model Snowflake indexes with when CREATE names no EMBEDDING_MODEL. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvery column the defining query projects, in its order — what SEARCH_PREVIEW can return.The defining query, as written.getName()getOwner()voidsetComment(String comment) voidsetDatabaseName(String databaseName) voidvoidsetSchemaName(String schemaName)
-
Field Details
-
DEFAULT_EMBEDDING_MODEL
The model Snowflake indexes with when CREATE names no EMBEDDING_MODEL.- See Also:
-
-
Constructor Details
-
CortexSearchService
-
-
Method Details
-
getName
-
getDatabaseName
-
setDatabaseName
-
getSchemaName
-
setSchemaName
-
getSearchColumn
-
getAttributeColumns
-
getColumns
Every column the defining query projects, in its order — what SEARCH_PREVIEW can return. -
getWarehouse
-
getTargetLag
-
getEmbeddingModel
-
getDefinition
The defining query, as written. -
getComment
-
setComment
-
getCreatedOn
-
getOwner
-
setOwner
-