v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.11
LangChain.js
langchain-community/embeddings/cloudflare_workersai
CloudflareWorkersAIEmbeddings
Class CloudflareWorkersAIEmbeddings
Deprecated
Install and import from "@langchain/cloudflare" instead.
Hierarchy (
view full
)
Toolkit
CloudflareWorkersAIEmbeddings
Index
Constructors
constructor
Properties
ai
batch
Size
model
model
Name
strip
New
Lines
Methods
embed
Documents
embed
Query
Constructors
constructor
new
Cloudflare
WorkersAIEmbeddings
(
fields
)
:
CloudflareWorkersAIEmbeddings
Parameters
fields
:
CloudflareWorkersAIEmbeddingsParams
Returns
CloudflareWorkersAIEmbeddings
Properties
ai
ai
:
Ai
batch
Size
batch
Size
:
number
= 50
model
model
:
string
= "@cf/baai/bge-base-en-v1.5"
model
Name
model
Name
:
string
= "@cf/baai/bge-base-en-v1.5"
strip
New
Lines
strip
New
Lines
:
boolean
= true
Methods
embed
Documents
embed
Documents
(
texts
)
:
Promise
<
number
[]
[]
>
Parameters
texts
:
string
[]
Returns
Promise
<
number
[]
[]
>
embed
Query
embed
Query
(
text
)
:
Promise
<
number
[]
>
Parameters
text
:
string
Returns
Promise
<
number
[]
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
ai
batch
Size
model
model
Name
strip
New
Lines
Methods
embed
Documents
embed
Query
LangChain.js - v0.2.11
Loading...
Deprecated
Install and import from "@langchain/cloudflare" instead.