IBM watsonx.ai
features and configuration options, please refer to the API reference.
Class | Package | Local | Py support | Package downloads | Package latest |
---|---|---|---|---|---|
WatsonxEmbeddings | @langchain/community | ❌ | ✅ |
@langchain/community
integration package.
@langchain/community
package:
spaceId
or projectId
in order to proceed.embeddings
object we initialized above. In this example, we will index and retrieve a sample document using the demo MemoryVectorStore
.
embeddings.embedDocument(...)
and embeddings.embedQuery(...)
to create embeddings for the text(s) used in fromDocuments
and the retriever’s invoke
operations, respectively.
You can directly call these methods to get embeddings for your own use cases.
embedQuery
. This generates a vector representation specific to the query:
embedDocuments
. The internals used for this method may (but do not have to) differ from embedding queries: