Skip to content

Commit fd28206

Browse files
committed
update vs
1 parent 70b54d2 commit fd28206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tinybird/endpoints/llm_messages.pipe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NODE llm_messages_node
77
SQL >
88
%
99
{% if defined(embedding) %}
10-
with if(length(embedding) == 0, 1, cosineDistance(embedding, {{ Array(embedding, 'Float32') }})) as _similarity
10+
with if(length(embedding) <= 384, 1, cosineDistance(embedding, {{ Array(embedding, 'Float32') }})) as _similarity
1111
{% end %}
1212
SELECT
1313
timestamp,

0 commit comments

Comments
 (0)