From cbdcaf0714dcdd1c3880f40443d33b3d2e2d0fa6 Mon Sep 17 00:00:00 2001 From: ili16 Date: Thu, 21 Mar 2024 07:59:28 +0000 Subject: [PATCH] add default instructtype --- weaviate/weaviate_retrieval.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weaviate/weaviate_retrieval.go b/weaviate/weaviate_retrieval.go index 0ece8fe..5cc3d84 100644 --- a/weaviate/weaviate_retrieval.go +++ b/weaviate/weaviate_retrieval.go @@ -207,6 +207,10 @@ func RetrieveResponseByID(id string) (interface{}, error) { } func ResponseList(code string, instructtype string) ([]string, error) { + + if instructtype == "" { + instructtype = "*" + } responses, err := RetrieveResponsesRankDesc(code, instructtype) if err != nil { return nil, err