rayliuca / T-Ragx

Enhancing Translation with RAG-Powered Large Language Models
https://github.com/rayliuca/T-Ragx
MIT License
67 stars 3 forks source link

module 't_ragx' has no attribute 'processors' #16

Closed AsherYangg closed 1 month ago

AsherYangg commented 1 month ago

Hi, When i try to run the code in colab, it shows : module 't_ragx' has no attribute 'processors'.

Code: input_processor = t_ragx.processors.ElasticInputProcessor()

input_processor.load_general_glossary() input_processor.load_general_translation(elastic_index="general_translation_memory", elasticsearch_host=["https://t-ragx-fossil.rayliu.ca", "https://t-ragx-fossil2.rayliu.ca"]) Screenshot 2024-10-11 142659

rayliuca commented 1 month ago

Hi @AsherYangg, it looks like the llama-cpp-python installation failed, which left the environment in a bad state

I have pinned llama-cpp-python==0.2.54 and it's working again