Uses of Interface
org.snmp4j.mcp.tool.mib.semantic.EmbeddingClient
Packages that use EmbeddingClient
-
Uses of EmbeddingClient in org.snmp4j.mcp.tool.mib.semantic
Classes in org.snmp4j.mcp.tool.mib.semantic that implement EmbeddingClientModifier and TypeClassDescriptionclassAnEmbeddingClientthat 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).classEmbeddingClientthat calls the OpenAI Embeddings API (POST https://api.openai.com/v1/embeddings).Methods in org.snmp4j.mcp.tool.mib.semantic with parameters of type EmbeddingClientModifier and TypeMethodDescriptionvoidMibEmbeddingIndex.build(com.snmp4j.smi.SmiManager smiManager, EmbeddingClient client, MibChunkFormatter formatter) Builds the index synchronously by embedding all chunks of every object returned bysmiManager.findSmiObject(null, ACCEPT_ALL).voidMibEmbeddingIndex.upsert(com.snmp4j.smi.SmiObject obj, EmbeddingClient client, MibChunkFormatter formatter) Incrementally upserts (adds or replaces) a single object and all of its chunks.Constructors in org.snmp4j.mcp.tool.mib.semantic with parameters of type EmbeddingClientModifierConstructorDescriptionMcpMibSemanticSearch(com.snmp4j.smi.SmiManager smiManager, EmbeddingClient embeddingClient, Path repositoryDir) Creates a new semantic search tool.