v0.3
v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js
LangChain.js
@langchain/openai
OpenAIClient
Embeddings
Class Embeddings
Hierarchy
APIResource
Embeddings
Index
Constructors
constructor
Methods
create
Constructors
constructor
new
Embeddings
(
client
)
:
OpenAIClient
.
Embeddings
Parameters
client
:
OpenAI
Returns
OpenAIClient
.
Embeddings
Methods
create
create
(
body
,
options
?
)
:
APIPromise
<
CreateEmbeddingResponse
>
Creates an embedding vector representing the input text.
Parameters
body
:
EmbeddingCreateParams
Optional
options
:
RequestOptions
<
unknown
>
Returns
APIPromise
<
CreateEmbeddingResponse
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
create
LangChain.js
Loading...
Creates an embedding vector representing the input text.