changed naming of messaging methods
Browse filesFiles changed (3)
- ChromaDBFlow.py+2-2
- VectorStoreFlow.py+2-2
- run.py+5-5
142 unmodified lines143144145146147148149150142 unmodified lines)response["retrieved"] = ""reply = self._package_output_message(input_message = input_message,response = response)self.reply_to_message(reply = reply, to = input_message)142 unmodified lines143144145146147148149150142 unmodified lines)response["retrieved"] = ""reply = self.package_output_message(input_message = input_message,response = response)self.send_message(reply, is_reply = True)
166 unmodified lines167168169170171172173174166 unmodified linesself.vector_db.add_documents(documents)response["retrieved"] = ""reply = self._package_output_message(input_message = input_message,response = response)self.reply_to_message(reply = reply, to = input_message)166 unmodified lines167168169170171172173174166 unmodified linesself.vector_db.add_documents(documents)response["retrieved"] = ""reply = self.package_output_message(input_message = input_message,response = response)self.send_message(reply, is_reply = True)
114 unmodified lines1151161171181191201211221231241251261271286 unmodified lines135136137138139140141142143114 unmodified lines)#option2: use the proxy_flow#input_message = proxy_flow._package_input_message(data = data)#7. ~~~ Run inference ~~~print("##########CHROMA DB DEMO###############")#write to DBproxy_flow_cdb.send_message_async(input_message_write)#read from DBfuture = proxy_flow_cdb.send_message_blocking(input_message_read)#uncomment this line if you would like to get the full message back#reply_message = future.get_message()6 unmodified linesprint("##########VECTOR STORE DEMO###############")#write to DBproxy_flow_vs.send_message_async(input_message_write)#read from DBfuture = proxy_flow_vs.send_message_blocking(input_message_read)#uncomment this line if you would like to get the full message back#reply_message = future.get_message()114 unmodified lines1151161171181191201211221231241251261271286 unmodified lines135136137138139140141142143114 unmodified lines)#option2: use the proxy_flow#input_message = proxy_flow.package_input_message(data = data)#7. ~~~ Run inference ~~~print("##########CHROMA DB DEMO###############")#write to DBproxy_flow_cdb.send_message(input_message_write)#read from DBfuture = proxy_flow_cdb.get_reply_future(input_message_read)#uncomment this line if you would like to get the full message back#reply_message = future.get_message()6 unmodified linesprint("##########VECTOR STORE DEMO###############")#write to DBproxy_flow_vs.send_message(input_message_write)#read from DBfuture = proxy_flow_vs.get_reply_future(input_message_read)#uncomment this line if you would like to get the full message back#reply_message = future.get_message()
ChromaDBFlow.py+2-2
VectorStoreFlow.py+2-2
run.py+5-5