Skip to content

Commit

Permalink
Update utils.py (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjaychelliah authored Apr 22, 2024
1 parent b0b776d commit 491d544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clarifai/rag/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def split_document(text: str, chunk_size: int, chunk_overlap: int, **kwargs) ->
from llama_index.core.node_parser.text import SentenceSplitter
except ImportError:
raise ImportError("Could not import llama index package. "
"Please install it with `pip install llama-index-core==0.10.1`.")
"Please install it with `pip install llama-index-core==0.10.24`.")
#document
text_parser = SentenceSplitter(chunk_size=chunk_size, chunk_overlap=chunk_overlap, **kwargs)
text_chunks = text_parser.split_text(text)
Expand Down

0 comments on commit 491d544

Please sign in to comment.