Skip to content

Commit

Permalink
Merge pull request #1495 from zc277584121/master
Browse files Browse the repository at this point in the history
remove the zilliz class usage display in langchain
  • Loading branch information
zc277584121 authored Feb 19, 2025
2 parents 6fb6f24 + ec1113a commit 3fb0198
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@
},
"outputs": [],
"source": [
"from langchain_milvus import Milvus, Zilliz\n",
"from langchain_milvus import Milvus\n",
"from langchain_openai import OpenAIEmbeddings\n",
"\n",
"embeddings = OpenAIEmbeddings()\n",
"\n",
"vectorstore = Milvus.from_documents( # or Zilliz.from_documents\n",
"vectorstore = Milvus.from_documents(\n",
" documents=docs,\n",
" embedding=embeddings,\n",
" connection_args={\n",
Expand All @@ -226,7 +226,7 @@
"> For the `connection_args`:\n",
"> - Setting the `uri` as a local file, e.g.`./milvus.db`, is the most convenient method, as it automatically utilizes [Milvus Lite](https://milvus.io/docs/milvus_lite.md) to store all data in this file.\n",
"> - If you have large scale of data, you can set up a more performant Milvus server on [docker or kubernetes](https://milvus.io/docs/quickstart.md). In this setup, please use the server uri, e.g.`http://localhost:19530`, as your `uri`.\n",
"> - If you want to use [Zilliz Cloud](https://zilliz.com/cloud), the fully managed cloud service for Milvus, replace `Milvus.from_documents` with `Zilliz.from_documents`, and adjust the `uri` and `token`, which correspond to the [Public Endpoint and Api key](https://docs.zilliz.com/docs/on-zilliz-cloud-console#free-cluster-details) in Zilliz Cloud."
"> - If you want to use [Zilliz Cloud](https://zilliz.com/cloud), the fully managed cloud service for Milvus, adjust the `uri` and `token`, which correspond to the [Public Endpoint and Api key](https://docs.zilliz.com/docs/on-zilliz-cloud-console#free-cluster-details) in Zilliz Cloud."
]
},
{
Expand Down Expand Up @@ -608,7 +608,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.15"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 3fb0198

Please sign in to comment.