v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.13
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 - v0.2.13
Loading...
Creates an embedding vector representing the input text.