# Advanced Usage

### Vectordb Configuration Structure

The vectordb configuration consists of several key components:

<pre class="language-json"><code class="lang-json"><strong>"vectordb": {
</strong>    "name": "vectordb_name",
    "class_name": "entity_class",
    "embedding": {
        "name": "embedding_component_name",
        "fields": {
            "parameter_name": "parameter_value",
            ...
        }
    }
}
</code></pre>

In this configuration:

* `"name"`: Specifies the name of the vectordb.
* `"class_name"`: Specifies the class or type associated with the data stored in the vectordb.
* `"embedding"` **(Optional):** Contains details about the default embedding component, "HuggingFaceEmbeddings," which is used by default.
  * `"name"`: Specifies the name of the embedding component.
  * `"fields"`: Includes default parameters for the embedding component.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://genaistack.aiplanet.com/v0.1.0/components/vector-database/advanced-usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
