bdockbockd
bdockbockd
@AhmedHisham1 Did you solve it? Can you give me bit instruction how to achieve it?
I'd like to know the other way to call commit or disptach instead of calling via `this.context`
Here is my relevant code ```Init function self.client = MilvusClient(f'milvus_demo.db') ``` ``` def create_index(self, collection_name): """Create an index on the sparse vector field.""" index_params = self.client.prepare_index_params() index_params.add_index( field_name="sparse_vector", index_name="sparse_inverted_index", index_type="SPARSE_WAND",...
My schema ``` def create_collection(self, collection_name): """Create a collection with a schema including a sparse vector field.""" schema = self.client.create_schema( auto_id=True, enable_dynamic_fields=True, ) schema.add_field(field_name="pk", datatype=DataType.VARCHAR, is_primary=True, max_length=100) schema.add_field(field_name="uid", datatype=DataType.VARCHAR, max_length=100)...