initial commit: slides ready + upgraded
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
# Proveedores de Embeddings
|
||||
|
||||
LangChain soporta múltiples proveedores de embeddings:
|
||||
|
||||
<v-clicks>
|
||||
|
||||
### OpenAI
|
||||
```typescript
|
||||
import { OpenAIEmbeddings } from "@langchain/openai";
|
||||
|
||||
const embeddings = new OpenAIEmbeddings({
|
||||
model: "text-embedding-3-small", // o text-embedding-3-large
|
||||
});
|
||||
```
|
||||
|
||||
### Google (Vertex AI / Gemini)
|
||||
```typescript
|
||||
import { GoogleEmbeddings } from "@langchain/google";
|
||||
|
||||
const embeddings = new GoogleEmbeddings({
|
||||
model: "text-embedding-004",
|
||||
});
|
||||
```
|
||||
|
||||
</v-clicks>
|
||||
Reference in New Issue
Block a user