You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pipelines/examples/chatbot/chat_markdown_multi_recall_example.py
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,7 @@
64
64
parser.add_argument("--es_chunk_size", default=500, type=int, help="Number of docs in one chunk sent to es")
65
65
parser.add_argument("--es_thread_count", default=32, type=int, help="Size of the threadpool to use for the bulk requests")
66
66
parser.add_argument("--es_queue_size", default=32, type=int, help="Size of the task queue between the main thread (producing chunks to send) and the processing threads.")
67
+
parser.add_argument('--indexing', default=False, type=bool, help='Whether indexing is enabled.')
parser.add_argument("--index_name", default="baike_cities", type=str, help="The index name of the ANN search engine")
32
36
parser.add_argument("--doc_dir", default="data/baike/", type=str, help="The doc path of the corpus")
33
-
parser.add_argument("--search_engine", choices=["elastic", "milvus"], default="elastic", help="The type of ANN search engine.")
37
+
parser.add_argument('--username', type=str, default="", help='Username of ANN search engine')
38
+
parser.add_argument('--password', type=str, default="", help='Password of ANN search engine')
39
+
parser.add_argument("--search_engine", choices=["elastic", "milvus", 'bes'], default="elastic", help="The type of ANN search engine.")
34
40
parser.add_argument("--host", type=str, default="127.0.0.1", help="host ip of ANN search engine")
35
41
parser.add_argument("--port", type=str, default="9200", help="port of ANN search engine")
36
42
parser.add_argument("--embedding_dim", default=768, type=int, help="The embedding_dim of index")
@@ -51,6 +57,9 @@
51
57
parser.add_argument('--filters', type=list, default=['\n'], help="Filter special symbols")
52
58
parser.add_argument('--language', type=str, default='chinese', help="the language of files")
53
59
parser.add_argument('--pooling_mode', choices=['max_tokens', 'mean_tokens', 'mean_sqrt_len_tokens', 'cls_token'], default='cls_token', help='the type of sentence embedding')
60
+
parser.add_argument("--es_chunk_size", default=500, type=int, help="Number of docs in one chunk sent to es")
61
+
parser.add_argument("--es_thread_count", default=32, type=int, help="Size of the threadpool to use for the bulk requests")
62
+
parser.add_argument("--es_queue_size", default=32, type=int, help="Size of the task queue between the main thread (producing chunks to send) and the processing threads.")
0 commit comments