v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.13
LangChain.js
langchain-ollama
OllamaEmbeddings
Class OllamaEmbeddings
Hierarchy (
view full
)
Toolkit
OllamaEmbeddings
Index
Constructors
constructor
Properties
base
Url
client
keep
Alive
model
truncate
request
Options?
Methods
embed
Documents
embed
Query
Constructors
constructor
new
Ollama
Embeddings
(
fields
?
)
:
OllamaEmbeddings
Parameters
Optional
fields
:
OllamaEmbeddingsParams
Returns
OllamaEmbeddings
Properties
base
Url
base
Url
:
string
= "http://localhost:11434"
client
client
:
Ollama
keep
Alive
keep
Alive
:
string
= "5m"
model
model
:
string
= "mxbai-embed-large"
truncate
truncate
:
boolean
= false
Optional
request
Options
request
Options
?:
Partial
<
Options
>
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
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
base
Url
client
keep
Alive
model
truncate
request
Options
Methods
embed
Documents
embed
Query
LangChain.js - v0.2.13
Loading...