# Zilliz

> **Class** in `langchain_milvus`

📖 [View in docs](https://reference.langchain.com/python/langchain-milvus/vectorstores/zilliz/Zilliz)

`Zilliz` vector store.

You need to have `pymilvus` installed and a
running Zilliz database.

See the following documentation for how to run a Zilliz instance:
https://docs.zilliz.com/docs/create-cluster

IF USING L2/IP metric IT IS HIGHLY SUGGESTED TO NORMALIZE YOUR DATA.

## Signature

```python
Zilliz(
    self,
    *args: Any = (),
    **kwargs: Any = {},
)
```

## Description

The connection args used for this class comes in the form of a dict,
the two major arguments are:
    uri (str): The Public Endpoint of Zilliz instance. Example uri:
        "https://in03-ba4234asae.api.gcp-us-west1.zillizcloud.com",
    token (str): API key, for serverless clusters which can be used as
        replacements for user and password.
For more information, please refer to:
https://docs.zilliz.com/docs/on-zilliz-cloud-console#cluster-details
and
https://docs.zilliz.com/reference/python/python/Connections-connect

**Example:**

```python
from langchain_milvus import Zilliz
from langchain_openai import OpenAIEmbeddings

embedding = OpenAIEmbeddings()
# Connect to a Zilliz instance
milvus_store = Zilliz(
    embedding_function = embedding,
    collection_name = "LangChainCollection",
    connection_args = {
        "uri": "https://in03-ba4234asae.api.gcp-us-west1.zillizcloud.com",
        "token": "temp", # API key
    }
    drop_old: True,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `*args` | `Any` | No | Variable length argument list passed to the parent Milvus class. (default: `()`) |
| `**kwargs` | `Any` | No | Arbitrary keyword arguments passed to the parent Milvus class. See Milvus class documentation for supported parameters including: `embedding_function`, `collection_name`, `connection_args`, `consistency_level`, `index_params`, `search_params`, `drop_old`, `auto_id`, and others. (default: `{}`) |

## Extends

- `Milvus`

## Constructors

```python
__init__(
    self,
    *args: Any = (),
    **kwargs: Any = {},
) -> None
```


---

[View source on GitHub](https://github.com/langchain-ai/langchain-milvus/blob/fe9d63e6dcae52e4c2e2ef4dafd5a6f7ee9b254c/libs/milvus/langchain_milvus/vectorstores/zilliz.py#L11)