git: 925cfb2c4cd2 - main - misc/py-llama-index-embeddings-huggingface: New port: LlamaIndex embeddings HuggingFace integration

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 09 Jul 2026 08:17:03 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=925cfb2c4cd28a4a0ffead3e5abbfcccdca00383

commit 925cfb2c4cd28a4a0ffead3e5abbfcccdca00383
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-09 08:07:49 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-09 08:07:49 +0000

    misc/py-llama-index-embeddings-huggingface: New port: LlamaIndex embeddings HuggingFace integration
---
 misc/Makefile                                      |  1 +
 .../py-llama-index-embeddings-huggingface/Makefile | 27 ++++++++++++++++++++++
 .../py-llama-index-embeddings-huggingface/distinfo |  3 +++
 .../pkg-descr                                      |  4 ++++
 4 files changed, 35 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 1a69af444ad7..e8bc4944d943 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -554,6 +554,7 @@
     SUBDIR += py-litellm-proxy-extras
     SUBDIR += py-llama-cpp-python
     SUBDIR += py-llama-index-core
+    SUBDIR += py-llama-index-embeddings-huggingface
     SUBDIR += py-llm
     SUBDIR += py-llm-claude-3
     SUBDIR += py-lm-format-enforcer
diff --git a/misc/py-llama-index-embeddings-huggingface/Makefile b/misc/py-llama-index-embeddings-huggingface/Makefile
new file mode 100644
index 000000000000..85f0293680cc
--- /dev/null
+++ b/misc/py-llama-index-embeddings-huggingface/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	llama-index-embeddings-huggingface
+DISTVERSION=	0.7.0
+CATEGORIES=	misc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/g}-${PORTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	LlamaIndex embeddings HuggingFace integration
+WWW=		https://github.com/run-llama/llama_index # maybe? No URL is listed on PYPI for this project
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}huggingface-hub>=0.19.0:misc/py-huggingface-hub@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}llama-index-core>=0.13.0:misc/py-llama-index-core@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sentence-transformers>=2.6.1:misc/py-sentence-transformers@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+post-extract:
+	@${REINPLACE_CMD} -e 's/^license = "\([^"]*\)"/license = {text = "\1"}/' -e '/^license-files/d' ${WRKSRC}/pyproject.toml
+
+.include <bsd.port.mk>
diff --git a/misc/py-llama-index-embeddings-huggingface/distinfo b/misc/py-llama-index-embeddings-huggingface/distinfo
new file mode 100644
index 000000000000..6e6ed4447b61
--- /dev/null
+++ b/misc/py-llama-index-embeddings-huggingface/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1783087734
+SHA256 (llama_index_embeddings_huggingface-0.7.0.tar.gz) = da8a2a65df9404112c4430dfada09d4f846ba165197a25dbe77f734014c56a87
+SIZE (llama_index_embeddings_huggingface-0.7.0.tar.gz) = 8692
diff --git a/misc/py-llama-index-embeddings-huggingface/pkg-descr b/misc/py-llama-index-embeddings-huggingface/pkg-descr
new file mode 100644
index 000000000000..0a34ff84849b
--- /dev/null
+++ b/misc/py-llama-index-embeddings-huggingface/pkg-descr
@@ -0,0 +1,4 @@
+LlamaIndex Embeddings HuggingFace provides HuggingFace embedding model
+integration for LlamaIndex. It enables the use of HuggingFace sentence
+transformers and embedding models within LlamaIndex data pipelines for
+semantic search and retrieval applications.