Skip to content

Commit

Permalink
update xenova references to huggingface
Browse files Browse the repository at this point in the history
  • Loading branch information
PylotLight committed Dec 26, 2024
1 parent 4549863 commit 0e89187
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions libs/langchain-community/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"@vercel/postgres": "^0.5.0",
"@writerai/writer-sdk": "^0.40.2",
"@xata.io/client": "^0.28.0",
"@xenova/transformers": "^2.17.2",
"@huggingface/transformers": "^3.2.3",
"@zilliz/milvus2-sdk-node": ">=2.3.5",
"apify-client": "^2.7.1",
"assemblyai": "^4.6.0",
Expand Down Expand Up @@ -282,7 +282,7 @@
"@vercel/postgres": "^0.5.0",
"@writerai/writer-sdk": "^0.40.2",
"@xata.io/client": "^0.28.0",
"@xenova/transformers": "^2.17.2",
"@huggingface/transformers": "^3.2.3",
"@zilliz/milvus2-sdk-node": ">=2.3.5",
"apify-client": "^2.7.1",
"assemblyai": "^4.6.0",
Expand Down Expand Up @@ -523,7 +523,7 @@
"@xata.io/client": {
"optional": true
},
"@xenova/transformers": {
"@huggingface/transformers": {
"optional": true
},
"@zilliz/milvus2-sdk-node": {
Expand Down
4 changes: 2 additions & 2 deletions libs/langchain-community/src/embeddings/hf_transformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type {
PretrainedOptions,
FeatureExtractionPipelineOptions,
FeatureExtractionPipeline,
} from "@xenova/transformers";
} from "@huggingface/transformers";
import { Embeddings, type EmbeddingsParams } from "@langchain/core/embeddings";
import { chunkArray } from "@langchain/core/utils/chunk_array";

Expand Down Expand Up @@ -125,7 +125,7 @@ export class HuggingFaceTransformersEmbeddings

private async runEmbedding(texts: string[]) {
const pipe = await (this.pipelinePromise ??= (
await import("@xenova/transformers")
await import("@huggingface/transformers")
).pipeline("feature-extraction", this.model, this.pretrainedOptions));

return this.caller.call(async () => {
Expand Down

0 comments on commit 0e89187

Please sign in to comment.