@salesforce/lds-adapters-service-einsteinllm 1.296.0 → 1.297.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/service-einsteinllm.js +510 -7
- package/dist/es/es2018/types/src/generated/adapters/createEmbeddings.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/postEinsteinLlmEmbeddings.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmEmbeddingItemRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmEmbeddingsInputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmEmbeddingsRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmEmbeddingsWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinLlmGenerationItemRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/EinsteinPromptTemplateGenerationsInputRepresentation.d.ts +4 -1
- package/package.json +6 -5
- package/sfdc/index.js +527 -10
- package/src/raml/api.raml +102 -0
- package/src/raml/luvio.raml +8 -0
package/src/raml/api.raml
CHANGED
|
@@ -91,6 +91,86 @@ types:
|
|
|
91
91
|
format: double
|
|
92
92
|
type: number
|
|
93
93
|
required: false # TODO Hand-rolled W-9314597
|
|
94
|
+
EinsteinLlmEmbeddingItemRepresentation:
|
|
95
|
+
description: Output of a einstein llm embedding item response
|
|
96
|
+
type: object
|
|
97
|
+
properties:
|
|
98
|
+
embedding:
|
|
99
|
+
description: Embedding of the text
|
|
100
|
+
type: array
|
|
101
|
+
items:
|
|
102
|
+
format: double
|
|
103
|
+
type: number
|
|
104
|
+
index:
|
|
105
|
+
description: Index of the input text to which this embedding belongs
|
|
106
|
+
type: integer
|
|
107
|
+
EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation:
|
|
108
|
+
description: Input representation for additional configurations for Einstein LLM
|
|
109
|
+
generations
|
|
110
|
+
type: object
|
|
111
|
+
properties:
|
|
112
|
+
additionalParameters:
|
|
113
|
+
description: Dictionary of any other parameters that are required by the specific
|
|
114
|
+
provider. The values will be passed as is to the provider. This is to allow
|
|
115
|
+
parameters that are unique to each provider to be specified as part of the
|
|
116
|
+
request.
|
|
117
|
+
type: object
|
|
118
|
+
required: false # TODO Hand-rolled W-9314597
|
|
119
|
+
properties:
|
|
120
|
+
//:
|
|
121
|
+
type: any
|
|
122
|
+
applicationName:
|
|
123
|
+
description: 'Salesforce Einstein Application Name '
|
|
124
|
+
type: string
|
|
125
|
+
enablePiiMasking:
|
|
126
|
+
description: Whether to mask PII for this request. Defaults is provider specific.
|
|
127
|
+
type: boolean
|
|
128
|
+
required: false # TODO Hand-rolled W-9314597
|
|
129
|
+
model:
|
|
130
|
+
description: The model to be used for the generations request. Defaults to
|
|
131
|
+
provider specific model.
|
|
132
|
+
type: string
|
|
133
|
+
required: false # TODO Hand-rolled W-9314597
|
|
134
|
+
# TODO Hand-rolled W-8334626
|
|
135
|
+
# Need to manually wrap the input representation with what the aura controller is expecting
|
|
136
|
+
EinsteinLlmEmbeddingsWrapperRepresentation:
|
|
137
|
+
description: Input wrapper for embeddings representation
|
|
138
|
+
type: object
|
|
139
|
+
properties:
|
|
140
|
+
embeddingsInput:
|
|
141
|
+
description: Set the parameters for embeddings request
|
|
142
|
+
type: EinsteinLlmEmbeddingsInputRepresentation
|
|
143
|
+
EinsteinLlmEmbeddingsInputRepresentation:
|
|
144
|
+
description: Input representation for creating embedding vector with Einstein
|
|
145
|
+
LLM
|
|
146
|
+
type: object
|
|
147
|
+
properties:
|
|
148
|
+
additionalConfig:
|
|
149
|
+
description: Additional configuration to fine tune model parameters
|
|
150
|
+
type: EinsteinLlmEmbeddingsAdditionalConfigInputRepresentation
|
|
151
|
+
prompts:
|
|
152
|
+
description: Input texts to get embeddings for, encoded as an array of strings
|
|
153
|
+
type: WrappedListString
|
|
154
|
+
provider:
|
|
155
|
+
description: Provider to be used. Should be one of OpenAI|Cohere
|
|
156
|
+
type: string
|
|
157
|
+
required: false # TODO Hand-rolled W-9314597
|
|
158
|
+
EinsteinLlmEmbeddingsRepresentation:
|
|
159
|
+
description: Output of a einstein llm embeddings response
|
|
160
|
+
type: object
|
|
161
|
+
properties:
|
|
162
|
+
embeddings:
|
|
163
|
+
description: Embeddings of the text
|
|
164
|
+
type: array
|
|
165
|
+
items:
|
|
166
|
+
type: EinsteinLlmEmbeddingItemRepresentation
|
|
167
|
+
parameters:
|
|
168
|
+
description: Any provider specific attributes will be included as part of
|
|
169
|
+
this object
|
|
170
|
+
type: object
|
|
171
|
+
properties:
|
|
172
|
+
//:
|
|
173
|
+
type: any
|
|
94
174
|
# TODO Hand-rolled W-8334626
|
|
95
175
|
# Need to manually wrap the input representation with what the aura controller is expecting
|
|
96
176
|
EinsteinLlmFeedbackWrapperRepresentation:
|
|
@@ -140,6 +220,10 @@ types:
|
|
|
140
220
|
description: Generations Content Quality Representation
|
|
141
221
|
type: EinsteinLlmGenerationsContentQualityRepresentation | nil # Hand-rolled union 'nil'
|
|
142
222
|
required: false # TODO Hand-rolled W-9314597
|
|
223
|
+
isSummarized:
|
|
224
|
+
description: Flag indicating summarization was done
|
|
225
|
+
type: boolean
|
|
226
|
+
required: false # TODO Hand-rolled W-15576505
|
|
143
227
|
parameters:
|
|
144
228
|
description: Any provider specific attributes will be included as part of
|
|
145
229
|
this object
|
|
@@ -284,6 +368,10 @@ types:
|
|
|
284
368
|
description: Whether to generate prompt template preview by resolving merge
|
|
285
369
|
fields
|
|
286
370
|
type: boolean
|
|
371
|
+
outputLanguage:
|
|
372
|
+
description: Output Language
|
|
373
|
+
type: string
|
|
374
|
+
required: false # TODO Hand-rolled W-15576505
|
|
287
375
|
provider:
|
|
288
376
|
description: LLM Provider
|
|
289
377
|
type: string
|
|
@@ -404,6 +492,20 @@ types:
|
|
|
404
492
|
type: object
|
|
405
493
|
/einstein:
|
|
406
494
|
/llm:
|
|
495
|
+
/embeddings:
|
|
496
|
+
post:
|
|
497
|
+
displayName: postEinsteinLlmEmbeddings
|
|
498
|
+
description: Creates an embedding vector representing the input text.
|
|
499
|
+
responses:
|
|
500
|
+
'200':
|
|
501
|
+
description: Success
|
|
502
|
+
body:
|
|
503
|
+
application/json:
|
|
504
|
+
type: EinsteinLlmEmbeddingsRepresentation
|
|
505
|
+
body:
|
|
506
|
+
application/json:
|
|
507
|
+
type: EinsteinLlmEmbeddingsWrapperRepresentation
|
|
508
|
+
(oas-body-name): embeddingsInput
|
|
407
509
|
/feedback:
|
|
408
510
|
post:
|
|
409
511
|
displayName: postEinsteinLlmFeedback
|
package/src/raml/luvio.raml
CHANGED
|
@@ -19,6 +19,8 @@ types:
|
|
|
19
19
|
(luvio.ttl): 100
|
|
20
20
|
(luvio.key):
|
|
21
21
|
message: message
|
|
22
|
+
EinsteinLlmEmbeddingsRepresentation:
|
|
23
|
+
(luvio.ttl): 100
|
|
22
24
|
|
|
23
25
|
/einstein/llm/prompt/generations:
|
|
24
26
|
post:
|
|
@@ -34,3 +36,9 @@ types:
|
|
|
34
36
|
post:
|
|
35
37
|
(luvio.adapter):
|
|
36
38
|
name: createFeedback
|
|
39
|
+
|
|
40
|
+
/einstein/llm/embeddings:
|
|
41
|
+
post:
|
|
42
|
+
(luvio.method): get
|
|
43
|
+
(luvio.adapter):
|
|
44
|
+
name: createEmbeddings
|