Class: OllamaEmbedding
OllamaEmbedding is an alias for Ollama that implements the BaseEmbedding interface.
Hierarchy
-
↳
OllamaEmbedding
Implements
Constructors
constructor
• new OllamaEmbedding(init
): OllamaEmbedding
Parameters
Name | Type |
---|---|
init | Partial <Ollama > & { model : string } |
Returns
Inherited from
Defined in
packages/core/src/llm/ollama.ts:40
Properties
additionalChatOptions
• Optional
additionalChatOptions: Record
<string
, unknown
>
Inherited from
Defined in
packages/core/src/llm/ollama.ts:37
baseURL
• baseURL: string
= "http://127.0.0.1:11434"
Inherited from
Defined in
packages/core/src/llm/ollama.ts:32
callbackManager
• Optional
callbackManager: CallbackManager
Inherited from
Defined in
packages/core/src/llm/ollama.ts:38
contextWindow
• contextWindow: number
= 4096
Inherited from
Defined in
packages/core/src/llm/ollama.ts:35
embedBatchSize
• embedBatchSize: number
= DEFAULT_EMBED_BATCH_SIZE
Implementation of
Inherited from
Defined in
packages/core/src/embeddings/types.ts:8
hasStreaming
• Readonly
hasStreaming: true
Inherited from
Defined in
packages/core/src/llm/ollama.ts:28
model
• model: string
Inherited from
Defined in
packages/core/src/llm/ollama.ts:31