Document Loaders and Parsers
Use LlamaHub loaders for 200+ source types, and parsers that preserve structure (tables, headings).
LlamaIndex vs LangChain
LlamaIndex (formerly GPT-Index) is the other big agent framework. It focuses on RAG and document-centric agents.
Strengths: cleaner abstractions for index types, better PDF/structured-doc parsing, deep response-synthesis options.
Install
# pip install llama-index
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader