Skip to content

Commit

Permalink
Fixed Q&A Format import of the knowledge base failed #12637
Browse files Browse the repository at this point in the history
Fixed Q&A Format import of the knowledge base failed #12637
  • Loading branch information
CN-P5 authored Jan 11, 2025
1 parent a2f2cad commit 5f20c14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/tasks/batch_create_segment_to_index_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 5f20c14

Please sign in to comment.