ipex-llm icon indicating copy to clipboard operation
ipex-llm copied to clipboard

Fix bug for embed function

Open Kailuo-Lai opened this issue 1 year ago • 1 comments

Description

In the source code, the "encode_kwargs" parameter doesn't play the role it should play, resulting in that user cannot control the tokenizer encoding process.

According to the source code, I found that the reason for this error is that the parameters are not passed into the "embed" function normally.

Summary of the change

I changed four lines of code to correct the logic of function argument passing, so that the "encode_kwargs" argument does what it should.

Kailuo-Lai avatar Nov 16 '23 14:11 Kailuo-Lai