File size: 489 Bytes
a6a76ee
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
Traceback (most recent call last):
  File "/home/nightwing/Codes/Xyzbot/Rag/chunking.py", line 52, in split_text_to_chunks
    chunks = text_splitter.split_documents(docs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/nightwing/anaconda3/envs/xyzbot/lib/python3.11/site-packages/langchain_text_splitters/base.py", line 94, in split_documents
    texts.append(doc.page_content)
                 ^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'page_content'