milvus loading
This commit is contained in:
		@@ -66,6 +66,11 @@ func main() {
 | 
			
		||||
 | 
			
		||||
	var milvusConnection models.MilvusConnection
 | 
			
		||||
	milvusConnection.Init()
 | 
			
		||||
	err := milvusConnection.Client.LoadCollection(context.Background(), "default", false)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		log.Println("Milvus load collection failed:", err)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// 获取标签列表
 | 
			
		||||
	http.HandleFunc("/tags", func(w http.ResponseWriter, r *http.Request) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user