1 Star 0 Fork 0

user_5163915 / llm-py

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

llm-py

接口: milvus知识库新增接口

post http://xxxxxx:8004/bluebird-llm/api/db/save

请求:{
    "modelName": "text2vec",
    "datas": [
        {
            "content_id": "cd52a1ee-cc7d-449b-81d2-dbb7c2f1d041",
            "file_id": "1",
            "dataset_id": "1",
            "content": "【京博家风】公正、爱国、创新、勤学、谦卑、慎独、包容、担当、民主、和谐、不推诿、不抱怨、不迁怒、不二过、敬上司、帮同仁、成就下属、成长夥伴、尊长扶弱、顺天仁孝!",
            "remark":""
        }
    ]
}

modelName:模型简称 datas:数据 content_id:内容唯一id(外部生成) file_id:文件id(外部生成) dataset_id(知识库id 外部生成) content 内容

note:除 remark 外,皆为必填

响应: {
    "code": 200,
    "data": [
        {
            "errcode": 0,
            "errmsg": "success",
            "content_id": "cd52a1ee-cc7d-449b-81d2-dbb7c2f1d041",
            "pk": 445921573256907653
        }
    ]
}

code:成功 data 具体到哪一条 errcode 0为成功 content_id为 外部生成传过来的 pk(主键 milvus生成),注意 更新/保存都会生成新的pk,需要调用方跟唯一id绑定

接口: milvus知识库更新接口

post http://xxxxxx:8004/bluebird-llm/api/db/update

请求:{
    "modelName": "text2vec",
    "datas": [
        {
            "pk":"445921573256907649",
            "content_id": "cd52a1ee-cc7d-449b-81d2-dbb7c2f1d041",
            "file_id": "1",
            "dataset_id": "1",
            "content": "【京博家风】公正、爱国、创新、勤学、谦卑、慎独、包容、担当、民主、和谐、不推诿、不抱怨、不迁怒、不二过、敬上司、帮同仁、成就下属、成长夥伴、尊长扶弱、顺天仁孝!",
            "remark":""
        }
    ]
}

modelName:模型简称 datas:数据 content_id:内容唯一id(外部生成) pk:主键(milvus生成) file_id:文件id(外部生成) dataset_id(知识库id 外部生成) content 内容

note:除 remark 外,皆为必填

响应: {
    "code": 200,
    "data": [
        {
            "errcode": 0,
            "errmsg": "success",
            "content_id": "cd52a1ee-cc7d-449b-81d2-dbb7c2f1d041",
            "pk": 445921573256907653
        }
    ]
}

code:成功 data 具体到哪一条 errcode 0为成功 content_id为 外部生成传过来的 pk(主键 milvus生成),注意 更新/保存都会生成新的pk,需要调用方跟唯一id绑定

接口: milvus知识库问题查询接口

post http://xxxxxx:8004/bluebird-llm/api/db/query

请求:{
    "modelName": "text2vec",
    "dataset_id": "1",
    "dataset_ids": ["1","2"],
    "question": "京博的家风",
    "limit":2,
    "isolated_forest":1
}

modelName:模型简称 dataset_id(知识库id 外部生成,必填) dataset_ids(知识库ids List[str]) question 问题 limit 条数 isolated_forest 是否开启孤立森林算法默认1开启 0不开启

响应: {
    "code": 200,
    "data": [
        {
            "content": "【京博家风】!",
            "dataset_id": "1",
            "content_id": "cd52a1ee-cc7d-449b-81d2-dbb7c2f1d041",
            "file_id": "1",
            "score": 132.27056884765625
        },
        {
            "content": "【京博家风】公正、爱国、创新、勤学、谦卑、慎独、包容、担当、民主、和谐、不推诿、不抱怨、不迁怒、不二过、敬上司、帮同仁、成就下属、成长夥伴、尊长扶弱、顺天仁孝!",
            "dataset_id": "1",
            "content_id": "cd52a1ee-cc7d-449b-81d2-dbb7c2f1d041",
            "file_id": "1",
            "score": 591.5430908203125
        }
    ]
}

code:成功 data 具体到哪一条 content_id为 外部生成传过来的 content 内容 dataset_id 知识库id file_id 文件id score 索引匹配分数(越小越准)

接口: milvus知识库根据pk查询接口

post http://xxxxxx:8004/bluebird-llm/api/db/getByPk

请求:{
    "modelName": "text2vec",
    "pk": 445921573256931565
}

modelName:模型简称 pk(int)主键

