I learned about covariant and contravariant vectors in the context of Vector and Tensor analysis and Now I'm learning about it in the context of Linear vector spaces in Dirac ket notation. I'm having difficulty in relating the two to each other.
We know that any vector can be expanded in term of basis $\{e_i\}$ set, then $$\vec{A}=\sum_iA^ie_i$$ To find the component of the vector, One defines the reciprocal basis $\{e^i\}$ as $$e_i\cdot e^k=\delta_{ik}$$ Now we can find the component by simply taking the dot product with reciprocal basis: $$\vec{A}\cdot e^{i}=\sum_jA^je_j\cdot e^i=A^i$$ We can also expand the same vector in term of reciprocal basis as $$\vec{A}=\sum_iA_ie^{i}$$ We call components $A^i$ contravariant while $A_i$ covarient component of vectors.
Now in the context of Linear Vector Spaces, It says that any vector can be expanded as $$|a\rangle =\sum_i a^i|i\rangle $$ And they directly define the components $$a_i=\sum_j \bar{a}^j\langle j|i\rangle $$ the last line object should be $\langle a|i\rangle $. I don't find any relation between the two. How does the reciprocal basis look in ket notation? Can any help me relating the two?