{/* Auto-generated by scripts/mdx_snippets_gen.py. Do not edit manually. */} export const TsQuickstartConnect = "const db = await lancedb.connect(\"data/sample-lancedb\");\n"; export const TsQuickstartCreateTable = "const table = await db.createEmptyTable(\"words\", wordsSchema, {\n mode: \"overwrite\",\n});\nawait table.add([{ text: \"hello world\" }, { text: \"goodbye world\" }]);\n"; export const TsQuickstartImports = "import * as lancedb from \"@lancedb/lancedb\";\nimport \"@lancedb/lancedb/embedding/transformers\";\nimport { Utf8 } from \"apache-arrow\";\n"; export const TsQuickstartInitModel = "const model = (await lancedb.embedding\n .getRegistry()\n .get(\"huggingface\")\n ?.create()) as lancedb.embedding.EmbeddingFunction;\n"; export const TsQuickstartQuery = "const query = \"greetings\";\nconst actual = (await table.search(query).limit(1).toArray())[0];\nconsole.log(actual.text);\n"; export const TsQuickstartSchema = "const wordsSchema = lancedb.embedding.LanceSchema({\n text: model.sourceField(new Utf8()),\n vector: model.vectorField(),\n});\n";