v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.9
LangChain.js
langchain-cloudflare
CloudflareWorkersAIEmbeddings
Class CloudflareWorkersAIEmbeddings
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.9
Loading...