verify()
この操作は、CollectionSchema で定義された関数の入力フィールドと出力フィールドを検証します。
リクエスト構文
python
verify(
schema: CollectionSchema
)
パラメータ:
なし
戻り値の型:
なし
戻り値:
なし
例外:
-
MilvusExceptionこの操作中に何らかのエラーが発生した場合、この例外が発生します。
例
python
from pymilvus import MilvusClient, Function, FunctionType
schema = MilvusClient.create_schema()
bm25_function = Function(
name="bm25_fn",
input_field_names=["document_content"],
output_field_names="sparse_vector",
function_type=FunctionType.BM25,
)
schema.add_function(bm25_function)
# Verify the function
bm25_function.verify(schema)