Doubt in understanding vector dot product in numpy?

So prateek bhaiya executed the following command

a = np.array([1,2,3,4]) 
b = np.array([1,2,3,4])

print(a.dot(b)) 

and the output came as 30

while explaining he drew a as a 1x4 matrix
and b as a 4x1 matrix. my question is isn’t b is also a matrix of 1x4 matrix? and how exactly does dot multiplication takes place in vectors?