Skip to content

Commit

Permalink
chore: run black formatter on search.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-spike committed Jul 29, 2024
1 parent 83ccc11 commit 9b4c22a
Showing 1 changed file with 36 additions and 5 deletions.
41 changes: 36 additions & 5 deletions basic-search/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,42 @@
index_name = "basic_index"

arg_parser = argparse.ArgumentParser(description="Aerospike Vector Search Example")
arg_parser.add_argument("--host", dest="host", required=False, default="localhost", help="Aerospike Vector Search host.")
arg_parser.add_argument("--port", dest="port", required=False, default=5000, help="Aerospike Vector Search port.")
arg_parser.add_argument("--namespace", dest="namespace", required=False, default="test", help="Aerospike namespace for vector index and data.")
arg_parser.add_argument("--set", dest="set", required=False, default="basic_search", help="Aerospike set for vector index and data.")
arg_parser.add_argument("--load-balancer", dest="load_balancer", action="store_true", required=False, default=False, help="Use this if the host is a load balancer.")
arg_parser.add_argument(
"--host",
dest="host",
required=False,
default="localhost",
help="Aerospike Vector Search host.",
)
arg_parser.add_argument(
"--port",
dest="port",
required=False,
default=5000,
help="Aerospike Vector Search port.",
)
arg_parser.add_argument(
"--namespace",
dest="namespace",
required=False,
default="test",
help="Aerospike namespace for vector index and data.",
)
arg_parser.add_argument(
"--set",
dest="set",
required=False,
default="basic_search",
help="Aerospike set for vector index and data.",
)
arg_parser.add_argument(
"--load-balancer",
dest="load_balancer",
action="store_true",
required=False,
default=False,
help="Use this if the host is a load balancer.",
)
args = arg_parser.parse_args()

with AdminClient(
Expand Down

0 comments on commit 9b4c22a

Please sign in to comment.