# Create a vector index using the HNSW algorithm, 768 dimension length, and inner product distance metric > FT.CREATE idx-videos ON HASH PREFIX 1 video: SCHEMA content_vector VECTOR HNSW 6 TYPE FLOAT32 DIM 768 DISTANCE_METRIC IP content TEXT metadata TEXT # Add a video vector with metadata > HSET video:0 content_vector “\xa4q\t=\xc1\xdes\xbdZ$<\xbd\xd5\xc1\x99<b\xf0\xf2<x[…\xf8<” content “SUMMARY:
![Redis - The Real-time Data Platform](https://cdn-ak-scissors.b.st-hatena.com/image/square/4de8e5e9b4e469d8aed69b7a4acf520c44194008/height=288;version=1;width=512/https%3A%2F%2Fredis.io%2Fwp-content%2Fuploads%2F2021%2F08%2Fredis-social-1200x628-1.jpg)