forked from opea-project/GenAIComps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
57 lines (51 loc) · 1.34 KB
/
__init__.py
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
53
54
55
56
57
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Document
from comps.cores.proto.docarray import (
Audio2TextDoc,
Base64ByteStrDoc,
DocPath,
EmbedDoc,
GeneratedDoc,
LLMParamsDoc,
SearchedDoc,
SearchedMultimodalDoc,
RerankedDoc,
TextDoc,
RAGASParams,
RAGASScores,
GraphDoc,
LVMDoc,
LVMVideoDoc,
ImageDoc,
TextImageDoc,
MultimodalDoc,
EmbedMultimodalDoc,
)
# Constants
from comps.cores.mega.constants import MegaServiceEndpoint, ServiceRoleType, ServiceType
# Microservice
from comps.cores.mega.orchestrator import ServiceOrchestrator
from comps.cores.mega.orchestrator_with_yaml import ServiceOrchestratorWithYaml
from comps.cores.mega.micro_service import MicroService, register_microservice, opea_microservices
from comps.cores.mega.gateway import (
Gateway,
ChatQnAGateway,
CodeGenGateway,
CodeTransGateway,
DocSumGateway,
TranslationGateway,
SearchQnAGateway,
AudioQnAGateway,
RetrievalToolGateway,
FaqGenGateway,
VisualQnAGateway,
)
# Telemetry
from comps.cores.telemetry.opea_telemetry import opea_telemetry
# Statistics
from comps.cores.mega.base_statistics import statistics_dict, register_statistics
# Logger
from comps.cores.mega.logger import CustomLogger