summa-client-python 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- summa_client_python/__init__.py +75 -0
- summa_client_python/client.py +1187 -0
- summa_client_python/summa_pb2.py +212 -0
- summa_client_python/summa_pb2_grpc.py +845 -0
- summa_client_python/types.py +305 -0
- summa_client_python-2.0.0.dist-info/METADATA +193 -0
- summa_client_python-2.0.0.dist-info/RECORD +8 -0
- summa_client_python-2.0.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"""Async Python client for Summa search server."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
4
|
+
|
|
5
|
+
from .client import SummaClient
|
|
6
|
+
from .types import (
|
|
7
|
+
AllQuery,
|
|
8
|
+
BinaryDenseVectorQuery,
|
|
9
|
+
BooleanQuery,
|
|
10
|
+
BoostQuery,
|
|
11
|
+
CandidateScores,
|
|
12
|
+
Combiner,
|
|
13
|
+
DenseVectorQuery,
|
|
14
|
+
DocAddress,
|
|
15
|
+
Document,
|
|
16
|
+
DocumentMutationError,
|
|
17
|
+
DocumentMutationResult,
|
|
18
|
+
FusionCandidate,
|
|
19
|
+
FusionCandidateList,
|
|
20
|
+
IndexInfo,
|
|
21
|
+
MatchQuery,
|
|
22
|
+
OrdinalScore,
|
|
23
|
+
PassageScores,
|
|
24
|
+
QueryTrace,
|
|
25
|
+
RangeQuery,
|
|
26
|
+
Reranker,
|
|
27
|
+
RrfContribution,
|
|
28
|
+
SearchHit,
|
|
29
|
+
SearchResponse,
|
|
30
|
+
SearchTimings,
|
|
31
|
+
SearchTrace,
|
|
32
|
+
ShardSearchTrace,
|
|
33
|
+
SparseVectorQuery,
|
|
34
|
+
TermQuery,
|
|
35
|
+
VectorFieldStats,
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
__all__ = [
|
|
39
|
+
"SummaClient",
|
|
40
|
+
"AllQuery",
|
|
41
|
+
"BinaryDenseVectorQuery",
|
|
42
|
+
"BooleanQuery",
|
|
43
|
+
"BoostQuery",
|
|
44
|
+
"Combiner",
|
|
45
|
+
"CandidateScores",
|
|
46
|
+
"FusionCandidate",
|
|
47
|
+
"FusionCandidateList",
|
|
48
|
+
"PassageScores",
|
|
49
|
+
"RrfContribution",
|
|
50
|
+
"QueryTrace",
|
|
51
|
+
"SearchTrace",
|
|
52
|
+
"ShardSearchTrace",
|
|
53
|
+
"DenseVectorQuery",
|
|
54
|
+
"DocAddress",
|
|
55
|
+
"Document",
|
|
56
|
+
"DocumentMutationResult",
|
|
57
|
+
"DocumentMutationError",
|
|
58
|
+
"IndexInfo",
|
|
59
|
+
"MatchQuery",
|
|
60
|
+
"OrdinalScore",
|
|
61
|
+
"RangeQuery",
|
|
62
|
+
"Reranker",
|
|
63
|
+
"SearchHit",
|
|
64
|
+
"SearchResponse",
|
|
65
|
+
"SearchTimings",
|
|
66
|
+
"SparseVectorQuery",
|
|
67
|
+
"TermQuery",
|
|
68
|
+
"VectorFieldStats",
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
try:
|
|
72
|
+
__version__ = version("summa-client-python")
|
|
73
|
+
except PackageNotFoundError:
|
|
74
|
+
# Source-only imports (without an installed wheel/editable distribution).
|
|
75
|
+
__version__ = "0.0.0+unknown"
|