Repository navigation
Expand file tree
/
Copy pathvector_store_exceptions.py
More file actions
85 lines (49 loc) · 2.2 KB
/
Copy pathvector_store_exceptions.py
File metadata and controls
85 lines (49 loc) · 2.2 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Copyright (c) Microsoft. All rights reserved.
from semantic_kernel.exceptions.kernel_exceptions import KernelException
class VectorStoreException(KernelException):
"""Base class for all vector store exceptions."""
pass
class VectorStoreInitializationException(VectorStoreException):
"""Class for all vector store initialization exceptions."""
pass
class VectorStoreModelException(VectorStoreException):
"""Base class for all vector store model exceptions."""
pass
class VectorStoreModelSerializationException(VectorStoreModelException):
"""An error occurred while serializing the vector store model."""
pass
class VectorStoreModelDeserializationException(VectorStoreModelException):
"""An error occurred while deserializing the vector store model."""
pass
class VectorStoreModelValidationError(VectorStoreModelException):
"""An error occurred while validating the vector store model."""
pass
class VectorStoreMixinException(VectorStoreException):
"""Raised when a mixin is used without the VectorSearchBase Class."""
pass
class VectorStoreOperationException(VectorStoreException):
"""An error occurred while performing an operation on the vector store record collection."""
pass
class VectorStoreOperationNotSupportedException(VectorStoreOperationException):
"""An error occurred while performing an operation on the vector store record collection."""
pass
class VectorSearchExecutionException(VectorStoreOperationException):
"""Raised when there is an error executing a VectorSearch function."""
pass
class VectorSearchOptionsException(VectorStoreOperationException):
"""Raised when invalid options are given to a VectorSearch function."""
pass
__all__ = [
"VectorSearchExecutionException",
"VectorSearchOptionsException",
"VectorStoreException",
"VectorStoreInitializationException",
"VectorStoreMixinException",
"VectorStoreModelDeserializationException",
"VectorStoreModelException",
"VectorStoreModelException",
"VectorStoreModelSerializationException",
"VectorStoreModelValidationError",
"VectorStoreOperationException",
"VectorStoreOperationNotSupportedException",
]