intel-extension-for-transformers icon indicating copy to clipboard operation
intel-extension-for-transformers copied to clipboard

plugin init failed

Open anayjain opened this issue 1 year ago • 5 comments
trafficstars

from intel_extension_for_transformers.neural_chat import PipelineConfig from intel_extension_for_transformers.neural_chat import build_chatbot from intel_extension_for_transformers.neural_chat import plugins plugins.retrieval.enable=True plugins.retrieval.args["input_path"]="./docs/" config = PipelineConfig(plugins=plugins) chatbot = build_chatbot(config)

When I run this code every time I add some documents to the docs folder, it fails, giving this error below.

2024-03-13 10:54:19 [ERROR] neuralchat error: Generic error ERROR:root:build_chatbot: plugin init failed

I'm yet to figure out how to fix this sometimes I restart my notebook session or re-edit my documents ( they are xlsx files). Please tell me the method so that when I have to build a chatbot it doesn't keep crashing.

anayjain avatar Mar 13 '24 11:03 anayjain

Hi, thanks for bringing this up. Let me try to reproduce this and get back to you

kminhta avatar Mar 16 '24 01:03 kminhta

I can't seem to reproduce the issue. Can you give some more details into when it crashes? You build the chatbot initially and it runs fine. You then add documents to the docs folder and try to rebuild the chatbot then it crashes?

Also, what version of itrex are you using? Might be helpful to install from source for latest updates

kminhta avatar Mar 20 '24 21:03 kminhta

@anayjain Hi, are you still running into issues or may we close?

kminhta avatar May 02 '24 21:05 kminhta

@kta-intel Hi sorry I'm revisiting this. yes, I still get this error time and again whenever I add new files to my doc folder ( new CSV file) and then I fail to build the init plugin.

anayjain avatar May 28 '24 11:05 anayjain

@NeoZhangJianyu Hi can someone please help me with this? It would be of great help thanks.

anayjain avatar May 29 '24 14:05 anayjain