# Vector store insert Node

### Overview

The Vector Store Insert Node enables the addition of documents to vector stores for semantic search and retrieval. It supports both existing collections and custom configurations, with options for smart document insertion to prevent duplicates. Documents are automatically converted into embeddings using the specified model before storage.

Usage cost: 0.2 credit / document

### Configuration

#### Settings

1. **Documents Configuration**
   * Documents to Insert\*: Select documents to add to the vector store
   * Smart Insertion: Enable to prevent duplicate documents using content-based IDs (the generated ID is a 32 characters string).
2. **Storage Configuration**

   * Mode Selection:
     * Use Existing Collection: Insert into a pre-configured collection
     * Custom Configuration: Create and insert into a new collection

   **For Existing Collection:**

   * Vector Store Collection\*: Select target collection

   **For Custom Configuration:**

   * Knowledge Source\*: Select vector store provider
   * Embeddings Model\*: Choose model for document embedding
   * Collection Name\*: Define name for new collection

#### Output Ports

* `affected_ids` (string\[]): IDs of documents successfully inserted

### Best Practices

1. **Document Preparation**
   * Format documents consistently
   * Clean and preprocess text before insertion
2. **Collection Management**
   * Use descriptive collection names
   * Plan collection structure beforehand
   * Consider using smart insertion for production
3. **Vector Store Considerations**
   * Milvus/Zilliz: Supports automatic collection creation
   * Chroma: Supports automatic collection creation
   * Pinecone: Requires manual collection setup
   * Qdrant: Requires manual collection setup

### Common Issues

* Document format mismatches
* Embedding model rate limits
* Vector store connection issues
* Large batch processing timeouts


---

# 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://docs.waterflai.ai/studio/studio-builders/flow-components-nodes/vector-store-insert-node.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.
