当前位置: 首页 > news >正文

网页模板素材下载seo综合查询网站源码

网页模板素材下载,seo综合查询网站源码,类模板模板下载网站有哪些,成都龙泉建设网站一、创建集合 集合由一个或多个分区组成。在创建新集合时#xff0c;Milvus会创建一个默认分区_default 1.准备模式 需要创建的集合必须包含一个主键字段和一个向量字段。INT64和String是主键字段支持的数据类型。 首先#xff0c;准备必要的参数#xff0c;包括字段模式、…一、创建集合 集合由一个或多个分区组成。在创建新集合时Milvus会创建一个默认分区_default 1.准备模式 需要创建的集合必须包含一个主键字段和一个向量字段。INT64和String是主键字段支持的数据类型。 首先准备必要的参数包括字段模式、集合模式和集合名称。 from pymilvus import CollectionSchema, FieldSchema, DataType book_id FieldSchema(namebook_id,dtypeDataType.INT64,is_primaryTrue, ) book_name FieldSchema(namebook_name,dtypeDataType.VARCHAR,max_length200,# The default value will be used if this field is left empty during data inserts or upserts.# The data type of default_value must be the same as that specified in dtype.default_valueUnknown ) word_count FieldSchema(nameword_count,dtypeDataType.INT64,# The default value will be used if this field is left empty during data inserts or upserts.# The data type of default_value must be the same as that specified in dtype.default_value9999 ) book_intro FieldSchema(namebook_intro,dtypeDataType.FLOAT_VECTOR,dim2 ) # 集合的定义 schema CollectionSchema(fields[book_id, book_name, word_count, book_intro],descriptionTest book search,enable_dynamic_fieldTrue ) collection_name book 也可以使用预定义的模式新建集合 from pymilvus import Collection collection Collection(namecollection_name,schemaschema,usingdefault,shards_num2) 二、重命名集合 使用rename_collection方法 from pymilvus import Collection, FieldSchema, CollectionSchema, DataType, connections, utility connections.connect(aliasdefault) schema CollectionSchema(fields[ ... FieldSchema(int64, DataType.INT64, descriptionint64, is_primaryTrue), ... FieldSchema(float_vector, DataType.FLOAT_VECTOR, is_primaryFalse, dim128), ... ]) collection Collection(nameold_collection, schemaschema) utility.rename_collection(old_collection, new_collection) # Output: True utility.drop_collection(new_collection) utility.has_collection(new_collection) # Output: False 三、修改集合 主要还是修改生存时间 collection.set_properties(properties{collection.ttl.seconds: 1800})四、检查集合信息 1.检查集合是否存在 from pymilvus import utility utility.has_collection(book)2.检查集合的细节信息 from pymilvus import Collection collection Collection(book) # Get an existing collection.collection.schema # Return the schema.CollectionSchema of the collection. collection.description # Return the description of the collection. collection.name # Return the name of the collection. collection.is_empty # Return the boolean value that indicates if the collection is empty. collection.num_entities # Return the number of entities in the collection. collection.primary_field # Return the schema.FieldSchema of the primary key field. collection.partitions # Return the list[Partition] object. collection.indexes # Return the list[Index] object. collection.properties # Return the expiration time of data in the collection.3.列出索引的集合 from pymilvus import utility utility.list_collections()五、删除集合 from pymilvus import utility utility.drop_collection(book) 六、集合的别名 1.创建集合的别名 在创建集合时可以也可以如下 from pymilvus import utility utility.create_alias(collection_name book,alias publication ) 2.删除别名 from pymilvus import utility utility.drop_alias(alias publication) 3.修改别名 from pymilvus import utility utility.alter_alias(collection_name book,alias publication ) 七、加载集合 1.Milvus 中的所有搜索和查询操作都在内存中执行。 在当前版本中所有在线查询节点都将根据用户指定的副本数分为多个副本组。所有副本组都应具有最小的内存资源来加载所提供的集合的一个副本。 from pymilvus import Collection, utility# Get an existing collection. collection Collection(book) collection.load(replica_number2)# Check the loading progress and loading status utility.load_state(book) # Output: LoadState: Loadedutility.loading_progress(book) # Output: {loading_progress: 100%} 2.获取副本信息 from pymilvus import Collection collection Collection(book) # Get an existing collection. collection.load(replica_number2) # Load collection as 2 replicas result collection.get_replicas() print(result) 八、释放集合 在搜索或查询后释放集合以减少内存使用 from pymilvus import Collection collection Collection(book) # Get an existing collection. collection.release()
http://www.pierceye.com/news/599887/

相关文章:

  • 外贸网站模板制作微营销推广方案
  • 网站开发体系用node.js可以做网站吗
  • 一个vps建两个网站怎么弄数据库网络营销应用方式
  • 网站开发快递c 网站开发入门视频教程
  • 阿里巴巴国际站介绍深圳网站建设 猴王网络
  • 扬中网站建设哪家好五百丁简历官网
  • 素马设计顾问讲解价格短视频seo什么意思
  • 注册域名查询网站智慧团建网站登陆平台
  • 网站建设和搜索引擎优化技术有哪些
  • 网站创建的基本流程seo网站排名全选
  • 乐山网站公众号建设wordpress微电影模板
  • 天津专门做网站长春市网站制作
  • 怎样用php做网站英文网站建设580
  • 凡客登录入口网站优化垂直化好还是扁平化好
  • 网站诊断高端网站建设 杭州
  • 营销网站案例北京公司建设网站
  • 网站建设全域云网店美工的职责有哪些
  • seo优化网站的手段亚洲国产中文域名查询
  • 网络营销网站源码学校网站建设评审会议通知
  • 品牌网站升级创意设计椅子
  • 海口网站制作公司商标注册网上查询
  • 世界上前端做的最好的网站2345浏览器官网网址
  • 做模板网站赚钱吗网站建设需要多少内存
  • C语言网站开发pdf专科网站开发简历
  • 静态网站怎么做优化网站建设用什么软件
  • 如何建设移动端网站物联网设计
  • 赣州网站设计哪里好天河网站建设多少钱
  • 做lol直播网站设计一个公司网站多少钱
  • 电商网站 投诉百度录入网站
  • 如何做产品网站网页论坛的网站开发项目