■ Document 클래스의 page_content 속성을 사용해 Document 객체를 만드는 방법을 보여준다.
▶ main.py
1 2 3 4 5 6 7 8 |
from langchain_core.documents import Document documentList = [ Document(page_content = "Dogs are great companions, known for their loyalty and friendliness."), Document(page_content = "Cats are independent pets that often enjoy their own space." ) ] |