mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-06 11:52:57 +00:00
Compare commits
4 Commits
v0.10.0-be
...
lance-v0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8d02e4440 | ||
|
|
b3daa25f46 | ||
|
|
6008a8257b | ||
|
|
aaff43d304 |
12
Cargo.toml
12
Cargo.toml
@@ -20,12 +20,12 @@ keywords = ["lancedb", "lance", "database", "vector", "search"]
|
|||||||
categories = ["database-implementations"]
|
categories = ["database-implementations"]
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
lance = { "version" = "=0.16.1", "features" = ["dynamodb"] }
|
lance = { "version" = "=0.17.0", "features" = ["dynamodb"] }
|
||||||
lance-index = { "version" = "=0.16.1" }
|
lance-index = { "version" = "=0.17.0" }
|
||||||
lance-linalg = { "version" = "=0.16.1" }
|
lance-linalg = { "version" = "=0.17.0" }
|
||||||
lance-testing = { "version" = "=0.16.1" }
|
lance-testing = { "version" = "=0.17.0" }
|
||||||
lance-datafusion = { "version" = "=0.16.1" }
|
lance-datafusion = { "version" = "=0.17.0" }
|
||||||
lance-encoding = { "version" = "=0.16.1" }
|
lance-encoding = { "version" = "=0.17.0" }
|
||||||
# Note that this one does not include pyarrow
|
# Note that this one does not include pyarrow
|
||||||
arrow = { version = "52.2", optional = false }
|
arrow = { version = "52.2", optional = false }
|
||||||
arrow-array = "52.2"
|
arrow-array = "52.2"
|
||||||
|
|||||||
4
node/package-lock.json
generated
4
node/package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "vectordb",
|
"name": "vectordb",
|
||||||
"version": "0.9.0",
|
"version": "0.10.0-beta.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "vectordb",
|
"name": "vectordb",
|
||||||
"version": "0.9.0",
|
"version": "0.10.0-beta.0",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64",
|
"x64",
|
||||||
"arm64"
|
"arm64"
|
||||||
|
|||||||
@@ -20,6 +20,5 @@ Cargo.toml
|
|||||||
biome.json
|
biome.json
|
||||||
build.rs
|
build.rs
|
||||||
jest.config.js
|
jest.config.js
|
||||||
native.d.ts
|
|
||||||
tsconfig.json
|
tsconfig.json
|
||||||
typedoc.json
|
typedoc.json
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import logging
|
|||||||
import uuid
|
import uuid
|
||||||
from concurrent.futures import Future
|
from concurrent.futures import Future
|
||||||
from functools import cached_property
|
from functools import cached_property
|
||||||
from typing import Dict, Iterable, Optional, Union
|
from typing import Dict, Iterable, Optional, Union, Literal
|
||||||
|
|
||||||
import pyarrow as pa
|
import pyarrow as pa
|
||||||
from lance import json_to_schema
|
from lance import json_to_schema
|
||||||
@@ -97,6 +97,7 @@ class RemoteTable(Table):
|
|||||||
def create_scalar_index(
|
def create_scalar_index(
|
||||||
self,
|
self,
|
||||||
column: str,
|
column: str,
|
||||||
|
index_type: Literal["BTREE", "BITMAP", "LABEL_LIST", "scalar"] = "scalar",
|
||||||
):
|
):
|
||||||
"""Creates a scalar index
|
"""Creates a scalar index
|
||||||
Parameters
|
Parameters
|
||||||
@@ -104,8 +105,10 @@ class RemoteTable(Table):
|
|||||||
column : str
|
column : str
|
||||||
The column to be indexed. Must be a boolean, integer, float,
|
The column to be indexed. Must be a boolean, integer, float,
|
||||||
or string column.
|
or string column.
|
||||||
|
index_type : str
|
||||||
|
The index type of the scalar index. Must be "scalar" (BTREE),
|
||||||
|
"BTREE", "BITMAP", or "LABEL_LIST"
|
||||||
"""
|
"""
|
||||||
index_type = "scalar"
|
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
"column": column,
|
"column": column,
|
||||||
|
|||||||
Reference in New Issue
Block a user