v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.7
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
constructor
ai
batch
Size
model
model
Name
strip
New
Lines
embed
Documents
embed
Query
LangChain.js - v0.2.7
langchain-anthropic
langchain-azure-dynamic-sessions
langchain-azure-openai
langchain-cloudflare
langchain-cohere
langchain-community
agents/toolkits
aws_sfn
base
connery
caches
cloudflare_kv
ioredis
momento
upstash_redis
callbacks/handlers
llmonitor
lunary
upstash_ratelimit
chains/graph_qa/cypher
chat_models
Loading...
Generated using
TypeDoc