# Create a Vector Search Index

* Head over to the vector search indexes option in the left menu&#x20;

<figure><img src="https://392607133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZCdm9aJ8vkvDIIbg04AL%2Fuploads%2FUIt9V21qi87lsrpVylau%2Fimage.png?alt=media&#x26;token=ee287bd3-9c2e-4443-a12b-690bc6c679d6" alt="" width="119"><figcaption></figcaption></figure>

* Now click on the Create Vector Search Index

<figure><img src="https://392607133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZCdm9aJ8vkvDIIbg04AL%2Fuploads%2FvtFGHHowuuzLduOPDgPx%2Fimage.png?alt=media&#x26;token=781cf5ba-2e03-414b-9fe5-af5cf68db60c" alt=""><figcaption></figcaption></figure>

* Select environment, db collection and vector search index name.

<figure><img src="https://392607133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZCdm9aJ8vkvDIIbg04AL%2Fuploads%2FMAi7OsNti3XTqHeYAbpA%2Fimage.png?alt=media&#x26;token=db3562d2-46fe-49a5-87fe-6cf65e881546" alt=""><figcaption></figcaption></figure>

* In the next step you need to define the mappings

<figure><img src="https://392607133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZCdm9aJ8vkvDIIbg04AL%2Fuploads%2FZaa6uPFNUtmAvuUsEWjJ%2Fimage.png?alt=media&#x26;token=26d29743-8dd5-48b7-89f2-5be6f5e0375b" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
vector is a default field which is only there for the array of floats&#x20;
{% endhint %}

| Field                | Value                             | Example                                  |
| -------------------- | --------------------------------- | ---------------------------------------- |
| Type                 | vector \| field                   | vector                                   |
| Field Name           | fields in model                   | fields with type list of floats in model |
| Number Of Dimensions | number(1 - 4096)                  | 1023                                     |
| Similarity Function  | cosine \| euclidean \| dotProduct | cosine                                   |

{% hint style="danger" %}
Number Of Dimensions depends on the model which you have used to generate the vector embedings.
{% endhint %}

Once done with filling form then simply click on the create button on the bottom right of the form.
