1"use strict";(self.webpackChunklangchain_zh=self.webpackChunklangchain_zh||[]).push([[15771],{3905:(e,t,r)=>{r.d(t,{Zo:()=>p,kt:()=>d});var n=r(67294);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},p=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",v={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,i=e.mdxType,o=e.originalType,s=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),u=c(r),m=i,d=u["".concat(s,".").concat(m)]||u[m]||v[m]||o;return r?n.createElement(d,a(a({ref:t},p),{},{components:r})):n.createElement(d,a({ref:t},p))}));function d(e,t){var r=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var o=r.length,a=new Array(o);a[0]=m;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l[u]="string"==typeof e?e:i,a[1]=l;for(var c=2;c<o;c++)a[c]=r[c];return n.createElement.apply(null,a)}return n.createElement.apply(null,r)}m.displayName="MDXCreateElement"},81982:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>a,default:()=>v,frontMatter:()=>o,metadata:()=>l,toc:()=>c});var n=r(87462),i=(r(67294),r(3905));const o={},a="Milvus",l={unversionedId:"integrations/providers/milvus",id:"integrations/providers/milvus",title:"Milvus",description:"\u8fd9\u4e2a\u9875\u9762\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728LangChain\u4e2d\u4f7f\u7528Milvus\u751f\u6001\u7cfb\u7edf\u3002",source:"@site/docs/integrations/providers/milvus.mdx",sourceDirName:"integrations/providers",slug:"/integrations/providers/milvus",permalink:"/docs/integrations/providers/milvus",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"integrations",previous:{title:"Microsoft Word",permalink:"/docs/integrations/providers/microsoft_word"},next:{title:"Minimax\uff08\u6781\u5c0f\u5316\u7b97\u6cd5\uff09",permalink:"/docs/integrations/providers/minimax"}},s={},c=[{value:"\u5b89\u88c5\u548c\u8bbe\u7f6e",id:"\u5b89\u88c5\u548c\u8bbe\u7f6e",level:2},{value:"\u5305\u88c5\u5668",id:"\u5305\u88c5\u5668",level:2},{value:"VectorStore",id:"vectorstore",level:3}],p={toc:c},u="wrapper";function v(e){let{components:t,...r}=e;return(0,i.kt)(u,(0,n.Z)({},p,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"milvus"},"Milvus"),(0,i.kt)("p",null,"\u8fd9\u4e2a\u9875\u9762\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728LangChain\u4e2d\u4f7f\u7528Milvus\u751f\u6001\u7cfb\u7edf\u3002\n\u5b83\u5206\u4e3a\u4e24\u4e2a\u90e8\u5206\uff1a\u5b89\u88c5\u548c\u8bbe\u7f6e\uff0c\u4ee5\u53ca\u5bf9\u7279\u5b9aMilvus\u5305\u88c5\u5668\u7684\u5f15\u7528\u3002"),(0,i.kt)("h2",{id:"\u5b89\u88c5\u548c\u8bbe\u7f6e"},"\u5b89\u88c5\u548c\u8bbe\u7f6e"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},"\u4f7f\u7528 ",(0,i.kt)("inlineCode",{parentName:"li"},"pip install pymilvus")," \u5b89\u88c5Python SDK")),(0,i.kt)("h2",{id:"\u5305\u88c5\u5668"},"\u5305\u88c5\u5668"),(0,i.kt)("h3",{id:"vectorstore"},"VectorStore"),(0,i.kt)("p",null,"\u5b58\u5728\u4e00\u4e2a\u56f4\u7ed5Milvus\u7d22\u5f15\u7684\u5305\u88c5\u5668\uff0c\u5141\u8bb8\u60a8\u5c06\u5176\u7528\u4f5c\u5411\u91cf\u5b58\u50a8\uff0c\n\u65e0\u8bba\u662f\u7528\u4e8e\u8bed\u4e49\u641c\u7d22\u8fd8\u662f\u793a\u4f8b\u9009\u62e9\u3002"),(0,i.kt)("p",null,"\u8981\u5bfc\u5165\u8fd9\u4e2a\u5411\u91cf\u5b58\u50a8\uff1a"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-python"},"from langchain.vectorstores import Milvus\n")),(0,i.kt)("p",null,"\u6709\u5173Milvus\u5305\u88c5\u5668\u7684\u66f4\u8be6\u7ec6\u7684\u6f14\u793a\uff0c\u8bf7\u53c2\u89c1",(0,i.kt)("a",{parentName:"p",href:"/docs/integrations/vectorstores/milvus.html"},"\u6b64\u7b14\u8bb0\u672c")))}v.isMDXComponent=!0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.