UTCP plugin providing in-memory embedding-based semantic tool search.
Project description
UTCP In-Memory Embeddings Search Plugin
This plugin registers the in-memory embedding-based semantic search strategy with UTCP 1.0 via entry points.
Installation
pip install utcp-in-mem-embeddings
Optionally, for high-quality embeddings:
pip install "utcp-in-mem-embeddings[embedding]"
Or install the required dependencies directly:
pip install "sentence-transformers>=2.2.0" "torch>=1.9.0"
Why are sentence-transformers and torch needed?
While the plugin works without these packages (using a simple character frequency-based fallback), installing them provides significant benefits:
-
Enhanced Semantic Understanding: The
sentence-transformerspackage provides pre-trained models that convert text into high-quality vector embeddings, capturing the semantic meaning of text rather than just keywords. -
Better Search Results: With these packages installed, the search can understand conceptual similarity between queries and tools, even when they don't share exact keywords.
-
Performance: The default model (all-MiniLM-L6-v2) offers a good balance between quality and performance for semantic search applications.
-
Fallback Mechanism: Without these packages, the plugin automatically falls back to a simpler text similarity method, which works but with reduced accuracy.
How it works
When installed, this package exposes an entry point under utcp.plugins so the UTCP core can auto-discover and register the in_mem_embeddings strategy.
The embeddings are cached in memory for improved performance during repeated searches.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file utcp_in_mem_embeddings-1.0.0.tar.gz.
File metadata
- Download URL: utcp_in_mem_embeddings-1.0.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
257153929a1dcc91499f3a4747f6e42796a7f0f691afa0376827a353500f4213
|
|
| MD5 |
96a12ee0abdf85135090d7a9e34a8691
|
|
| BLAKE2b-256 |
7f864e80638aa6fee1a3ca6dd3ad8ace1cd99ff3cf4ffec55e621d467cd2991b
|
File details
Details for the file utcp_in_mem_embeddings-1.0.0-py3-none-any.whl.
File metadata
- Download URL: utcp_in_mem_embeddings-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6df81736df8810bacd3b0d602583b3ab14c3e549e6477f8be77ab071d16da73
|
|
| MD5 |
218e1569e67acaef6fbd065dd9a20b52
|
|
| BLAKE2b-256 |
ed329684260b0023bcdce1a542423103ccbae2f196a6bf30b01c865af30dc063
|