[ 'hosts' => $hosts, 'username' => getenv('OPENSEARCH_USERNAME') ?: null, 'password' => getenv('OPENSEARCH_PASSWORD') ?: null, 'ssl_verify' => $bool('OPENSEARCH_SSL_VERIFY', true), 'timeout' => (float) (getenv('OPENSEARCH_TIMEOUT') ?: 30), 'connect_timeout' => (float) (getenv('OPENSEARCH_CONNECT_TIMEOUT') ?: 5), ], 'indices' => [ 'chunks' => getenv('OPENSEARCH_INDEX_CHUNKS') ?: 'proofdb_chunks', ], 'bulk' => [ 'refresh' => getenv('OPENSEARCH_BULK_REFRESH') ?: 'false', 'chunk_size' => (int) (getenv('OPENSEARCH_BULK_CHUNK_SIZE') ?: 500), ], 'vector' => [ 'dimensions' => (int) (getenv('OPENSEARCH_VECTOR_DIMENSIONS') ?: 2048), 'space_type' => getenv('OPENSEARCH_VECTOR_SPACE_TYPE') ?: 'cosinesimil', 'engine' => getenv('OPENSEARCH_VECTOR_ENGINE') ?: 'lucene', ], ];