Skip to content

Commit

Permalink
OCR filter ignore case
Browse files Browse the repository at this point in the history
  • Loading branch information
hv0905 committed Dec 29, 2023
1 parent 6c7a433 commit dec1f92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Services/vector_db_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ def getFiltersByFilterParam(filter_param: FilterParams | None) -> models.Filter

if filter_param.ocr_text is not None:
filters.append(models.FieldCondition(
key="ocr_text",
key="ocr_text_lower",
match=models.MatchText(
text=filter_param.ocr_text
text=filter_param.ocr_text.lower()
)
))

Expand Down

0 comments on commit dec1f92

Please sign in to comment.