@@ -320,6 +320,42 @@ Options:
320320 --help Show this message and exit.
321321 ```
322322
323+ ### Run Doris from command line
324+
325+ Doris supports ann index with type hnsw from version 4.0.x
326+
327+ ``` shell
328+ NUM_PER_BATCH=1000000 vectordbbench doris --http-port=8030 --port=9030 --db-name=vector_test --case-type=Performance768D1M --stream-load-rows-per-batch=500000
329+ ```
330+
331+ Using flag ` --session-var ` , if you want to test doris with some customized session variables. For example:
332+ ``` shell
333+ NUM_PER_BATCH=1000000 vectordbbench doris --http-port=8030 --port=9030 --db-name=vector_test --case-type=Performance768D1M --stream-load-rows-per-batch=500000 --session-var enable_profile=True
334+ ```
335+
336+ Mote options:
337+
338+ ``` text
339+ --m INTEGER hnsw m
340+ --ef-construction INTEGER hnsw ef-construction
341+ --username TEXT Username [default: root; required]
342+ --password TEXT Password [default: ""]
343+ --host TEXT Db host [default: 127.0.0.1; required]
344+ --port INTEGER Query Port [default: 9030; required]
345+ --http-port INTEGER Http Port [default: 8030; required]
346+ --db-name TEXT Db name [default: test; required]
347+ --ssl / --no-ssl Enable or disable SSL, for Doris Serverless
348+ SSL must be enabled [default: no-ssl]
349+ --index-prop TEXT Extra index PROPERTY as key=value
350+ (repeatable)
351+ --session-var TEXT Session variable key=value applied to each
352+ SQL session (repeatable)
353+ --stream-load-rows-per-batch INTEGER
354+ Rows per single stream load request; default
355+ uses NUM_PER_BATCH
356+ --no-index Create table without ANN index
357+ ```
358+
323359#### Using a configuration file.
324360
325361The vectordbbench command can optionally read some or all the options from a yaml formatted configuration file.
0 commit comments