github.com/weaviate/weaviate@v1.24.6/modules/qna-openai/dependency/dependency.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 dependency 13 14 import "github.com/weaviate/weaviate/entities/modulecapabilities" 15 16 type NearTextDependecy struct { 17 moduleName string 18 argument modulecapabilities.GraphQLArgument 19 searcher modulecapabilities.VectorForParams 20 } 21 22 func New(moduleName string, argument modulecapabilities.GraphQLArgument, 23 searcher modulecapabilities.VectorForParams, 24 ) *NearTextDependecy { 25 return &NearTextDependecy{moduleName, argument, searcher} 26 } 27 28 func (d *NearTextDependecy) Argument() string { 29 return "nearText" 30 } 31 32 func (d *NearTextDependecy) ModuleName() string { 33 return d.moduleName 34 } 35 36 func (d *NearTextDependecy) GraphQLArgument() modulecapabilities.GraphQLArgument { 37 return d.argument 38 } 39 40 func (d *NearTextDependecy) VectorSearch() modulecapabilities.VectorForParams { 41 return d.searcher 42 }