github.com/weaviate/weaviate@v1.24.6/modules/text2vec-contextionary/additional/models/models.go (about) 1 // _ _ 2 // __ _____ __ ___ ___ __ _| |_ ___ 3 // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ 4 // \ V V / __/ (_| |\ V /| | (_| | || __/ 5 // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| 6 // 7 // Copyright © 2016 - 2024 Weaviate B.V. All rights reserved. 8 // 9 // CONTACT: hello@weaviate.io 10 // 11 12 package models 13 14 type FeatureProjection struct { 15 Vector []float32 `json:"vector"` 16 } 17 18 type NearestNeighbors struct { 19 Neighbors []*NearestNeighbor `json:"neighbors"` 20 } 21 22 type NearestNeighbor struct { 23 Concept string `json:"concept,omitempty"` 24 Distance float32 `json:"distance,omitempty"` 25 Vector []float32 `json:"vector"` 26 } 27 28 type SemanticPath struct { 29 Path []*SemanticPathElement `json:"path"` 30 } 31 32 type SemanticPathElement struct { 33 Concept string `json:"concept,omitempty"` 34 DistanceToNext *float32 `json:"distanceToNext,omitempty"` 35 DistanceToPrevious *float32 `json:"distanceToPrevious,omitempty"` 36 DistanceToQuery float32 `json:"distanceToQuery,omitempty"` 37 DistanceToResult float32 `json:"distanceToResult,omitempty"` 38 } 39 40 type Interpretation struct { 41 Source []*InterpretationSource `json:"source"` 42 } 43 44 type InterpretationSource struct { 45 Concept string `json:"concept,omitempty"` 46 Occurrence uint64 `json:"occurrence,omitempty"` 47 Weight float64 `json:"weight,omitempty"` 48 }