Fix pandas indexing method for knowledge base imports (#12637) (#12638)

Co-authored-by: CN-P5 <heibai2006@qq.com>
This commit is contained in:
CN-P5
2025-01-13 09:06:59 +08:00
committed by GitHub
parent d8f57bf899
commit cd257b91c5
4 changed files with 6 additions and 6 deletions

View File

@@ -77,8 +77,8 @@ def batch_create_segment_to_index_task(
index_node_id=doc_id,
index_node_hash=segment_hash,
position=max_position + 1 if max_position else 1,
content=content,
word_count=len(content),
content=content_str,
word_count=len(content_str),
tokens=tokens,
created_by=user_id,
indexing_at=datetime.datetime.now(datetime.UTC).replace(tzinfo=None),