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

v0.3.7 知识库,文档解析失败 #948

Open
swing99527 opened this issue Nov 7, 2024 · 1 comment
Open

v0.3.7 知识库,文档解析失败 #948

swing99527 opened this issue Nov 7, 2024 · 1 comment

Comments

@swing99527
Copy link

bisheng-backend | File "/usr/local/lib/python3.10/site-packages/bisheng_langchain/vectorstores/milvus.py", line 485, in add_texts
bisheng-backend | embeddings = self.embedding_func.embed_documents(texts)
bisheng-backend | | | | -> ['环氧胶黏剂 第2版_14214335_1-100.docx\n环氧胶黏剂:实用配方与制备实例(第二版)\n----------\nEPOXY ADHESIVE\n\n环氧胶黏剂\n\nEPOXY ADHESIVE\n\n环氧胶黏剂 \n\n...
bisheng-backend | | | -> <function BishengEmbedding.embed_documents at 0x7f2faca5cdc0>
bisheng-backend | | -> BishengEmbedding(model_id='8', model='text-embedding-v3', embedding_ctx_length=8192, max_retries=6, request_timeout=200, mode...
bisheng-backend | -> <bisheng_langchain.vectorstores.milvus.Milvus object at 0x7f2f65ec4b20>
bisheng-backend |
bisheng-backend | File "/app/bisheng/interface/utils.py", line 127, in wrapper
bisheng-backend | return func(*args, **kwargs)
bisheng-backend | | | -> {}
bisheng-backend | | -> (BishengEmbedding(model_id='8', model='text-embedding-v3', embedding_ctx_length=8192, max_retries=6, request_timeout=200, mod...
bisheng-backend | -> <function BishengEmbedding.embed_documents at 0x7f2faca5cd30>
bisheng-backend |
bisheng-backend | File "/app/bisheng/interface/embeddings/custom.py", line 163, in embed_documents
bisheng-backend | raise Exception(f'embedding error: {e}')
bisheng-backend |
bisheng-backend | Exception: embedding error: status_code: 400
bisheng-backend | code: InvalidParameter
bisheng-backend | message: batch size is invalid, it should not be larger than 6.: payload.input.contents

@GangLiCN
Copy link

换个别的类型的文件,例如txt, pdf试试。

看错误信息应该走的自定义embedding, 但是出错了。

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

2 participants