Files
myrag/__marimo__/session/crear base de datos y hacer busquedas.py.json
T

323 lines
10 KiB
JSON

{
"version": "1",
"metadata": {
"marimo_version": "0.15.5"
},
"cells": [
{
"id": "Hbol",
"code_hash": "1d0db38904205bec4d6f6f6a1f6cec3e",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "BYtC",
"code_hash": "aa046ea533e2c24f4855a198a08d72d2",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<pre style='font-size: 12px'>&#x27;/home/lucas/DataProyects/myrag/.model/nomic-embed-text-v1.5&#x27;</pre>"
}
}
],
"console": [
{
"type": "stream",
"name": "stderr",
"text": "\rFetching 20 files: 0%| | 0/20 [00:00<?, ?it/s]"
},
{
"type": "stream",
"name": "stderr",
"text": "\rFetching 20 files: 5%|\u2588\u2588\u2588\u2588\u258d | 1/20 [00:00<00:06, 2.80it/s]"
},
{
"type": "stream",
"name": "stderr",
"text": "\rFetching 20 files: 30%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258d | 6/20 [00:03<00:07, 1.78it/s]\rFetching 20 files: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 20/20 [00:03<00:00, 6.03it/s]\n"
}
]
},
{
"id": "RGSE",
"code_hash": "e64c8b56fa9ae281a52adbd60011ac93",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": [
{
"type": "stream",
"name": "stderr",
"text": "<All keys matched successfully>\n"
}
]
},
{
"id": "zTot",
"code_hash": "ff7286115d2791a2e3fd3a7c1e5d12d7",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": [
{
"type": "stream",
"name": "stdout",
"text": "Texto: La inteligencia artificial est\u00e1 transformando el mundo.\nDimensi\u00f3n: 768\nPrimeros valores: [0.7112516164779663, 1.4581586122512817, -3.3529951572418213, -0.17522235214710236, 1.0074328184127808]\n\nTexto: Los embeddings convierten texto en vectores num\u00e9ricos.\nDimensi\u00f3n: 768\nPrimeros valores: [1.0517628192901611, 0.7358752489089966, -3.375025749206543, -0.5610738396644592, 0.42669662833213806]\n\n"
}
]
},
{
"id": "Bksw",
"code_hash": "b2327ba2e99ea713ebb77b2abff4ef78",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "Kclp",
"code_hash": "185b6270311f793d93ca5c16393c1377",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": [
{
"type": "stream",
"name": "stdout",
"text": "\u2705 Se insertaron 20 textos con sus embeddings en la tabla 'nota'.\n"
}
]
},
{
"id": "emfo",
"code_hash": null,
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "Hstk",
"code_hash": "ed8923d1de8e16f4d26ef4ba4f5b8052",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "nWHF",
"code_hash": "5d30b9180a1e189ad154c7e279b90158",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "WYEk",
"code_hash": null,
"outputs": [],
"console": []
},
{
"id": "iLit",
"code_hash": "26b7bc9a5b3e0e95fafc0927665959a4",
"outputs": [
{
"type": "error",
"ename": "exception",
"evalue": "name 'conn2' is not defined",
"traceback": []
}
],
"console": [
{
"type": "stream",
"name": "stderr",
"text": "<span class=\"codehilite\"><div class=\"highlight\"><pre><span></span><span class=\"gt\">Traceback (most recent call last):</span>\n File <span class=\"nb\">&quot;/home/lucas/DataProyects/myrag/.venv/lib/python3.10/site-packages/marimo/_runtime/executor.py&quot;</span>, line <span class=\"m\">138</span>, in <span class=\"n\">execute_cell</span>\n<span class=\"w\"> </span><span class=\"n\">exec</span><span class=\"p\">(</span><span class=\"n\">cell</span><span class=\"o\">.</span><span class=\"n\">body</span><span class=\"p\">,</span> <span class=\"n\">glbls</span><span class=\"p\">)</span>\n File <span class=\"nb\">&quot;/tmp/marimo_87281/__marimo__cell_iLit_.py&quot;</span>, line <span class=\"m\">5</span>, in <span class=\"n\">&lt;module&gt;</span>\n<span class=\"w\"> </span><span class=\"n\">engine</span><span class=\"o\">=</span><span class=\"n\">conn2</span>\n<span class=\"gr\">NameError</span>: <span class=\"n\">name &#39;conn2&#39; is not defined. Did you mean: &#39;conn&#39;?</span>\n</pre></div>\n</span>"
}
]
},
{
"id": "nlcQ",
"code_hash": "5a69e974fc8098fd051fa96adc48490e",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "MJUe",
"code_hash": "b4f98a698fa556ceba5f8d6f2a22ee66",
"outputs": [],
"console": []
},
{
"id": "vblA",
"code_hash": "b2c1f26f82d1f970b9d43928212acde9",
"outputs": [],
"console": []
},
{
"id": "bkHC",
"code_hash": "b30b5e29cb002700bc3faa054f631b30",
"outputs": [],
"console": []
},
{
"id": "lEQa",
"code_hash": "7ef814b3ab4f0f8f69a5cbf3e71e683f",
"outputs": [],
"console": []
},
{
"id": "PKri",
"code_hash": "6b2fb5e4f49b15856ce86f923d9fc12f",
"outputs": [],
"console": []
},
{
"id": "Xref",
"code_hash": "4d9a7cdeb028ab0e0df782ba3a18ec56",
"outputs": [],
"console": []
},
{
"id": "SFPL",
"code_hash": "a5bd6b98ad6169496877f80431f7c095",
"outputs": [],
"console": []
},
{
"id": "TqIu",
"code_hash": "744f972cb53daa52449b041ba42407d8",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": [
{
"type": "stream",
"name": "stdout",
"text": "\u2705 Tabla 'nota' creada con pgvector.\n"
}
]
},
{
"id": "Vxnm",
"code_hash": null,
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "DnEU",
"code_hash": "057c1dc1d7e6987dfe189d0c5885621d",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<marimo-ui-element object-id='DnEU-0' random-id='b3ed3f7d-3db4-56da-4546-28e6578f93f0'><marimo-text data-initial-value='&quot;&quot;' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Texto de b\u00fasqueda&lt;/span&gt;&lt;/span&gt;&quot;' data-placeholder='&quot;&quot;' data-kind='&quot;text&quot;' data-full-width='true' data-disabled='false' data-debounce='true'></marimo-text></marimo-ui-element>"
}
}
],
"console": []
},
{
"id": "ulZA",
"code_hash": "171370e936570dc14ae77ef27bf67f17",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "ecfG",
"code_hash": "b353ed28b6fb1a40454312bac397e1e6",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<marimo-ui-element object-id='ecfG-0' random-id='16317371-ed91-592f-e580-aba3fc4408bd'><marimo-table data-initial-value='[]' data-label='null' data-data='&quot;[]&quot;' data-total-rows='0' data-total-columns='3' data-max-columns='50' data-banner-text='&quot;&quot;' data-pagination='true' data-page-size='10' data-field-types='[[&quot;ID&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;T\u00edtulo&quot;,[&quot;string&quot;,&quot;object&quot;]],[&quot;Distancia&quot;,[&quot;string&quot;,&quot;object&quot;]]]' data-show-filters='true' data-show-download='true' data-show-column-summaries='false' data-show-data-types='true' data-show-page-size-selector='false' data-show-column-explorer='true' data-show-chart-builder='true' data-row-headers='[]' data-has-stable-row-id='false' data-lazy='false' data-preload='false'></marimo-table></marimo-ui-element>"
}
}
],
"console": []
},
{
"id": "Pvdt",
"code_hash": null,
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
}
]
}