We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd258d commit d636d6eCopy full SHA for d636d6e
apps/knowledge/vector/base_vector.py
@@ -21,7 +21,7 @@
21
22
23
def chunk_data(data: Dict):
24
- if str(data.get('source_type')) == SourceType.PARAGRAPH.value:
+ if str(data.get('source_type')) == str(SourceType.PARAGRAPH.value):
25
text = data.get('text')
26
chunk_list = text_to_chunk(text)
27
return [{**data, 'text': chunk} for chunk in chunk_list]
0 commit comments