langchain.js
Preparing search index...
@langchain/community
embeddings/ibm
WatsonxEmbeddings
Class WatsonxEmbeddings
Hierarchy (
View Summary
)
BaseDynamicToolInput
WatsonxEmbeddings
Implements
WatsonxEmbeddingsParams
WatsonxParams
Index
Constructors
constructor
Properties
max
Concurrency?
max
Retries?
model
project
Id?
service
Url
space
Id?
truncate
Input
Tokens?
version
Methods
embed
Documents
embed
Query
invocation
Params
list
Models
scope
Id
Constructors
constructor
new
WatsonxEmbeddings
(
fields
:
WatsonxInputEmbeddings
&
WatsonxAuth
,
)
:
WatsonxEmbeddings
Parameters
fields
:
WatsonxInputEmbeddings
&
WatsonxAuth
Returns
WatsonxEmbeddings
Properties
Optional
max
Concurrency
maxConcurrency
?:
number
Optional
max
Retries
maxRetries
?:
number
model
model
:
string
Optional
project
Id
projectId
?:
string
service
Url
serviceUrl
:
string
Optional
space
Id
spaceId
?:
string
Optional
truncate
Input
Tokens
truncateInputTokens
?:
number
version
version
:
string
Methods
embed
Documents
embedDocuments
(
documents
:
string
[]
)
:
Promise
<
number
[]
[]
>
Parameters
documents
:
string
[]
Returns
Promise
<
number
[]
[]
>
embed
Query
embedQuery
(
document
:
string
)
:
Promise
<
number
[]
>
Parameters
document
:
string
Returns
Promise
<
number
[]
>
invocation
Params
invocationParams
()
:
EmbeddingParameters
Returns
EmbeddingParameters
list
Models
listModels
()
:
Promise
<
any
>
Returns
Promise
<
any
>
scope
Id
scopeId
()
:
|
{
modelId
:
string
;
projectId
:
string
;
spaceId
?:
undefined
}
|
{
modelId
:
string
;
projectId
?:
undefined
;
spaceId
:
undefined
|
string
}
Returns
|
{
modelId
:
string
;
projectId
:
string
;
spaceId
?:
undefined
}
|
{
modelId
:
string
;
projectId
?:
undefined
;
spaceId
:
undefined
|
string
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
max
Concurrency
max
Retries
model
project
Id
service
Url
space
Id
truncate
Input
Tokens
version
Methods
embed
Documents
embed
Query
invocation
Params
list
Models
scope
Id
langchain.js
Loading...