diff --git a/libs/langchain/langchain/vectorstores/dashvector.py b/libs/langchain/langchain/vectorstores/dashvector.py index 618b2be452..51b8ed7ff3 100644 --- a/libs/langchain/langchain/vectorstores/dashvector.py +++ b/libs/langchain/langchain/vectorstores/dashvector.py @@ -29,15 +29,15 @@ class DashVector(VectorStore): Example: .. code-block:: python - from langchain.vectorstores import dashvector + from langchain.vectorstores import DashVector from langchain.embeddings.openai import OpenAIEmbeddings import dashvector - client = dashvector.Client.init(api_key="***") - client.create("langchain") + client = dashvector.Client(api_key="***") + client.create("langchain", dimension=1024) collection = client.get("langchain") embeddings = OpenAIEmbeddings() - vectorstore = Dashvector(collection, embeddings.embed_query, "text") + vectorstore = DashVector(collection, embeddings.embed_query, "text") """ def __init__(