We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70b54d2 commit fd28206Copy full SHA for fd28206
tinybird/endpoints/llm_messages.pipe
@@ -7,7 +7,7 @@ NODE llm_messages_node
7
SQL >
8
%
9
{% if defined(embedding) %}
10
- with if(length(embedding) == 0, 1, cosineDistance(embedding, {{ Array(embedding, 'Float32') }})) as _similarity
+ with if(length(embedding) <= 384, 1, cosineDistance(embedding, {{ Array(embedding, 'Float32') }})) as _similarity
11
{% end %}
12
SELECT
13
timestamp,
0 commit comments