微信扫码
与创始人交个朋友
我要投稿
from langchain.embeddings.openai import OpenAIEmbeddingsembedding = OpenAIEmbeddings(deployment="embedding",chunk_size=1)sentence1 = "我是一名软件⼯程师"sentence2 = "小张从事法律工作"sentence3 = "我是一名程序员"embedding1 = embedding.embed_query(sentence1)embedding2 = embedding.embed_query(sentence2)embedding3 = embedding.embed_query(sentence3)import numpy as npprint(np.dot(embedding1,embedding2))print(np.dot(embedding2,embedding3))print(np.dot(embedding1,embedding3))
0.79876620709314740.79924615694196060.9592105615669977
53AI,企业落地应用大模型首选服务商
产品:大模型应用平台+智能体定制开发+落地咨询服务
承诺:先做场景POC验证,看到效果再签署服务协议。零风险落地应用大模型,已交付160+中大型企业
2024-09-04
2024-09-03
2024-09-26
2024-09-06
2024-11-23
2024-08-18
2024-10-30
2024-11-19
2024-07-23
2024-09-02