fix: update query text and similarity values in embeddings example
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 13,
|
||||
"id": "2d8fa9a9",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@@ -128,22 +128,22 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"🔎 Consulta: ¿Cómo se usan vectores?\n",
|
||||
"🔎 Consulta: ¿Cómo son buscados vectores?\n",
|
||||
"\n",
|
||||
"- Los vectores se usan con el cliente de OPENAI embeddings\n",
|
||||
" Similaridad: 0.6407\n",
|
||||
" Similaridad: 0.5639\n",
|
||||
"\n",
|
||||
"- Supabase permite almacenar vectores usando pgvector.\n",
|
||||
" Similaridad: 0.5367\n",
|
||||
" Similaridad: 0.4758\n",
|
||||
"\n",
|
||||
"- Los embeddings convierten texto en representaciones numéricas.\n",
|
||||
" Similaridad: 0.4706\n",
|
||||
" Similaridad: 0.3645\n",
|
||||
"\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"const consulta = \"¿Cómo se usan vectores?\";\n",
|
||||
"const consulta = \"¿Cómo son buscados vectores?\";\n",
|
||||
"\n",
|
||||
"const emb = await openai.embeddings.create({\n",
|
||||
" model: \"text-embedding-3-small\",\n",
|
||||
|
||||
Reference in New Issue
Block a user