|
@ -55,8 +55,7 @@ config.embedding_model = 'all-MiniLM-L6-v2' |
|
|
config.milvus_host = '127.0.0.1' |
|
|
config.milvus_host = '127.0.0.1' |
|
|
config.milvus_port = '19530' |
|
|
config.milvus_port = '19530' |
|
|
config.es_enable = True |
|
|
config.es_enable = True |
|
|
config.es_host = '127.0.0.1' |
|
|
|
|
|
config.es_port = '9200' |
|
|
|
|
|
|
|
|
config.es_connection_kwargs = {hosts=['https://localhost:9200', basic_auth=('elastic', 'password')]} |
|
|
|
|
|
|
|
|
p = AutoPipes.pipeline('osschat-insert', config=config) |
|
|
p = AutoPipes.pipeline('osschat-insert', config=config) |
|
|
res = p('https://github.com/towhee-io/towhee/blob/main/README.md', 'osschat') |
|
|
res = p('https://github.com/towhee-io/towhee/blob/main/README.md', 'osschat') |
|
@ -134,21 +133,9 @@ The user password for [Cloud user](https://zilliz.com/cloud), defaults to `None` |
|
|
|
|
|
|
|
|
Whether to use Elasticsearch, default is `True`. |
|
|
Whether to use Elasticsearch, default is `True`. |
|
|
|
|
|
|
|
|
***es_host***: str |
|
|
|
|
|
|
|
|
***es_connection_kwargs*** |
|
|
|
|
|
|
|
|
Host of Elasticsearch, default is `'127.0.0.1'`. |
|
|
|
|
|
|
|
|
|
|
|
***es_port***: str |
|
|
|
|
|
|
|
|
|
|
|
Port of Elasticsearche, default is `'9200'`. |
|
|
|
|
|
|
|
|
|
|
|
***es_user***: str |
|
|
|
|
|
|
|
|
|
|
|
The user name for Elasticsearch, defaults to `None`. |
|
|
|
|
|
|
|
|
|
|
|
***es_password***: str |
|
|
|
|
|
|
|
|
|
|
|
The user password for Elasticsearch, defaults to `None`. |
|
|
|
|
|
|
|
|
The connection arguments to connect elastic service. |
|
|
|
|
|
|
|
|
<br /> |
|
|
<br /> |
|
|
|
|
|
|
|
|