fsk119 commented on code in PR #27216:
URL: https://github.com/apache/flink/pull/27216#discussion_r2510004874


##########
docs/content/docs/dev/table/sourcesSinks.md:
##########
@@ -223,6 +224,20 @@ for more information.
 The runtime implementation of a `LookupTableSource` is a `TableFunction` or 
`AsyncTableFunction`. The function
 will be called with values for the given lookup keys during runtime.
 
+#### Vector Search Table Source
+
+A `VectorSearchTableSource` searches an external storage system using an input 
vector and returns the most similar top-K rows during runtime. Users 
+can determine which algorithm to use to calculate the similarity between the 
input data and data stored in the external system. In general, most 
+vector databases support using Euclidean distance or Cosine distance to 
calculate similarity.
+
+Compared to `ScanTableSource`, a `VectorSearchTableSource` currently only 
supports emitting insert-only changes.
+
+Compared to `LookupTableSource`, a `VectorSearchTableSource` does not use 
equality to determine whether a row matches.

Review Comment:
   Currently, we don't add rules to push the filter into the vector source. In 
the future, I think we can continue adding more features.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to