Comments (4)
RPC error: [insert_rows], <MilvusException: (code=1100, message=the length (74246) of dynamic field exceeds max length (65536): invalid parameter[expected=valid length dynamic field][actual=length exceeds max length])>, <Time:{'RPC start': '2024-04-11 23:49:01.457415', 'RPC error': '2024-04-11 23:49:02.505110'}>
Traceback (most recent call last):
File "E:\OneDrive\history_rag-master\cli.py", line 120, in
cli.run()
File "E:\OneDrive\history_rag-master\cli.py", line 53, in run
self.parse_input(command_text)
File "E:\OneDrive\history_rag-master\cli.py", line 65, in parse_input
self.build_index(path=commands[1], overwrite=False)
File "E:\OneDrive\history_rag-master\cli.py", line 92, in build_index
self._executor.build_index(path, overwrite)
File "E:\OneDrive\history_rag-master\executor.py", line 186, in build_index
self.index = VectorStoreIndex(nodes, storage_context=storage_context, show_progress=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\llama_index\indices\vector_store\base.py", line 53, in init
super().init(
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\llama_index\indices\base.py", line 75, in init
index_struct = self.build_index_from_nodes(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\llama_index\indices\vector_store\base.py", line 274, in build_index_from_nodes
return self._build_index_from_nodes(nodes, **insert_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\llama_index\indices\vector_store\base.py", line 246, in _build_index_from_nodes
self._add_nodes_to_index(
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\llama_index\indices\vector_store\base.py", line 200, in _add_nodes_to_index
new_ids = self._vector_store.add(nodes_batch, **insert_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\llama_index\vector_stores\milvus.py", line 199, in add
self.collection.insert(insert_list)
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\pymilvus\orm\collection.py", line 508, in insert
return conn.insert_rows(
^^^^^^^^^^^^^^^^^
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\pymilvus\decorators.py", line 147, in handler
raise e from e
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\pymilvus\decorators.py", line 143, in handler
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\pymilvus\decorators.py", line 182, in handler
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\pymilvus\decorators.py", line 122, in handler
raise e from e
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\pymilvus\decorators.py", line 87, in handler
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\pymilvus\client\grpc_handler.py", line 514, in insert_rows
check_status(response.status)
File "E:\software\Anaconda\envs\pytorch\Lib\site-packages\pymilvus\client\utils.py", line 60, in check_status
raise MilvusException(status.code, status.reason, status.error_code)
pymilvus.exceptions.MilvusException: <MilvusException: (code=1100, message=the length (74246) of dynamic field exceeds max length (65536): invalid parameter[expected=valid length dynamic field][actual=length exceeds max length])>
from history_rag.
这不是崩溃的,因为milvus存储text的字符串长度是有限制的,如图是65536,而由于你的切分方式导致,切出了一个74246的长文本,事实上,长文本的embedding效果一般也不好,因为信息过多让特征不再明显。因为history_rag的文本切分是针对史料,所以不一定适合你的文本,使用更通用的文本切分方式,请参考#63
from history_rag.
这不是崩溃的,因为milvus存储text的字符串长度是有限制的,如图是65536,而由于你的切分方式导致,切出了一个74246的长文本,事实上,长文本的embedding效果一般也不好,因为信息过多让特征不再明显。因为history_rag的文本切分是针对史料,所以不一定适合你的文本,使用更通用的文本切分方式,请参考#63
明白了,但是我没办法把已经切好的文本删除了,输入remove 文件夹名之后说有多少条但是删除0条,有没有什么其他删除的指令呢
from history_rag.
from pymilvus import Collection, connections
connections.connect("default", host="localhost", port="19530")
#在cfgs/config.yaml中的默认值
col_name = "history_rag"
col = Collection(col_name)
col.load()
col.drop()
from history_rag.
Related Issues (20)
- 怎么配合ollma 使用? HOT 3
- ImportError:cannot import name 'ServiceContext' from 'llama_index.core' HOT 9
- 运行时提示ImportError: ('Cannot import sentence-transformers or torch package,', 'please `pip install torch sentence-transformers`') HOT 23
- RuntimeError: {'code': 90019, 'message': 'Pipeline server error: call server failed, msg=internal error'} HOT 1
- 下载本地模型后依旧报错Connection error. OSError: [Errno 101] Network is unreachable HOT 5
- 我项目运行起来,在提问的阶段,提问后报错。 HOT 1
- 想知道怎么转换txt到json HOT 2
- built文件后报错,不知晓原因,求教 HOT 9
- 文档分个模块和向量化 HOT 8
- Error Code 429 HOT 2
- 知识库构建索引出错 HOT 1
- 输入ask后报错 HOT 2
- 提问之后的api接口调用错误 HOT 1
- 关于非历史文本的输入 HOT 4
- 把模型换成gpt-3.5-turbo了,但是回答准确率比较低。 HOT 1
- Exception has occurred: MilvusException <MilvusException: (code=2, message=Fail connecting to server on localhost:19530, illegal connection params or server unavailable)> HOT 14
- [bug]关于比较大的文本输入构建索引失败 HOT 1
- pipeline方案报错 zilliz pipeline 连接异常 {"code":80001 HOT 1
- 在进入ask模式时出错 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from history_rag.