ZhipuAIEmbeddings
features and configuration options, please refer to the API reference.
Provider | Package |
---|---|
ZhipuAI | langchain-community |
zhipuai
integration package.
zhipuai
package:
embeddings
object we initialized above. In this example, we will index and retrieve a sample document in the InMemoryVectorStore
.
embeddings.embed_documents(...)
and embeddings.embed_query(...)
to create embeddings for the text(s) used in from_texts
and retrieval invoke
operations, respectively.
You can directly call these methods to get embeddings for your own use cases.
embed_query
:
embed_documents
:
ZhipuAIEmbeddings
features and configuration options, please refer to the API reference.