User Tools

Site Tools


vector_search

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

vector_search [2026/11/13 18:56] – FEAT-011: vector service guide and renamed similarity parameters adminvector_search [2026/11/13 18:59] (current) – FEAT-011: keep inline parameter examples copyable without smart quotes admin
Line 134: Line 134:
 ^ Task ^ Tag attributes ^ Compared data ^ ^ Task ^ Tag attributes ^ Compared data ^
 | Search by the meaning of a phrase | ''search="..." vector_search="true"'' | The phrase and gallery text | | Search by the meaning of a phrase | ''search="..." vector_search="true"'' | The phrase and gallery text |
-| Galleries with similar text | ''vector_similar_text="CURRENT_ITEM"'' | The current gallery's text and other gallery text | +| Galleries with similar text | ''vector_similar_text=CURRENT_ITEM'' | The current gallery's text and other gallery text | 
-| Galleries with similar images | ''vector_similar_gallery_id="CURRENT_ITEM"'' | The current gallery's primary thumb and indexed thumbs | +| Galleries with similar images | ''vector_similar_gallery_id=CURRENT_ITEM'' | The current gallery's primary thumb and indexed thumbs | 
-| Images similar to a specific thumb | ''vector_similar_thumb_id="123"'' | The specified thumb ID and indexed thumbs |+| Images similar to a specific thumb | ''vector_similar_thumb_id=123'' | The specified thumb ID and indexed thumbs |
  
 The former parameter names are no longer supported. Update the corresponding attributes in your templates. The former parameter names are no longer supported. Update the corresponding attributes in your templates.
Line 173: Line 173:
 </code> </code>
  
-The example uses gallery ID 1. For the current gallery, set ''vector_similar_text="CURRENT_ITEM"''. During indexing, the service already converted the gallery text into a vector and the script saved it in the local database. This search uses that existing vector without contacting the model service and excludes the source gallery from the results.+The example uses gallery ID 1. For the current gallery, set ''vector_similar_text=CURRENT_ITEM''. During indexing, the service already converted the gallery text into a vector and the script saved it in the local database. This search uses that existing vector without contacting the model service and excludes the source gallery from the results.
  
 This mode supports **Similar Gallery Tag Bonus**. It promotes candidates that share rare tags with the source gallery. Its range is 0 to 1, the default is 0.1, and 0 disables the bonus. It applies to text-based similar galleries; phrase queries and image similarity do not use it. This mode supports **Similar Gallery Tag Bonus**. It promotes candidates that share rare tags with the source gallery. Its range is 0 to 1, the default is 0.1, and 0 disables the bonus. It applies to text-based similar galleries; phrase queries and image similarity do not use it.
Line 190: Line 190:
 </code> </code>
  
-The example uses gallery ID 1. For the current gallery, set ''vector_similar_gallery_id="CURRENT_ITEM"''. During indexing, the service converts images into vectors and the script saves them in the local database. This search takes the existing vector of the primary thumb, the main group's best_thumb for the selected site, and finds similar vectors locally without calling the service.+The example uses gallery ID 1. For the current gallery, set ''vector_similar_gallery_id=CURRENT_ITEM''. During indexing, the service converts images into vectors and the script saves them in the local database. This search takes the existing vector of the primary thumb, the main group's best_thumb for the selected site, and finds similar vectors locally without calling the service.
  
 Each result displays the indexed thumb that matched the query. This can be a different frame from the gallery's usual primary thumb. The source gallery is excluded from the results. Each result displays the indexed thumb that matched the query. This can be a different frame from the gallery's usual primary thumb. The source gallery is excluded from the results.
Line 213: Line 213:
   * ''vector_similar_gallery_id=CURRENT_ITEM'' — the current gallery's primary thumb.   * ''vector_similar_gallery_id=CURRENT_ITEM'' — the current gallery's primary thumb.
   * ''vector_similar_gallery_id=123'' — the primary thumb of gallery ID 123.   * ''vector_similar_gallery_id=123'' — the primary thumb of gallery ID 123.
-  * ''vector_similar_thumb_id="123"'' — the specific thumb with ID 123.+  * ''vector_similar_thumb_id=123'' — the specific thumb with ID 123.
   * ''vector_similar_thumb_id=CURRENT_ITEM'' — the current gallery's primary thumb.   * ''vector_similar_thumb_id=CURRENT_ITEM'' — the current gallery's primary thumb.
  
vector_search.txt · Last modified: by admin