MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / setup

Function setup

examples/txcouchbase/vector_search_tx_inline.py:116–124  ·  view source on GitHub ↗
(cluster: TxCluster, collection: TxCollection)

Source from the content-addressed store, hash-verified

114
115@defer.inlineCallbacks
116def setup(cluster: TxCluster, collection: TxCollection) -> List[str]:
117 root = str(uuid4())[:8]
118 keys = yield load_docs(root, collection)
119 try:
120 yield load_search_idx(cluster)
121 except QueryIndexAlreadyExistsException:
122 pass
123
124 return keys
125
126
127@defer.inlineCallbacks

Callers 1

mainFunction · 0.70

Calls 2

load_docsFunction · 0.70
load_search_idxFunction · 0.70

Tested by

no test coverage detected