响应: {
    "code": 200,
    "data": {
        "pk": 445921573256931565,
        "model_name": "text2vec",
        "dataset_id": "1",
        "file_id": "1",
        "content_id": "17853530656",
        "content": "【京博的世界500强】世界500强至少要有5个指标。第一,资产利润率和资产运行质量要高;第二,销售利润率要高,说明产品的附加值高;第三,资金利润率高,说明资金使用效率高;第四,还要有一支很强大的团队;第五,团队有文化根基、能持续发展。京博的世界500强绝对不是单纯追求销售收入。",
        "remark": "",
        "score": "",
        "create_time": "2023-12-18 12:12:35"
    }
}

code:成功 data 具体到哪一条 content_id为 外部生成传过来的 content 内容 dataset_id 知识库id file_id 文件id score 索引匹配分数(越小越准)

接口: milvus知识库根据pk删除接口

post http://xxxxxx:8004/bluebird-llm/api/db/delete

请求:{
    "modelName": "text2vec",
    "pk": 445921573256931565,
    "pks": [445921573256931565,445921573256931565]
}

modelName:模型简称 pk(int)主键 pks(List[int]) 这两个肯定有一个有值

响应: {
    "code": 200,
    "data": "删除成功"
}

code:成功

接口: milvus知识库根据标量表达式进行查询信息

post http://xxxxxx:8004/bluebird-llm/api/db/getByExpr

请求:{
    "modelName": "bge-large",
    "expr": "create_time like '2024-01-11%'"
}

modelName:模型简称 expr 标量表达式(可以去Attu平台校验是否准确)

响应: {
    "code": 200,
    "data": [
        {
            "pk": 446872134496055722,
            "model_name": "bge-large",
            "dataset_id": "1045311950638806323",
            "file_id": "1045311950638810800",
            "content_id": "1045311950638811275",
            "content": "</distributed ddl >\n\n在此根路径之下 ,还有一些其他的监听节点,其中包括/query-[seq] ,其是 DDL 操作 日志,每执行一次分布式 DDL 查询,在该节点下就会新增 一条操作口志,以记录相应的 操作指令 当各个节点监听到有新日志加人的时候 , 便会响应执行。 DDL 操作日志使用 Zoo Keeper 的待久顺序型节点,每条指令的名称以 query-为前缀,后面的序号递增,例如 '.u~ry~OOOOOOOOOO 、 query-000000000 I 等。在每条 query-[seq] 操作日志之下,还有两个状 态节点:\n\n(1) /query-[seq]/active 用于状态监控等用途,在任务的执行过程中,在该节点下会临\n\n234 !• Clic呾 ouse 原理解析与应用实践\n\n时保存当前集群内状态为 active 的节点。\n\n(2) /query-[ seq]/finished :用于检查任务完成情况,在任务的执行过程中,每当集群内\n\n的某个 host 节点执行完毕之后,便会在该节点下写入记录。例如下面的语旬,\n\n/query-000000001/finished chS.nauu.con : 9000 : 0 chG.nauu.co;n:9000 : 0\n\n上述语句表示集群内的 CHS 和 CH6 两个节点已完成任务 。\n\n2) DDLLogEntry 日志对 象的数据结构\n\n在 /q uery-[seq] 下记 录 的日忐信息由 DDLLogEntry 承载,它拥有如下几个核心底性.",
            "remark": "",
            "score": "",
            "create_time": "2024-01-11 16:00:00"
        },
        {
            "pk": 446872134496055724,
            "model_name": "bge-large",
            "dataset_id": "1045311950638806323",
            "file_id": "1045311950638810800",
            "content_id": "1045311950638811276",
            "content": "2) DDLLogEntry 日志对 象的数据结构\n\n在 /q uery-[seq] 下记 录 的日忐信息由 DDLLogEntry 承载,它拥有如下几个核心底性.\n\n( I ) query 记录了 DDL 杳询的执行语旬,例如 ·\n\nquery: DROP TABLE default.test_l_local ON CLUST三P shaLC._2\n\n(2) hosts 记录了指定集群的 hosts 主机列表 . 媒群由分布式 DDL 语句中的 ON CLUSTER\n\n指定,例如\n\nhosts: [ ' ch5. nauu. corn: 9000','ch6. nauu. corn : 9000'l\n\n在分布式 DDL 的执行过程中,会根据 hosts 列表逐个判断它们的执行状态。\n\n(3) initiator 记录初始化 host 主机的名称, hosts 主机列表的取值来自于初始化 host 节\n\n点上的某群,例如 :\n\ninitiator : chS.nauu.com : 9000\n\nhosts 主机列表的取值来沥等同于下面的查询 :\n\n--从 initiator 节点查询 cluster 信息 SE立CT host_name FROM remote('ch5.nauu.com:9000', 呻RE cluster='shard_2'\n\n' system','clusters','defa1.lt')\n\n广一host_name--,\n\nI ch5 . nauu . com J ch6.nauu.com\n\nI I\n\n2 .分布式 D DL 的核心执行流程",
            "remark": "",
            "score": "",
            "create_time": "2024-01-11 16:00:02"
        }]}}

