Skip to content

Commit 03019fc

Browse files
committed
Add context-specific Rerank implementation
1 parent 6160e3f commit 03019fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ruby_llm/context.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ def embed(*args, **kwargs, &)
1818
Embedding.embed(*args, **kwargs, context: self, &)
1919
end
2020

21+
def rank(*args, **kwargs, &)
22+
Rerank.rank(*args, **kwargs, context: self, &)
23+
end
24+
2125
def paint(*args, **kwargs, &)
2226
Image.paint(*args, **kwargs, context: self, &)
2327
end

0 commit comments

Comments
 (0)