-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdropai.services.yml
52 lines (52 loc) · 2.21 KB
/
dropai.services.yml
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
47
48
49
50
51
52
services:
# Manage entity update and trigger updates to the vector database.
dropai.entity_update:
class: Drupal\dropai\Service\EntityUpdate
arguments: [
'@config.factory',
'@logger.factory',
'@plugin.manager.dropai_embedding',
'@plugin.manager.dropai_loader',
'@plugin.manager.dropai_preprocessor',
'@plugin.manager.dropai_splitter',
'@plugin.manager.dropai_storage'
]
# Add and alter existing routes - used to add AI Inspector to entities.
dropai.route_subscriber:
class: Drupal\dropai\Routing\RouteSubscriber
arguments: ['@entity_type.manager']
tags:
- { name: event_subscriber }
# Manage embedding plugins.
plugin.manager.dropai_embedding:
class: Drupal\dropai\Plugin\DropaiEmbeddingManager
arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
# Manage loader plugins.
plugin.manager.dropai_loader:
class: Drupal\dropai\Plugin\DropaiLoaderManager
arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
# Manage processor plugins.
plugin.manager.dropai_preprocessor:
class: Drupal\dropai\Plugin\DropaiPreprocessorManager
arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
# Manage splitter plugins.
plugin.manager.dropai_splitter:
class: Drupal\dropai\Plugin\DropaiSplitterManager
arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
# Manage tokenizer plugins.
plugin.manager.dropai_tokenizer:
class: Drupal\dropai\Plugin\DropaiTokenizerManager
arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
# Manage storage plugins.
plugin.manager.dropai_storage:
class: Drupal\dropai\Plugin\DropaiStorageManager
arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
# Define a service to build a Factory to the document Reader.
dropai.document_reader.factory:
class: Drupal\dropai\Service\DocReaderFactory
arguments: ['@config.factory']
# Define a service for media content access.
dropai.doc_reader.access_check.doc_content:
class: Drupal\dropai\Access\MediaContentAccessCheck
tags:
- { name: access_check, applies_to: _doc_reader_access_check }