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

能否加一个新类型type:text_processor #1435

Open
c2498168786 opened this issue Mar 20, 2025 · 2 comments
Open

能否加一个新类型type:text_processor #1435

c2498168786 opened this issue Mar 20, 2025 · 2 comments

Comments

@c2498168786
Copy link

表结构超多会报错:
litellm.exceptions.ContextWindowExceededError: litellm.ContextWindowExceededError: litellm.BadRequestError: ContextWindowExceededError: OpenAIException - This model's maximum context length is 18432 tokens. However, you requested 175399 tokens (171303 in the messages, 4096 in the completion). Please reduce the length of the messages or completion.

建议增加一个类型下面的文本处理
type: text_processor
chunk_size: 512 # 分块大小(直接影响RAG效果)
chunk_overlap: 50 # 块间重叠(防止语义割裂)
metadata_filter: # 过滤非必要元数据
exclude_fields: ["created_time"]

@cyyeh
Copy link
Member

cyyeh commented Mar 20, 2025

@c2498168786 請問這是在ui上做什麼操作導致的?

@c2498168786
Copy link
Author

@c2498168786 請問這是在ui上做什麼操作導致的?

你好。是页面是deploying sync表结构那个按钮

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

No branches or pull requests

2 participants