github.com/weaviate/weaviate@v1.24.6/usecases/modulecomponents/additional/models/generative.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 // GenerateResult used in generative OpenAI module to represent 15 // the answer to a given question 16 type GenerateResult struct { 17 SingleResult *string `json:"singleResult,omitempty"` 18 GroupedResult *string `json:"groupedResult,omitempty"` 19 Error error `json:"error,omitempty"` 20 } 21 22 type GenerateResponse struct { 23 Result *string 24 }