Create a new table
In Epsilla, you can have multiple tables in a database. A table has its name, and multiple fields. Each field has its name, data type, and specific configurations.
Create a table in code
status_code, response = db.create_table(
table_name="MyTable",
table_fields=[
{"name": "ID", "dataType": "INT", "primaryKey": True},
{"name": "Doc", "dataType": "STRING"},
{"name": "Embedding", "dataType": "VECTOR_FLOAT", "dimensions": 4}
],
# Optionally, add indices on STRING fields with automatic embedding and indexing
indices=[
{"name": "Index", "field": "Doc", "model": "BAAI/bge-small-en-v1.5"}
]
)await db.createTable('MyTable',
[
{"name": "ID", "dataType": "INT", "primaryKey": true},
{"name": "Doc", "dataType": "STRING"},
{"name": "Embedding", "dataType": "VECTOR_FLOAT", "dimensions": 4}
],
// Optionally, add indices on STRING fields with automatic embedding and indexing
[
{"name": "Index", "field": "Doc", "model": "BAAI/bge-small-en-v1.5"}
]
);Create a table on Epsilla Cloud portal UI

Field Data Types
Embedding Fields
Metric Type
Euclidean Distance:
Cosine Distance:
Primary Key
Indices
Last updated