You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param protocol: the protocol to use, e.g. 'jac', 'file', 's3'
58
+
:param protocol: the protocol to use, e.g. 'file', 's3'
59
59
:return: the backend class
60
60
"""
61
61
ifprotocolincls.__backends__:
62
62
returncls.__backends__[protocol]
63
63
64
-
ifprotocol=='jac':
65
-
fromdocarray.store.jacimportJACDocStore
66
-
67
-
cls.__backends__[protocol] =JACDocStore
68
-
logging.debug('Loaded Jina AI Cloud backend')
69
-
elifprotocol=='file':
64
+
ifprotocol=='file':
70
65
fromdocarray.store.fileimportFileDocStore
71
66
72
67
cls.__backends__[protocol] =FileDocStore
@@ -84,45 +79,37 @@ def get_pushpull_backend(
84
79
defpush(
85
80
self,
86
81
url: str,
87
-
public: bool=True,
88
82
show_progress: bool=False,
89
-
branding: Optional[Dict] =None,
83
+
**kwargs,
90
84
) ->Dict:
91
85
"""Push this `DocList` object to the specified url.
92
86
93
87
:param url: url specifying the protocol and save name of the `DocList`. Should be of the form ``protocol://namespace/name``. e.g. ``s3://bucket/path/to/namespace/name``, ``file:///path/to/folder/name``
94
-
:param public: Only used by ``jac`` protocol. If true, anyone can pull a `DocList` if they know its name.
95
-
Setting this to false will restrict access to only the creator.
96
88
:param show_progress: If true, a progress bar will be displayed.
97
-
:param branding: Only used by ``jac`` protocol. A dictionary of branding information to be sent to Jina AI Cloud. {"icon": "emoji", "background": "#fff"}
98
89
"""
99
90
logging.info(f'Pushing {len(self)} docs to {url}')
"""Push a stream of documents to the specified url.
115
104
116
105
:param docs: a stream of documents
117
106
:param url: url specifying the protocol and save name of the `DocList`. Should be of the form ``protocol://namespace/name``. e.g. ``s3://bucket/path/to/namespace/name``, ``file:///path/to/folder/name``
118
-
:param public: Only used by ``jac`` protocol. If true, anyone can pull a `DocList` if they know its name.
119
107
:param show_progress: If true, a progress bar will be displayed.
120
-
:param branding: Only used by ``jac`` protocol. A dictionary of branding information to be sent to Jina AI Cloud. {"icon": "emoji", "background": "#fff"}
0 commit comments