|
|
@ -58,11 +58,15 @@ config.es_host = '127.0.0.1' |
|
|
|
config.es_port = '9200' |
|
|
|
|
|
|
|
p = AutoPipes.pipeline('osschat-insert', config=config) |
|
|
|
res = p('https://github.com/towhee-io/towhee/blob/main/README.md') |
|
|
|
res = p('https://github.com/towhee-io/towhee/blob/main/README.md', |
|
|
|
milvus_collection='osschat', |
|
|
|
es_index='osschat') |
|
|
|
``` |
|
|
|
|
|
|
|
Then you can run `collection.flush() ` and `collection.num_entities` to check the number of the data in Milvus as a knowledge base. |
|
|
|
|
|
|
|
And run `es_client.search(index='osschat', body={"query":{"match_all":{}}})['hits']['total']['value']` to get the number in elasticsearch. |
|
|
|
|
|
|
|
<br /> |
|
|
|
|
|
|
|
|
|
|
|