37 lines
613 B
Markdown
37 lines
613 B
Markdown
---
|
|
layout: default
|
|
---
|
|
|
|
# Más proveedores de Embeddings
|
|
|
|
<v-clicks>
|
|
|
|
### Mistral AI
|
|
```typescript
|
|
import { MistralAIEmbeddings } from "@langchain/mistralai";
|
|
|
|
const embeddings = new MistralAIEmbeddings({
|
|
model: "mistral-embed",
|
|
});
|
|
```
|
|
|
|
### Cohere
|
|
```typescript
|
|
import { CohereEmbeddings } from "@langchain/cohere";
|
|
|
|
const embeddings = new CohereEmbeddings({
|
|
model: "embed-multilingual-v3.0",
|
|
});
|
|
```
|
|
|
|
### Ollama (local)
|
|
```typescript
|
|
import { OllamaEmbeddings } from "@langchain/ollama";
|
|
|
|
const embeddings = new OllamaEmbeddings({
|
|
model: "llama3.2", // o cualquier modelo compatible
|
|
});
|
|
```
|
|
|
|
</v-clicks>
|