We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c239329 commit 9e09438Copy full SHA for 9e09438
tinybird/endpoints/llm_messages.pipe
@@ -69,7 +69,7 @@ SQL >
69
AND timestamp < {{DateTime(end_date)}}
70
{% end %}
71
{% if defined(embedding) %}
72
- AND cosineDistance(embedding, {{ Array(embedding, 'Float32') }}) > {{ Float64(similarity_threshold, 0.3) }}
+ AND length(embedding) > 0 and similarity > {{ Float64(similarity_threshold, 0.3) }}
73
and response_status != 'error'
74
75
0 commit comments