> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.agentchat.contrib.vectordb.base.VectorDBFactory

<h2 id="autogen.agentchat.contrib.vectordb.base.VectorDBFactory" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">VectorDBFactory</span>
</h2>

```python theme={null}
VectorDBFactory()
```

Factory class for creating vector databases.

### Class Attributes

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### PREDEFINED\_VECTOR\_DB

<br />

<br />

### Static Methods

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### create\_vector\_db

```python theme={null}
create_vector_db(db_type: str, **kwargs) -> VectorDB
```

Create a vector database.<br />

<b>Parameters:</b>

| Name       | Description |                                                           |
| ---------- | ----------- | --------------------------------------------------------- |
| `db_type`  | str         | The type of the vector database.<br /><br />**Type:** str |
| `**kwargs` |             |                                                           |

<b>Returns:</b>

| Type                                                                             | Description                      |
| -------------------------------------------------------------------------------- | -------------------------------- |
| [VectorDB](/docs/api-reference/autogen/agentchat/contrib/vectordb/base/VectorDB) | VectorDB \| The vector database. |

<br />
