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] AI对话在问特定问题是报错:unexpected '}' #2547

Closed
z514987467 opened this issue Mar 12, 2025 · 4 comments
Closed

[Bug] AI对话在问特定问题是报错:unexpected '}' #2547

z514987467 opened this issue Mar 12, 2025 · 4 comments
Assignees

Comments

@z514987467
Copy link

Contact Information

AI对话在问特定问题是报错:unexpected '}'

MaxKB Version

v1.10.2-lts

Problem Description

Image

Steps to Reproduce

AI对话在问特定问题是报错:unexpected '}'

The expected correct result

No response

Related log output

Additional Information

No response

@z514987467
Copy link
Author

修改了知识库分段,重新向量化解决了问题,那么这个问题是由于传入的知识库片段导致的,有可能片段里面有特殊字符

@shaohuzhang1
Copy link
Contributor

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Modify the knowledge base segmentation and revectorize the problem. This problem is caused by the incoming knowledge base fragment. It is possible that there are special characters in the fragment.

@baixin513
Copy link
Contributor

感谢反馈,这跟知识库特殊字符没关系,应该是你提示词里面的 参数变量少个“}” 报的的异常

@shaohuzhang1
Copy link
Contributor

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Thanks for the feedback, this has nothing to do with the special characters in the knowledge base. It should be that the parameter variable in your prompt word has less "}" reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants