Skip to content

Commit

Permalink
Merge branch 'master' into indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
hv0905 committed Dec 29, 2023
2 parents a666fbc + 29342cc commit b333b04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion scripts/local_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def main(args):
for item in root.glob('**/*.*'):
counter += 1
logger.info("[{}] Indexing {}", str(counter), str(item.relative_to(root)))
if item.suffix in ['.jpg', '.png', '.jpeg', '.jfif', '.webp']:
if item.suffix in ['.jpg', '.png', '.jpeg', '.jfif', '.webp', '.gif']:
imgdata = copy_and_index(item)
if imgdata is not None:
buffer.append(imgdata)
Expand Down

0 comments on commit b333b04

Please sign in to comment.