Blame view

config/__init__.py 1.19 KB
33839b37   tangwang   属性值参与搜索:
1
2
  """
  Configuration package for search engine.
be52af70   tangwang   first commit
3
  
33839b37   tangwang   属性值参与搜索:
4
5
  Provides configuration loading, validation, and utility functions.
  """
be52af70   tangwang   first commit
6
7
  
  from .config_loader import (
9cb7528e   tangwang   店匠体系数据的搜索:mock da...
8
      SearchConfig,
be52af70   tangwang   first commit
9
      QueryConfig,
33839b37   tangwang   属性值参与搜索:
10
      IndexConfig,
be52af70   tangwang   first commit
11
      SPUConfig,
a00c3672   tangwang   feat: Function Sc...
12
13
      FunctionScoreConfig,
      RerankConfig,
33839b37   tangwang   属性值参与搜索:
14
      ConfigLoader,
ed948666   tangwang   tidy
15
      ConfigurationError
be52af70   tangwang   first commit
16
  )
33839b37   tangwang   属性值参与搜索:
17
  
9f96d6f3   tangwang   短query不用语义搜索
18
19
20
21
  from .utils import (
      get_match_fields_for_index,
      get_domain_fields
  )
42e3aea6   tangwang   tidy
22
23
24
25
  from .services_config import (
      get_translation_config,
      get_embedding_config,
      get_rerank_config,
07cf5a93   tangwang   START_EMBEDDING=...
26
      get_embedding_backend_config,
701ae503   tangwang   docs
27
      get_rerank_backend_config,
42e3aea6   tangwang   tidy
28
29
30
31
32
      get_translation_base_url,
      get_embedding_base_url,
      get_rerank_service_url,
      ServiceConfig,
  )
be52af70   tangwang   first commit
33
34
  
  __all__ = [
33839b37   tangwang   属性值参与搜索:
35
      # Main config classes
9cb7528e   tangwang   店匠体系数据的搜索:mock da...
36
      'SearchConfig',
be52af70   tangwang   first commit
37
      'QueryConfig',
33839b37   tangwang   属性值参与搜索:
38
      'IndexConfig',
be52af70   tangwang   first commit
39
      'SPUConfig',
a00c3672   tangwang   feat: Function Sc...
40
41
      'FunctionScoreConfig',
      'RerankConfig',
33839b37   tangwang   属性值参与搜索:
42
43
44
      
      # Loader and utilities
      'ConfigLoader',
be52af70   tangwang   first commit
45
      'ConfigurationError',
9f96d6f3   tangwang   短query不用语义搜索
46
47
      'get_match_fields_for_index',
      'get_domain_fields',
42e3aea6   tangwang   tidy
48
49
50
      'get_translation_config',
      'get_embedding_config',
      'get_rerank_config',
07cf5a93   tangwang   START_EMBEDDING=...
51
      'get_embedding_backend_config',
701ae503   tangwang   docs
52
      'get_rerank_backend_config',
42e3aea6   tangwang   tidy
53
54
55
56
      'get_translation_base_url',
      'get_embedding_base_url',
      'get_rerank_service_url',
      'ServiceConfig',
be52af70   tangwang   first commit
57
  ]