Skip to content

Commit

Permalink
add default instructtype
Browse files Browse the repository at this point in the history
  • Loading branch information
ili16 committed Mar 21, 2024
1 parent b5693e0 commit cbdcaf0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions weaviate/weaviate_retrieval.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbdcaf0

Please sign in to comment.