Skip to content

Commit

Permalink
fix wildcard matches in weaviate filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ili16 committed Mar 21, 2024
1 parent cbdcaf0 commit 0476250
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions weaviate/weaviate_retrieval.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,6 @@ 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 Expand Up @@ -415,7 +412,7 @@ func RetrieveResponsesRankDesc(code string, instructType string) (*models.GraphQ
WithValueText(code),
filters.Where().
WithPath([]string{"instructType"}).
WithOperator(filters.Equal).
WithOperator(filters.Like).
WithValueText(instructType),
})

Expand Down

0 comments on commit 0476250

Please sign in to comment.