Spaces:
Running
Running
File size: 2,169 Bytes
b110593 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
// _ _
// __ _____ __ ___ ___ __ _| |_ ___
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
// \ V V / __/ (_| |\ V /| | (_| | || __/
// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
//
// Copyright © 2016 - 2024 Weaviate B.V. All rights reserved.
//
// CONTACT: [email protected]
//
package searchparams
type NearVector struct {
Vector []float32 `json:"vector"`
Certainty float64 `json:"certainty"`
Distance float64 `json:"distance"`
WithDistance bool `json:"-"`
}
type KeywordRanking struct {
Type string `json:"type"`
Properties []string `json:"properties"`
Query string `json:"query"`
AdditionalExplanations bool `json:"additionalExplanations"`
}
type WeightedSearchResult struct {
SearchParams interface{} `json:"searchParams"`
Weight float64 `json:"weight"`
Type string `json:"type"`
}
type HybridSearch struct {
SubSearches interface{} `json:"subSearches"`
Type string `json:"type"`
Alpha float64 `json:"alpha"`
Query string `json:"query"`
Vector []float32 `json:"vector"`
Properties []string `json:"properties"`
FusionAlgorithm int `json:"fusionalgorithm"`
}
type NearObject struct {
ID string `json:"id"`
Beacon string `json:"beacon"`
Certainty float64 `json:"certainty"`
Distance float64 `json:"distance"`
WithDistance bool `json:"-"`
}
type ObjectMove struct {
ID string
Beacon string
}
// ExploreMove moves an existing Search Vector closer (or further away from) a specific other search term
type ExploreMove struct {
Values []string
Force float32
Objects []ObjectMove
}
type NearTextParams struct {
Values []string
Limit int
MoveTo ExploreMove
MoveAwayFrom ExploreMove
Certainty float64
Distance float64
WithDistance bool
Network bool
Autocorrect bool
}
type GroupBy struct {
Property string
Groups int
ObjectsPerGroup int
}
|