Open
Description
Hi,
I am trying to run these embeddings with langchain, and get the above error. This is the stacktrace:
Error: __init__() got an unexpected keyword argument 'pooling_mode_weightedmean_tokens'
at request (/home/user/langchain-test/node_modules/@huggingface/inference/dist/index.js:215:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async featureExtraction (/home/user/langchain-test/node_modules/@huggingface/inference/dist/index.js:603:15)
at async RetryOperation._fn (/home/user/langchain-test/node_modules/p-retry/index.js:50:12) {
attemptNumber: 7,
retriesLeft: 0
}
This is the relevant part of the code that throws:
const embeddings = new HuggingFaceInferenceEmbeddings({
model: 'Muennighoff/SGPT-125M-weightedmean-msmarco-specb-bitfit',
apiKey: 'xxx'
});
const vectorStore = await MemoryVectorStore.fromDocuments(
splitDocs,
embeddings
);