HanLP vs llama_index
HanLP and llama_index share 3 technologies: sentencepiece, torch, and transformers. Both are written in Python.
What they share and what sets them apart
hankcs
HanLP
中文分词 词性标注 命名实体识别 依存句法分析 成分句法分析 语义依存分析 语义角色标注 指代消解 风格转换 语义相似度 新词发现 关键词短语提取 自动摘要 文本分类聚类 拼音简繁转换 自然语言处理
Python36.5kRead on November 7, 2026, at commit 281e8efWhat is HanLP built with?In common
run-llama
llama_index
LlamaIndex is the document processing platform for AI
Python52.8kRead on November 5, 2026, at commit 444fdf0What is llama_index built with?Only in llama_index
starlette
- aiomysql
- aiosqlite
- async-lru
- asyncpg
- azure-search-documents
- azure-storage-blob
- ibm-db
- pgvecto-rs
pgvector
psycopg
psycopg2-binary
- pyzmq
- Redis
weaviate-client
pyarrow
lancedb
oracledb
- DuckDB
- pymilvus
- SQLite
- tablestore
chromadb
falkordb
- MySQL
pinecone
clickhouse-connect
- gcsfs
pyiceberg
pymochow
- pymysql
- pyobvector
- s3fs
- tcvectordb
typesense
- ElevenLabs
- anyio
- graphql-core
tornado
- AIOHTTP
- Ray
- soupsieve
- tinycss2
- ipywidgets
- matplotlib-inline
prompt-toolkit
matplotlib
- Rich
- SQLAlchemy
- argon2-cffi
- azure-identity
google-auth-httplib2
google-auth-oauthlib
- cryptography
- pyjwt
- msal
- einops
firecrawl-py
- guardrails-ai
llama-index-core
- mem0ai
OpenAIopencv-python
- PaddlePaddle
- tavily-python
- ibm-watsonx-ai
cohere
- LangChain
- tiktoken
- MCP
sentence-transformers
dashscope
- fastembed
- flagembedding
nltk
litellm
- ModelScope
- Ollama
- openvino
- scikit-learn
- tritonclient
- vLLM
- datasets
- exa-py
- flashrank
- hnswlib
langfuse
mlx
- mlx-lm
nomic
optimum
- paddleocr
peft
presidio-analyzer
tokenizers
- beautifulsoup4
- bleach
markupsafe
mistune
- nbformat
- newspaper3k
- xlrd
pillow
- bs4
- html2text
unstructured
- defusedxml
- jinja2
lxml
pymupdf
- filetype
- docx2txt
- markdownify
docling
- lxml-html-clean
- markitdown
- nbconvert
- pdf2image
- pdfplumber
pypdf
pypdf2
tinytag
- youtube-transcript-api
- jsonschema-specifications
marshmallow
- referencing
- rfc3339-validator
- Pydantic
docling-core
- annotated-types
- jsonschema
- pydantic-core
- opentelemetry-api
opentelemetry-semantic-conventions
prometheus-client
psutil
- python-json-logger
- boto3
- docker
- Alibaba Cloud
- OpenTelemetry
Side by side
HanLPllama_index
SizeLines written by people and agents, without generated ones; code files, without tests.
HanLP58,682 lines written472 code files
llama_index473,236 lines written2,055 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
HanLP0% of its commits signed by AI
llama_index0.2% of its commits signed by AIWith Claude Code, Cursor, and GitHub Copilot
ActivityFrom GitHub and its history, on the day SeeRepo read it.
HanLPLast push October 25, 20261,715 commits36,536 stars
llama_indexLast push November 5, 20267,963 commits52,820 stars
TestsThe files that test the code, and the share of code files a test imports.
HanLP13 test files1.9% of its code files have a test that imports them
llama_index1,607 test files46.5% of its code files have a test that imports them
Frequently asked questions
Which is bigger, HanLP or llama_index?
llama_index, with 473,236 lines written; HanLP has 58,682.
Which has more GitHub stars, HanLP or llama_index?
llama_index, with 52,820 stars; HanLP has 36,536.
The proof: run-llama/llama_index on GitHub
Which has more tests, HanLP or llama_index?
llama_index, with 1,607 test files; HanLP has 13.
Which was updated more recently, HanLP or llama_index?
llama_index: its last push was on November 5, 2026, and HanLP's on October 25, 2026.
The proof: run-llama/llama_index's commits on GitHub
Which has more commits signed by AI, HanLP or llama_index?
llama_index: an AI signed 0.2% of its commits, with Claude Code, Cursor, and GitHub Copilot.
See inside your code, today.
Paste your repo and see it drawn, part by part: a medium one in under a minute.
Free, no account.

