mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-06-21 20:18:09 +02:00
fix(filesystem): avoid eager vector imports for embedding defaults
This commit is contained in:
parent
58409d1ec5
commit
decfe29fe4
6 changed files with 5 additions and 65 deletions
|
|
@ -14,6 +14,7 @@ from .metadata_generation import (
|
|||
MetadataGenerationResult,
|
||||
MetadataGenerator,
|
||||
)
|
||||
from .embedding_defaults import DEFAULT_EMBEDDING_DIMENSIONS
|
||||
from .semantic_folder_policy import (
|
||||
SEMANTIC_FOLDER_BASE_FIELDS,
|
||||
SEMANTIC_FOLDER_ROOT,
|
||||
|
|
@ -22,7 +23,6 @@ from .semantic_folder_policy import (
|
|||
is_semantic_folder_forbidden_field,
|
||||
semantic_folder_allowed_extension_fields,
|
||||
)
|
||||
from .hybrid_projection import DEFAULT_EMBEDDING_DIMENSIONS
|
||||
from .store import (
|
||||
SQLiteFileSystemStore,
|
||||
fingerprint,
|
||||
|
|
|
|||
1
pageindex/filesystem/embedding_defaults.py
Normal file
1
pageindex/filesystem/embedding_defaults.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
DEFAULT_EMBEDDING_DIMENSIONS = 1024
|
||||
|
|
@ -10,6 +10,7 @@ from dataclasses import dataclass
|
|||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from .embedding_defaults import DEFAULT_EMBEDDING_DIMENSIONS
|
||||
from .semantic_index import SQLiteVecSemanticIndex, SemanticIndexError, SemanticSearchResult
|
||||
|
||||
|
||||
|
|
@ -28,7 +29,6 @@ HYBRID_ENTITY_RELATION_WEIGHTS = {
|
|||
"relation": 0.30,
|
||||
"constraint": 0.20,
|
||||
}
|
||||
DEFAULT_EMBEDDING_DIMENSIONS = 1024
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ from __future__ import annotations
|
|||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from .embedding_defaults import DEFAULT_EMBEDDING_DIMENSIONS
|
||||
from .hybrid_projection import (
|
||||
DEFAULT_EMBEDDING_DIMENSIONS,
|
||||
EmbeddingCache,
|
||||
INDEX_BY_CHANNEL,
|
||||
embedding_cache_model_key,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue