Skip to content

Commit 3004d7c

Browse files
committed
wip reranker interface
# Conflicts: # server/src/main/java/org/elasticsearch/inference/InferenceService.java
1 parent 00c8286 commit 3004d7c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
package org.elasticsearch.inference;
11+
12+
public interface RerankingInferenceService {
13+
14+
/**
15+
* The reranking model's max window or an approximation of
16+
* measured in the number of words.
17+
* @return Window size in words
18+
*/
19+
int rerankerWindowSize();
20+
}

0 commit comments

Comments
 (0)