gcui-art / album-ai

AI-First Album: Chat with your gallery using plain language! LLM Vision + RAG + Album/Gallery.
http://album.gcui.ai
Apache License 2.0
785 stars 78 forks source link

Optimize the return values of vector queries by filtering out results with low similarity scores. #5

Closed blueeon closed 3 months ago

blueeon commented 3 months ago

Is your feature request related to a problem? Please describe. The query will return images with very low relevance.

Describe the solution you'd like

  1. Filter out irrelevant images, and if there are no related images, inform that none were found.
  2. Relevance scoring can be a configuration.

Additional context For example, when searching for "shoes", the image gallery does not contain pictures of shoes, yet it still returns results.

GitPusher99 commented 3 months ago

Just now supported, but for running services, DB may need to drop and initialize.

Drop DB: rm -rf /tmp/postgres

blueeon commented 3 months ago

Test:

image