Skip to content

Commit 6eb26af

Browse files
committed
Update magic.ai.get-context.hl
1 parent 03bb43e commit 6eb26af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/files/system/openai/magic.startup/magic.ai.get-context.hl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ select vss.distance, vss.rowid as id, ts.prompt, ts.completion, ts.uri, ts.cache
146146
ts.embeddings is not null and
147147
vss.distance < @threshold"
148148
get-value:x:@.tail
149-
.:" limit 25"
149+
.:" order by vss.distance limit 25"
150150
strings.concat
151151
.:[
152152
strings.join:x:@http.post/*/content/*/data/0/*/embedding/*

0 commit comments

Comments
 (0)