Node vs Document abstraction. LangChain uses Document objects with page_content and metadata. LlamaIndex uses Node objects with text, metadata, and relationships between nodes. If your code references doc.page_content, change it to node.text. Default chunking is different. LangChain's RecursiveCharacterTextSplitter defaults to 1000-character chunks. LlamaIndex's SentenceSplitter defaults to 1024-token chunks with sentence-aware boundaries.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile