openbrain/object/vectorset_upload_test.go

13 lines
298 B
Go

package object
import "testing"
func TestUpdateVectorsetVectors(t *testing.T) {
InitConfig()
//vectorset := getVectorset("admin", "百度百科")
vectorset := getVectorset("admin", "wordVector_utf-8")
vectorset.LoadVectors("../../tmpFiles/")
UpdateVectorset(vectorset.GetId(), vectorset)
}