You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/InferenceContext.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,13 @@
15
15
16
16
importjava.io.IOException;
17
17
18
-
// TODO: docs
18
+
/**
19
+
* Record for storing context alongside an inference request, typically used for metadata.
20
+
* This is mainly used to pass along inference context on the transport layer without relying on {@link org.elasticsearch.common.util.concurrent.ThreadContext},
21
+
* which depending on the internal {@link org.elasticsearch.client.internal.Client} throws away parts of the context, when passed along the transport layer.
22
+
*
23
+
* @param productUseCase - metadata for now mainly interesting for the Elastic Inference Service
0 commit comments