Package org.snmp4j.mcp.tool.mib.semantic
package org.snmp4j.mcp.tool.mib.semantic
-
ClassDescriptionPluggable backend that converts text into dense floating-point vectors.MCP tool that performs semantic (vector-similarity) search over all MIB objects currently loaded in the server's
SmiManager.Converts aSmiObjectinto one or more plain-text chunks suitable for embedding.In-memory vector index over MIB objects with cosine-similarity search and optional GZIP'd JSON persistence.Metadata stored for each indexed chunk.A single search hit with its cosine-similarity score.AnEmbeddingClientthat runssentence-transformers/all-MiniLM-L6-v2locally via ONNX Runtime — no external API or internet connection required after the model files have been downloaded and cached on first use (~23 MB, quantized).EmbeddingClientthat calls the OpenAI Embeddings API (POST https://api.openai.com/v1/embeddings).Fluent builder forOpenAiEmbeddingClient.