code:成功

接口: milvus知识库根据标量表达式进行查询pk

post http://xxxxxx:8004/bluebird-llm/api/db/getPkListByExpr

请求:{
    "modelName": "bge-large",
    "expr": "create_time like '2024-01-11%'"
}

modelName:模型简称 expr 标量表达式

响应: {
    "code": 200,
    "data": {
        "pkList": [
            446872134496055722,
            446872134496055724,
            446872134496055726,
            446872134496055728,
            446872134496055730,
            446872134496055732,
            446872134496055734,
            446872134496055736],
        "modelName":"bge-large"}}

code:成功 data.pkList:主键集合 modelName:模型名称

接口: 知识库根据问题查询问题向量

post http://xxxxxx:8004/bluebird-llm/api/db/getVector

请求:{
    "modelName": "bge-large",
    "question":"我是谁"
}

modelName:模型简称 question 问题

响应: {"code":200,"data":[0.009508767165243626,-0.0252784825861454,0.009074176661670208,0.010323951952159405,-0.007987120188772678,0.06994683295488358,-0.03766080364584923,-0.016547905281186104,0.03493168577551842,-0.033338963985443115,0.0019706448074430227,-0.019139911979436874,-0.021374572068452835,0.04081050679087639,-0.04920488968491554,0.02335955947637558,0.01278570294380188,0.009548064321279526,0.04515039548277855,-0.018697163090109825,0.0082892756909132,-0.05514483526349068,-0.030467217788100243,-0.008765652775764465,-0.004215221852064133,-0.051308583468198776,-0.09056883305311203,0.01785190962255001,0.04484907537698746,0.019445061683654785,-0.025347866117954254,0.043709758669137955,0.016335630789399147,-0.020664455369114876,0.030055200681090355,0.04025226831436157,-0.058938026428222656,-0.0159454345703125,0.026627201586961746,0.0006147469393908978,-0.0370757095515728,0.003377056447789073,-0.01959548331797123,0.004687900189310312,0.027437487617135048,0.04481108859181404,-0.051809560507535934,0.009265127591788769,0.057328641414642334,0.01372284535318613,-0.030869262292981148,-0.00806854385882616,0.002583396853879094,-0.003349066013470292,0.007971134968101978,0.0502515472471714,0.03318064659833908,-0.008731521666049957,-0.03743092343211174,-0.0575876459479332,0.006609580013900995,0.06922826915979385,-0.02081478387117386,0.0038527639117091894,-0.023795975372195244,0.03264155611395836,-0.002422155812382698,0.001160584157332778,-0.020148681476712227,-0.05226210504770279,0.039868470281362534,-0.007989595644176006,0.001267164945602417,-0.013254516758024693,-0.002087618689984083,-0.0016738050617277622,0.021061498671770096,0.011999090202152729,0.000325172150041908,0.060649435967206955,-0.028781188651919365,-0.04211289808154106,0.036959484219551086,-0.007920998148620129,0.04671132564544678,-0.040150925517082214,-0.01223422959446907,0.33681803941726685,0.010726949200034142,-0.06372828781604767,-0.06748203933238983,-0.024449888616800308,-0.03273678943514824,0.020585160702466965,0.011616507545113564,0.010277718305587769,-0.017312008887529373,0.007292373105883598,-0.005842938553541899,-0.004441088996827602,0.038194041699171066,0.035708896815776825,0.01613948866724968,-0.014266983605921268,-0.00432615028694272,-0.012883036397397518,0.002181336050853133,-0.025929134339094162,0.013107026927173138,0.02303728275001049,0.06425634026527405,-0.05238577350974083,-0.024454712867736816,-0.013496274128556252,-0.012774205766618252,0.001761833904311061,0.006043638102710247,-0.01916448026895523,-0.00924985483288765,-0.027057580649852753,-0.050152506679296494,-0.011143309064209461,0.0025862001348286867,-0.017239702865481377,0.026766447350382805,-0.0022206450812518597,0.0865166187286377,0.019855013117194176,0.008154483512043953,-0.03160446137189865,0.03409293293952942,-0.046080395579338074,0.04871291294693947,0.017312314361333847,-0.012008687481284142,-0.0031317968387156725,-0.06764872372150421,-0.009367874823510647,0.02991996333003044,-0.003675564657896757,0.040067337453365326,-0.01205121073871851,-0.029029250144958496,0.03506331518292427,0.03865577653050423,-0.04431433603167534,-0.03437512367963791,0.025400690734386444,-0.02253989316523075,0.025683246552944183,-0.07639206945896149,-0.0033244492951780558,0.01699625700712204,0.03862413763999939,-0.02422717772424221,-0.024442143738269806,0.03126930817961693,-0.037481825798749924,0.05312706157565117,0.022800851613283157,0.025992577895522118,0.006502173840999603,0.023004285991191864,0.027636369690299034,-0.008130471222102642,0.015121172182261944,-0.0330185629427433,-0.0031025512143969536,-0.00012869408237747848,0.006504051852971315,0.0280402023345232,-0.0655050277709961,-0.03258299082517624,-0.008080806583166122,-0.015173601917922497,-0.02518705278635025,-0.019460154697299004,0.006413937546312809,0.026581091806292534,0.028794648125767708,-0.004750272259116173,-0.027138933539390564,-0.04210364818572998,-0.03935861214995384,-0.0013837050646543503,0.01928240805864334,0.033625610172748566,0.0063711171969771385,0.009612249210476875,-0.008385315537452698,0.015567570924758911,0.01619485579431057,5.3409170504892245e-05,-0.05887165665626526,-0.004543185234069824,0.0039708977565169334,0.0031223453115671873,0.01427866704761982,0.05230375751852989,0.024869240820407867,0.043977223336696625,0.015162071213126183,-0.0167305376380682,0.051166050136089325,-0.025909142568707466,-0.018384793773293495,0.006002648267894983,-0.025419259443879128,0.030172400176525116,0.0018024774035438895,-0.03333541378378868,-0.013973329216241837,-0.03427715227007866,-0.024358127266168594,0.053910236805677414,-0.02166287787258625,-0.04544946923851967,0.010528736747801304,-0.025049567222595215,-0.024432528764009476,0.009430927224457264,-0.011485201306641102,-0.016178328543901443,-0.016569834202528,-0.0074103702791035175,0.009181821718811989,0.007306159473955631,0.04448973387479782,-0.08128730952739716,0.01726078800857067,-0.019364893436431885,-0.030828585848212242,-0.004044565372169018,0.05881170555949211,-0.059004463255405426,-0.0033521894365549088,-0.014012823812663555,-0.0017476883949711919,0.006609770935028791,-0.007022220641374588,-0.04287194088101387,-0.02967018075287342,0.019056623801589012,-0.03139673173427582,-0.0001187747620861046,0.03344837203621864,-0.027293987572193146,-0.03877909108996391,0.01099917758256197,-0.05524024739861488,-0.0018049364443868399,-0.019748440012335777,-0.056422337889671326,-0.0491427481174469,-0.026042593643069267,-0.022949468344449997,0.044252339750528336,0.00182963942643255,-0.013363569974899292,0.03661720082163811,0.002472324064001441,-0.028535302728414536,-0.0037885785568505526,-0.020209046080708504,-0.006143711972981691,0.0018478709971532226,0.0015663462691009045,0.050076790153980255,0.0004054477612953633,0.009898963384330273,-0.028011048212647438,0.033529866486787796,0.011961301788687706,-0.027031565085053444,-0.022077275440096855,0.01900431513786316,-0.034157440066337585,-0.006926668807864189,-0.0083750169724226,0.04440611973404884,0.03500457853078842,0.007092163432389498,-0.0007927787373773754,0.018093565478920937,0.03487558290362358,0.0033238676842302084,-0.010101755149662495,-0.009526754729449749,-0.005791571922600269,-0.0002346904220758006,-0.022539256140589714,0.0006224305252544582,-0.03658661991357803,0.047528527677059174,-0.01572093740105629,-0.005547154229134321,0.044106606394052505,-0.022404052317142487,-0.02105671912431717,0.017329026013612747,-0.015361808240413666,-0.007900983095169067,0.027725739404559135,0.009180456399917603,-0.03506052866578102,0.03712538257241249,0.019499046728014946,0.015114453621208668,0.0035933591425418854,0.03202817589044571,-0.0021341799292713404,-0.06988627463579178,0.0367063544690609,-0.026661701500415802,0.06014242395758629,-0.0477985255420208,-0.009212792851030827,0.00944534596055746,-0.02035783976316452,-0.0014569988707080483,0.028345409780740738,-0.001693231170065701,-0.03092586062848568,-0.03354185074567795,0.03846870735287666,0.03255502134561539,0.01883239485323429,0.008371190167963505,0.03793272003531456,0.028936579823493958,0.03429105505347252,-0.016598863527178764,-0.02902619168162346,-0.004157890100032091,0.030783290043473244,0.05499414727091789,0.008497240021824837,0.017971303313970566,-0.04788706451654434,0.009877716191112995,0.04383767396211624,-0.018971646204590797,0.0210086852312088,-0.03383466228842735,0.07126989215612411,0.04490657150745392,0.010294570587575436,-0.009078149683773518,-0.00810967106372118,-0.02900765649974346,0.018206778913736343,0.007416425738483667,0.017213743180036545,-0.030188338831067085,0.042776644229888916,0.023205049335956573,-0.01706419326364994,-0.0017568233888596296,0.0010889596305787563,0.04756844416260719,-0.030664104968309402,0.038300078362226486,0.025146836414933205,-0.0006466635386459529,-0.000771123101003468,-0.0012254836037755013,-0.04500342905521393,-0.02066591940820217,-0.030197324231266975,-0.010319910012185574,0.04382411390542984,0.023077113553881645,0.0012908881762996316,-0.029116494581103325,0.03323030471801758,-0.049527183175086975,-0.01098232064396143,-0.0058311824686825275,-0.0296575166285038,0.0026822183281183243,0.01902688853442669,-0.039969924837350845,0.011881053447723389,-0.0038533667102456093,-0.015104909427464008,-0.013714700005948544,-0.01163678802549839,-0.010250341147184372,0.020225239917635918,0.011844920925796032,0.01774522475898266,-0.027195682749152184,-0.06180424615740776,-0.0005024400306865573,0.01969558373093605,0.003792648436501622,0.0022350260987877846,-0.022179963067173958,0.020643403753638268,0.042385052889585495,-0.03165096789598465,0.0023768823593854904,-0.006471279542893171,0.020191779360175133,0.01513094175606966,0.025673648342490196,-0.030312564224004745,0.004472916014492512,0.029868824407458305,-0.01601388305425644,-0.07497667521238327,-0.014519376680254936,-0.047441620379686356,0.022779587656259537,0.003269084030762315,0.03919083625078201,0.0043248506262898445,-0.015942713245749474,-0.057330042123794556,0.02720574103295803,0.04200832545757294,-0.005234417039901018,-0.005557510536164045,-0.010048331692814827,0.040554117411375046,0.02706265076994896,-0.019637679681181908,0.017549265176057816,0.017818357795476913,0.0013430416584014893,-0.028785208240151405,-0.025347895920276642,-0.03152979910373688,0.017170626670122147,0.04063425958156586,0.034125033766031265,-0.020763695240020752,0.025617919862270355,0.004691847134381533,0.04980630800127983,-0.02372870221734047,-5.14846142323222e-05,0.038157492876052856,-0.000416680151829496,-0.003079719841480255,0.036014407873153687,0.01736239157617092,-0.01799788512289524,-0.008794986642897129,0.0020007132552564144,0.01605110801756382,0.04055676609277725,-0.0384044349193573,-0.0183817520737648,0.03130703046917915,0.000815369829069823,0.04150988161563873,-0.0045223115012049675,-0.025837065652012825,0.0002243857306893915,0.018814628943800926,-0.013262291438877583,-0.009946057572960854,-0.0287181343883276,-0.030132396146655083,-0.0012602061033248901,0.021920712664723396,0.0538354218006134,-0.037048496305942535,-0.000806592870503664,-0.024145184084773064,-0.016664989292621613,-0.013362227939069271,0.012534222565591335,-0.012927299365401268,0.017590992152690887,-0.037173788994550705,0.0004708017804659903,0.021962711587548256,0.010233338922262192,-0.004488835111260414,-0.0016831731190904975,-0.052426207810640335,0.013456999324262142,0.016443273052573204,0.028064528480172157,-0.01766490377485752,-0.02340034395456314,0.031786877661943436,0.004583843518048525,0.009903252124786377,-0.013830515556037426,-0.018656091764569283,-0.03011067770421505,-0.002963842125609517,-0.007504797540605068,0.004060931503772736,0.01313850749284029,-0.022198759019374847,0.020963959395885468,-0.053848009556531906,0.023673098534345627,-0.01099393330514431,0.053553368896245956,-0.01384980883449316,-0.01903543435037136,-0.03710353747010231,0.04805624857544899,-0.00024415977532044053,0.02096143737435341,-0.0036936269607394934,-0.059642575681209564,-0.009730695746839046,-0.0467778816819191,-0.06550656259059906,-0.006874211598187685,-0.042944200336933136,0.007970042526721954,0.039467982947826385,0.006738604977726936,-0.01640414632856846,-0.02117321640253067,0.0460461787879467,0.002573232166469097,0.012417042627930641,-0.03075444884598255,-0.02235238626599312,0.022017398849129677,-0.06723169982433319,-0.039406657218933105,-0.022548776119947433,-0.013413098640739918,-0.02437744289636612,-0.013701196759939194,-0.0364709198474884,-0.01729724556207657,-0.04156472906470299,0.018155351281166077,-0.01802532747387886,0.027399959042668343,-0.012238451279699802,0.020223014056682587,0.04029536992311478,0.020491233095526695,0.03429066389799118,-0.004426657687872648,0.013494744896888733,-0.03510872274637222,0.02257166989147663,-0.0032643480226397514,-0.05042990669608116,0.0006691993912681937,0.01333895418792963,-0.05446596443653107,0.014048007316887379,0.05356713756918907,0.013286509551107883,-0.03474824130535126,0.027684343978762627,-0.025684328749775887,-0.015740184113383293,0.021042542532086372,-0.008615034632384777,-0.02751053497195244,-0.017468933016061783,-0.040045663714408875,0.04594950005412102,0.002977043855935335,0.03467203676700592,0.01597331091761589,-0.03902231901884079,-0.04246410354971886,-0.0067298696376383305,0.017681077122688293,-0.05233686789870262,-0.03933071717619896,0.015767335891723633,0.0019404273480176926,-0.05990324169397354,0.03064364194869995,0.005370122846215963,0.025448082014918327,0.06141277030110359,-0.022897714748978615,0.0039891330525279045,0.038049422204494476,-0.021156981587409973,0.03401350602507591,-0.0032197642140090466,0.030884237959980965,-0.009155730716884136,-0.03970176354050636,0.01422891952097416,0.01284713763743639,-0.02386634610593319,-0.020450733602046967,0.009004268795251846,-0.02756054513156414,-0.014898540452122688,-0.002772273262962699,0.007886265404522419,-0.023335449397563934,-0.014813857153058052,0.007822134532034397,-0.0274809617549181,-0.005920884199440479,-0.016888529062271118,0.026266202330589294,-0.016115831211209297,-0.005662540905177593,-0.020284930244088173,-0.0046654692851006985,-0.004280408378690481,0.0201999694108963,-0.013882673345506191,-0.05281272158026695,-0.012207540683448315,0.038005195558071136,-0.006579570472240448,-0.0023501196410506964,0.05156954750418663,-0.029191555455327034,0.005124768707901239,-0.020194392651319504,-0.04007759317755699,-0.017616407945752144,-0.019346656277775764,0.03284119814634323,0.040608856827020645,-0.03925317898392677,0.002754576737061143,0.058245159685611725,0.02602817676961422,-0.0024467715993523598,-0.0003045608173124492,0.004425013437867165,-0.037595875561237335,0.015700284391641617,-0.025327540934085846,0.006195077206939459,-0.021991848945617676,0.023895181715488434,0.02147965505719185,0.014175387099385262,0.030151549726724625,0.0201081782579422,-0.005548606626689434,0.02874297834932804,-0.04331548884510994,0.02515104040503502,-0.020261185243725777,-0.006655263248831034,-0.023628124967217445,0.004098851699382067,0.033543866127729416,0.001661366899497807,0.016022667288780212,-0.01771729066967964,-0.004089954774826765,0.03022170625627041,0.0018021538853645325,-0.047918856143951416,0.034426040947437286,0.049555130302906036,0.014565614983439445,0.018440470099449158,0.0015330726746469736,0.002867498667910695,0.01888001151382923,0.0020237124990671873,0.0027189336251467466,-0.017112664878368378,-0.04450119659304619,0.08843047171831131,-0.023161007091403008,0.032651402056217194,0.02317195013165474,0.023882944136857986,-0.02451165020465851,-0.01539576519280672,0.0065603675320744514,-0.00021898341947235167,0.008495833724737167,-0.03771147131919861,0.03552226722240448,0.014765368774533272,-0.03484088554978371,0.0042725526727736,0.038126155734062195,-0.0013796190032735467,0.04393750801682472,-0.02155000902712345,0.03762465715408325,0.020040735602378845,-0.010005357675254345,0.004116878844797611,-0.02621576376259327,0.02091488428413868,0.03220286965370178,0.0060700844042003155,0.02022702246904373,0.0056221382692456245,-0.011526339687407017,-0.014431801624596119,-0.007384928874671459,-0.023027664050459862,0.028861071914434433,0.027853021398186684,0.016668392345309258,-0.0019247053423896432,-0.005546631757169962,-0.0024565148632973433,-0.032565273344516754,-0.013771453872323036,0.011569919995963573,0.050404634326696396,-0.016058189794421196,-0.03498312458395958,-0.021094651892781258,0.060421139001846313,0.06300051510334015,-0.0347345769405365,0.03549491986632347,-0.05303042382001877,0.035467371344566345,-9.0407942479942e-05,-0.02246110327541828,-0.0149035369977355,-0.017844010144472122,0.013039904646575451,0.06089815869927406,-0.01761682704091072,-0.03396483138203621,-0.06787189841270447,0.005792364478111267,0.037415895611047745,-0.02755087986588478,-0.026759115979075432,0.05228360742330551,-0.017526645213365555,-0.017505107447504997,0.0470917709171772,0.00744188018143177,0.0015391991473734379,-0.030604949221014977,-0.022504251450300217,-0.012867264449596405,0.012557759881019592,-0.05019472539424896,-0.01902703195810318,-0.01159939169883728,0.02604999765753746,-0.012896274216473103,-0.07337974011898041,-0.016717247664928436,0.032151225954294205,0.017529821023344994,-0.0041093784384429455,-0.016167186200618744,0.025090137496590614,-0.0042772796005010605,0.006458467338234186,0.07389753311872482,-0.014643348753452301,0.001557998708449304,-0.10939939320087433,-0.051083724945783615,-0.030838269740343094,-0.06446890532970428,0.02113836258649826,-0.04414893686771393,0.05171583592891693,-0.052701253443956375,0.04858669638633728,-0.019973400980234146,0.009528682567179203,0.0031533418223261833,0.021563051268458366,0.025515565648674965,0.01661556586623192,0.01610955409705639,-0.032064128667116165,0.008625315502285957,-0.022122463211417198,-0.0012946873903274536,-0.017778152599930763,0.010850616730749607,0.04628906771540642,0.02523157000541687,0.007864552550017834,-0.03965010121464729,0.025394732132554054,-0.02089349739253521,-0.012497908435761929,-0.05788728594779968,0.03247037157416344,0.013253864832222462,0.013860405422747135,-0.011520741507411003,-0.00682468805462122,-0.055529672652482986,-0.002489115810021758,-0.03579556196928024,0.01156274788081646,0.016793575137853622,-0.017997048795223236,0.020187437534332275,0.03764234110713005,-0.07080909609794617,0.0219926405698061,-0.04410966858267784,-0.0466790609061718,-0.0008793725864961743,-0.052218202501535416,-0.001640387810766697,0.015524070709943771,0.01352693047374487,-0.02313205972313881,0.0023229653015732765,-0.019443975761532784,0.0005765276146121323,0.013718848116695881,0.004015963524580002,-0.0027561828028410673,0.06886192411184311,0.0022866432555019855,0.026916617527604103,-0.016051746904850006,-0.019484417513012886,-0.0026704506017267704,-0.0019240472465753555,0.06926237791776657,-0.02788032963871956,-0.028335275128483772,-0.0144949434325099,-0.05666765570640564,0.013248936273157597,-0.0025510394480079412,0.02349364198744297,-0.03638196364045143,0.02503165788948536,-0.02952970378100872,0.004836276173591614,-0.06016315519809723,-0.020340532064437866,0.028393376618623734,0.013910639099776745,-0.05825675278902054,0.026959987357258797,0.018740208819508553,-0.03178156912326813,-0.04125329852104187,0.021341482177376747,-0.016801515594124794,-0.01040774304419756,-0.0370674654841423,-0.033188942819833755,-0.0037210090085864067,-0.014767928048968315,7.581621321151033e-05,-0.005086383782327175,0.010234239511191845,-0.005331081338226795,-0.005464434158056974,0.0444660410284996,0.013686196878552437,-0.029866645112633705,-0.047808367758989334,-0.012342441827058792,-0.015151085332036018,-0.008500799536705017,0.03971685469150543,0.003774637822061777,0.023432672023773193,0.06855972856283188,-0.0032296949066221714,-0.0012385710142552853,0.0332663469016552,0.004841782618314028,-0.029663879424333572,0.015143771655857563,-0.08159239590167999,-0.00891947653144598,-0.0310183335095644,-0.022168917581439018,0.00726047670468688,0.0016210706671699882,-0.014233020134270191,0.03145154193043709,0.0016800150042399764,-0.004034426528960466,-0.05309924855828285,0.006124665029346943,0.025127148255705833,-0.012873346917331219,-0.04061843454837799,0.007000850513577461,-0.014608184807002544,-0.053872961550951004,-0.05229749158024788,-0.03800361230969429,-0.006256872322410345,0.06156378239393234,0.048755496740341187,-0.032769910991191864,0.01877589523792267,0.02968725562095642,0.018343599513173103,-0.01460554450750351,-0.00037860425072722137,0.05244672670960426,0.009561681188642979,0.061628203839063644,0.03125080466270447,-0.0638204887509346,-0.04447284713387489,0.0021107031498104334,0.012606944888830185,-0.018078235909342766,0.008928940631449223,-0.03728476166725159,-0.0074683744460344315,0.012661289423704147,0.0022117511834949255,0.021085603162646294,0.00872610229998827,0.03503922373056412,0.013935888186097145,0.012147343717515469,-0.04577576369047165,0.017749249935150146,0.046803709119558334,0.02225435897707939,-0.010911568067967892,-0.01921260729432106,0.002304231282323599,-0.04376547038555145,-0.02502334490418434,-0.008785546757280827,0.017894065007567406,0.027232404798269272,0.01643732562661171,-0.014851190149784088,0.017845654860138893,0.033494602888822556,0.016200246289372444,0.013955367729067802,0.023140648379921913,-0.020212853327393532,-0.020310629159212112,-0.007457335479557514,-0.049007851630449295,-0.011235070414841175,-0.007957028225064278,0.026585109531879425,0.027385732159018517,0.026933373883366585,0.015481727197766304,-0.0012964787892997265,0.011368172243237495,0.023997370153665543,0.03825195133686066,-0.007613560650497675,0.057482872158288956,-0.019287394359707832,-0.05535035580396652,0.01631513051688671,-0.04602856561541557,-0.04926982894539833,-0.012166391126811504,-0.02643064223229885,-0.009053506888449192,-0.02402368187904358,-0.007203924935311079,-0.07554621249437332,0.010080069303512573,-0.0362301841378212,-0.024468624964356422,0.02301640436053276,-0.0013902061618864536,-0.017178304493427277,0.021795619279146194,0.030531572178006172,0.07505488395690918,-0.00739944027736783,0.008412549272179604,0.02262669801712036,-0.020176604390144348,-0.04108528047800064,0.05428565666079521,-0.021295664831995964,0.0652838870882988,0.010495130904018879,-7.650224870303646e-05,0.03753402456641197,-0.023249493911862373,0.07410018146038055,0.026700541377067566,-0.015565624460577965,0.007399377413094044,-0.022925645112991333,0.030971333384513855,0.006430468987673521,-0.041817400604486465,0.0031886070501059294,-0.045344773679971695,0.04401407763361931,-0.005553541239351034,-0.028994739055633545,-0.06849253922700882,-0.019905807450413704,0.02423614077270031,0.007995082065463066,0.0038835108280181885,0.012962386012077332,0.019044315442442894,-0.02435435727238655,0.0030052908696234226,-0.009976046159863472,0.028718359768390656,-0.010766045190393925,-0.01838364079594612,-0.022290781140327454,0.027857881039381027]}

code:成功 data.pkList:主键集合 data:向量(可直接去Attu平台查询)

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

使用文本向量化模型进行向量化存入milvus的部分操作,有需要的点个赞 展开 收起
Python 等 2 种语言
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/jiaochuangen/llm-py.git
git@gitee.com:jiaochuangen/llm-py.git
jiaochuangen
llm-py
llm-py
master

搜索帮助