langchain icon indicating copy to clipboard operation
langchain copied to clipboard

AttributeError: 'str' object has no attribute 'page_content'

Open SnoopyDevelops opened this issue 1 year ago • 0 comments

https://python.langchain.com/en/latest/use_cases/question_answering/semantic-search-over-chat.html

https://github.com/hwchase17/langchain/blob/master/docs/use_cases/question_answering/semantic-search-over-chat.ipynb

image

image

image

Apparently, split_documents function's input need to have attributes of page_content and metadata, but getting string list as input here

SnoopyDevelops avatar Apr 29 '23 19:04 SnoopyDevelops