Spaces:
Runtime error
Runtime error
File size: 1,422 Bytes
bfc0ec6 e1173b9 bfc0ec6 8176be9 bfc0ec6 e1173b9 bfc0ec6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
from importlib import metadata
from .concepts import * # noqa: F403
from .config import DatasetConfig, DatasetSettings, EmbeddingConfig, SignalConfig
from .data import * # noqa: F403
from .data.dataset_duckdb import DatasetDuckDB
from .data_loader import create_dataset
from .db_manager import get_dataset, set_default_dataset_cls
from .embeddings import * # noqa: F403
from .embeddings.default_vector_stores import register_default_vector_stores
from .env import * # noqa: F403
from .env import LilacEnvironment
from .schema import * # noqa: F403
from .server import start_server, stop_server
from .signals import * # noqa: F403
from .signals.default_signals import register_default_signals
from .sources import * # noqa: F403
from .sources.default_sources import register_default_sources
from .splitters import * # noqa: F403
try:
__version__ = metadata.version('lilac')
except metadata.PackageNotFoundError:
__version__ = ''
register_default_sources()
register_default_signals()
register_default_vector_stores()
set_default_dataset_cls(DatasetDuckDB)
# Avoids polluting the results of dir(__package__).
del (metadata, register_default_sources, register_default_signals, set_default_dataset_cls,
DatasetDuckDB)
__all__ = [
'start_server',
'stop_server',
'create_dataset',
'get_dataset',
'DatasetConfig',
'EmbeddingConfig',
'SignalConfig',
'DatasetSettings',
'LilacEnvironment',
]
|