Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Paper chunk method does not support Zhipu GLM model for OCR #4633

Open
1 task done
TraceIvan opened this issue Jan 24, 2025 · 0 comments
Open
1 task done

[Bug]: Paper chunk method does not support Zhipu GLM model for OCR #4633

TraceIvan opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@TraceIvan
Copy link

TraceIvan commented Jan 24, 2025

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

9d717f0

RAGFlow image version

9d717f0

Other environment information

Actual behavior

When using the glm-4-flash and glm-4v-flash models, the following error is reported when parsing a PDF document using the paper chunk method:

Knowledge graph extraction error:**ERROR**: Completions.create() got an unexpected keyword argument 'logit_bias'

Expected behavior

No response

Steps to reproduce

Add glm-4v-flash model information in the file llm_factories.json:

{
     "llm_name": "glm-4v-flash",
     "tags": "LLM,CHAT,IMAGE2TEXT",
     "max_tokens": 8000,
     "model_type": "image2text"
},

Set the zhipu api key and system model in user setting. Then upload a PDF file in the knowledge base, select the paper chunk method, and select "glm-4v-flash" in the "Layout recognition & OCR" option. After starting the parsing, the above error will appear.

Additional information

No response

@TraceIvan TraceIvan added the bug Something isn't working label Jan 24, 2025
@KevinHuSh KevinHuSh mentioned this issue Jan 26, 2025
1 task
KevinHuSh added a commit that referenced this issue Jan 26, 2025
### What problem does this PR solve?

#4633

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant