()
| 709 | } |
| 710 | |
| 711 | func 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 | |
| 752 | func zooAnimalSchemaForTest() schema.Schema { |
| 753 | return schema.Schema{ |
no test coverage detected
searching dependent graphs…