MCPcopy
hub / github.com/weaviate/weaviate / articleSchemaForTest

Function articleSchemaForTest

usecases/objects/references_test.go:711–750  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

709}
710
711func articleSchemaForTest() schema.Schema {
712 return schema.Schema{
713 Objects: &models.Schema{
714 Classes: []*models.Class{
715 {
716 Class: "Paragraph",
717 VectorIndexConfig: hnsw.UserConfig{},
718 Properties: []*models.Property{
719 {
720 Name: "contents",
721 DataType: []string{"text"},
722 },
723 },
724 },
725 {
726 Class: "Article",
727 VectorIndexConfig: hnsw.UserConfig{},
728 Properties: []*models.Property{
729 {
730 Name: "title",
731 DataType: schema.DataTypeText.PropString(),
732 Tokenization: models.PropertyTokenizationWhitespace,
733 },
734 {
735 Name: "hasParagraphs",
736 DataType: []string{"Paragraph"},
737 },
738 },
739 Vectorizer: "ref2vec-centroid",
740 ModuleConfig: map[string]interface{}{
741 "ref2vec-centroid": map[string]interface{}{
742 "referenceProperties": []string{"hasParagraphs"},
743 "method": "mean",
744 },
745 },
746 },
747 },
748 },
749 }
750}
751
752func zooAnimalSchemaForTest() schema.Schema {
753 return schema.Schema{

Callers 2

Calls 1

PropStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…