zvec/python/zvec/extension
Maxime Grenu e3e8b76ddb
feat(examples): add custom HTTP embedding example for LM Studio / Ollama (#149)
* feat(examples): add custom HTTP embedding example for LM Studio / Ollama

* feat(extension): promote HTTPDenseEmbedding to first-class extension

Move the HTTP embedding implementation from the example script into
python/zvec/extension/ as HTTPDenseEmbedding, inheriting from
DenseEmbeddingFunction. The example now imports from zvec.extension
instead of defining the class inline.

Signed-off-by: Maxime <maxime@cluster2600.com>
Signed-off-by: Maxime Grenu <maxime.grenu@gmail.com>

* fix(examples): resolve ruff lint errors in HTTP embedding example

Move zvec imports to top-level, add noqa for print statements,
replace os.path.exists with pathlib, fix import sorting.

Signed-off-by: Maxime <maxime@cluster2600.com>
Signed-off-by: Maxime Grenu <maxime.grenu@gmail.com>

* style: apply ruff formatter

Signed-off-by: Maxime <maxime@cluster2600.com>
Signed-off-by: Maxime Grenu <maxime.grenu@gmail.com>

* ci: retrigger CI (flaky macOS C++ test)

The vector_column_indexer_test failure is a known flaky assertion in
hnsw_streamer_entity.h, unrelated to Python-only changes in this PR.

Signed-off-by: Maxime <maxime@cluster2600.com>
Signed-off-by: Maxime Grenu <maxime.grenu@gmail.com>

* chore: remove custom HTTP embedding example

Per maintainer feedback, examples requiring an external LLM server
belong in the zvec-web project rather than in this repository.

Signed-off-by: Maxime Grenu <maxime.grenu@gmail.com>

---------

Signed-off-by: Maxime <maxime@cluster2600.com>
Signed-off-by: Maxime Grenu <maxime.grenu@gmail.com>
2026-03-03 21:13:54 +08:00
..
__init__.py feat(examples): add custom HTTP embedding example for LM Studio / Ollama (#149) 2026-03-03 21:13:54 +08:00
bm25_embedding_function.py feat: support ai extension (#88) 2026-02-12 18:33:41 +08:00
embedding_function.py fix(py): py with build-in package typing not typing_extensions (#99) 2026-02-12 23:38:18 +08:00
http_embedding_function.py feat(examples): add custom HTTP embedding example for LM Studio / Ollama (#149) 2026-03-03 21:13:54 +08:00
jina_embedding_function.py feat: add jina embeddings v5 support (#156) 2026-02-26 14:40:15 +08:00
jina_function.py feat: add jina embeddings v5 support (#156) 2026-02-26 14:40:15 +08:00
multi_vector_reranker.py feat: support ai extension (#88) 2026-02-12 18:33:41 +08:00
openai_embedding_function.py feat: support ai extension (#88) 2026-02-12 18:33:41 +08:00
openai_function.py feat: support ai extension (#88) 2026-02-12 18:33:41 +08:00
qwen_embedding_function.py feat: support ai extension (#88) 2026-02-12 18:33:41 +08:00
qwen_function.py feat: support ai extension (#88) 2026-02-12 18:33:41 +08:00
qwen_rerank_function.py feat: support ai extension (#88) 2026-02-12 18:33:41 +08:00
rerank_function.py feat: support ai extension (#88) 2026-02-12 18:33:41 +08:00
sentence_transformer_embedding_function.py feat: support ai extension (#88) 2026-02-12 18:33:41 +08:00
sentence_transformer_function.py feat: support ai extension (#88) 2026-02-12 18:33:41 +08:00
sentence_transformer_rerank_function.py feat: support ai extension (#88) 2026-02-12 18:33:41 +08:00