mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-08 12:52:58 +00:00
Allow creation of an empty table (#254)
It's inconvenient to always require data at table creation time. Here we enable you to create an empty table and add data and set schema later. --------- Co-authored-by: Chang She <chang@lancedb.com>
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from typing import Literal
|
||||
from typing import Literal, Union
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
@@ -48,7 +48,7 @@ class LanceQueryBuilder:
|
||||
def __init__(
|
||||
self,
|
||||
table: "lancedb.table.LanceTable",
|
||||
query: np.ndarray,
|
||||
query: Union[np.ndarray, str],
|
||||
vector_column_name: str = VECTOR_COLUMN_NAME,
|
||||
):
|
||||
self._metric = "L2"
|
||||
|
||||
Reference in New Issue
Block a user