MCPcopy Index your code

hub / github.com/vllm-project/semantic-router / functions

Functions18,219 in github.com/vllm-project/semantic-router

↓ 4,444 callersMethodFatalf
(format string, args ...interface{})
src/semantic-router/pkg/config/reference_config_test_helpers_test.go:15
↓ 1,237 callersMethodget
* Get a registered tool by ID
dashboard/frontend/src/tools/registry.ts:218
↓ 1,210 callersMethodError
()
src/semantic-router/pkg/extproc/utils_fast.go:253
↓ 905 callersMethodRun
()
e2e/profiles/llm-d/profile.go:151
↓ 861 callersMethodget
(name, signature string)
src/semantic-router/pkg/apiserver/kb_map_store.go:65
↓ 569 callersMethodSet
Set writes or overwrites a single entry.
src/semantic-router/pkg/selection/lookuptable/table.go:220
↓ 535 callersMethodError
()
dashboard/backend/handlers/runtime_config_apply.go:26
↓ 441 callersMethodGet
Get retrieves a memory by ID. Returns nil and error if the memory doesn't exist.
src/semantic-router/pkg/memory/store.go:44
↓ 405 callersMethodClose
Close releases resources held by the store.
src/semantic-router/pkg/memory/store.go:69
↓ 390 callersMethodpush
(id int, dist float32)
src/semantic-router/pkg/hnsw/hnsw.go:438
↓ 384 callersMethodString
()
src/semantic-router/pkg/dsl/ast.go:15
↓ 368 callersMethodHelper
()
src/semantic-router/pkg/config/reference_config_test_helpers_test.go:14
↓ 273 callersMethodwrite
(format string, args ...interface{})
src/semantic-router/pkg/dsl/decompiler.go:74
↓ 259 callersMethodget
Return the most recent entry for ``session_id``, or None.
e2e/testing/anthropic-shim/anthropic_shim/app.py:116
↓ 256 callersFunctionset
(value: string)
dashboard/frontend/src/utils/authFetch.ts:344
↓ 254 callersMethodLen
()
src/semantic-router/pkg/cache/eviction_policy.go:508
↓ 251 callersMethodAdd
Add inserts a new record. Returns the record ID.
src/semantic-router/pkg/routerreplay/store/store.go:184
↓ 210 callersMethoditems
()
src/semantic-router/pkg/hnsw/hnsw.go:528
↓ 192 callersMethodjson
(self)
src/vllm-sr/tests/test_eval_command.py:129
↓ 190 callersMethodHeader
()
dashboard/backend/router/mcp_routes_test.go:277
↓ 179 callersMethodString
String returns the string representation of NLILabel
candle-binding/semantic-router.go:2698
↓ 168 callersFunctionmakeEmbedding
(values ...float32)
src/semantic-router/pkg/classification/embedding_classifier_test.go:446
↓ 157 callersMethodadd
(self, severity, category, file, line, message, snippet="")
tools/security/scan_malicious_code.py:183
↓ 152 callersFunctionround
(num: number, decimal: number)
dashboard/wizmap/src/utils/utils.ts:14
↓ 146 callersMethodlog
Print message.
e2e/testing/09-openai-api-validation-test.py:29
↓ 145 callersMethodfrom_pretrained
Load a pretrained model from the specified path.
src/training/model_experiment/dual_classifier/dual_classifier.py:163
↓ 145 callersMethodwriteErrorResponse
(w http.ResponseWriter, statusCode int, errorCode, message string)
src/semantic-router/pkg/apiserver/server.go:338
↓ 137 callersMethodWriteHeader
(status int)
dashboard/backend/auth/middleware.go:399
↓ 136 callersMethodroute
Route req to the best instance. Returns False if all queues full.
src/fleet-sim/fleet_sim/core/pool.py:75
↓ 130 callersMethodRegister
(name string, s ToolRetriever)
src/semantic-router/pkg/tools/retriever.go:39
↓ 130 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
dashboard/backend/handlers/openclaw_mcp.go:86
↓ 117 callersFunctionmustMapAt
(t testingT, root map[string]interface{}, path ...string)
src/semantic-router/pkg/config/reference_config_test_helpers_test.go:276
↓ 117 callersFunctionrepoRel
(parts ...string)
src/semantic-router/pkg/config/docs_contract_test.go:15
↓ 116 callersMethodWrite
(state State)
src/semantic-router/pkg/startupstatus/status.go:29
↓ 115 callersFunctionassertMapCoversStructFields
(t testingT, node map[string]interface{}, typ reflect.Type, path string, skip ...string)
src/semantic-router/pkg/config/reference_config_test_helpers_test.go:148
↓ 106 callersMethoddecode
()
src/semantic-router/pkg/routerreplay/store/postgres_record_row.go:283
↓ 105 callersFunctionCompile
Compile parses a DSL source string and compiles it to a RouterConfig.
src/semantic-router/pkg/dsl/compiler.go:19
↓ 97 callersFunctionwriteJSONError
(w http.ResponseWriter, msg string, code int)
dashboard/backend/handlers/openclaw_helpers.go:200
↓ 95 callersMethodhas
* Check if a tool is registered
dashboard/frontend/src/tools/registry.ts:211
↓ 86 callersMethodHandleChunk
HandleChunk processes a single body chunk from Envoy STREAMED mode.
src/semantic-router/pkg/extproc/processor_req_body_streamed.go:118
↓ 85 callersFunctionmin
Helper function
src/semantic-router/pkg/extproc/req_filter_rag.go:431
↓ 83 callersFunctiongetStringField
(fields map[string]Value, key string)
src/semantic-router/pkg/dsl/compiler_fields.go:10
↓ 83 callersMethodrun
(instance: WebAssembly.Instance)
dashboard/frontend/src/lib/wasm.ts:39
↓ 82 callersMethodName
Name returns the backend name (e.g., "vllm_omni", "openai", "replicate")
src/semantic-router/pkg/imagegen/interface.go:13
↓ 82 callersMethodSlice
()
src/semantic-router/pkg/config/registry_hf.go:99
↓ 81 callersMethodRelease
Release returns the handler to the pool for reuse.
src/semantic-router/pkg/extproc/processor_req_body_streamed.go:110
↓ 81 callersFunctionnewStreamedBodyHandler
(router *OpenAIRouter, ctx *RequestContext)
src/semantic-router/pkg/extproc/processor_req_body_streamed.go:88
↓ 79 callersFunctionloadLegacyRuntimeConfigForTest
(configPath string)
src/semantic-router/pkg/config/config_test.go:16
↓ 78 callersMethodparse
()
dashboard/frontend/src/tools/executors/calculate.ts:23
↓ 77 callersMethodlog
(format string, args ...interface{})
e2e/profiles/dynamo/profile.go:708
↓ 74 callersMethodaddDiag
---------- Diagnostic Helpers ----------
src/semantic-router/pkg/dsl/validator.go:743
↓ 74 callersFunctioncancel
()
dashboard/frontend/src/components/chatStreamingFrameSync.ts:48
↓ 72 callersMethodlog
log writes a log message using the configured handler
src/semantic-router/pkg/mcp/interface.go:86
↓ 72 callersMethodpop
()
src/semantic-router/pkg/hnsw/hnsw.go:443
↓ 71 callersMethodresolve
(spec ModelSpec)
src/semantic-router/pkg/config/registry_hf.go:135
↓ 69 callersMethodClose
Close releases all resources held by the backend.
src/semantic-router/pkg/vectorstore/service.go:43
↓ 69 callersFunctiongenerateRealisticEmbedding
Generate realistic embedding for a query type Different query types have distinct embedding patterns
src/semantic-router/pkg/modelselection/selector_test.go:490
↓ 69 callersMethodprint_test_result
Print test result with pass/fail indicator.
e2e/testing/vllm-sr-cli/cli_test_base.py:473
↓ 68 callersFunctionasObject
(value: unknown)
dashboard/frontend/src/pages/configPageRouterDefaultsSupport.ts:186
↓ 66 callersFunctionassertSliceUnionCoversStructFields
(t testingT, items interface{}, typ reflect.Type, path string, skip ...string)
src/semantic-router/pkg/config/reference_config_test_helpers_test.go:157
↓ 66 callersMethodcompile
Compile DSL → YAML + CRD + AST + diagnostics
dashboard/frontend/src/types/dsl.ts:357
↓ 65 callersMethodaddEventListener
(type: string, listener: EventListener)
dashboard/frontend/e2e/claw-room-collaboration.spec.ts:267
↓ 65 callersFunctionget
(name: str)
src/fleet-sim/fleet_sim/models/catalog.py:165
↓ 63 callersMethodExists
Exists checks if the cluster exists
e2e/pkg/cluster/kind.go:166
↓ 63 callersMethodStore
Store saves a new memory. Returns error if the memory ID already exists.
src/semantic-router/pkg/memory/store.go:36
↓ 63 callersFunctionsetupServiceConnection
setupServiceConnection sets up port forwarding to the configured service and returns the local port to use for HTTP requests and a cleanup function
e2e/testcases/common.go:18
↓ 62 callersMethodDeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
deploy/operator/api/v1alpha1/zz_generated.deepcopy.go:1647
↓ 62 callersFunctionisModelInitializationError
isModelInitializationError checks if the error is related to model initialization failure
candle-binding/semantic-router_test.go:32
↓ 61 callersMethodencode
Encode texts to embeddings. Args: texts: List of texts to encode batch_size: Batch size for encoding
src/training/model_selection/ml_model_selection/embeddings.py:81
↓ 61 callersFunctionmakeTestRouter
---------- helpers ----------
src/semantic-router/pkg/extproc/processor_req_body_streamed_test.go:20
↓ 60 callersFunctiongetFloat64Field
(fields map[string]Value, key string)
src/semantic-router/pkg/dsl/compiler_fields.go:44
↓ 59 callersMethodContext
()
src/semantic-router/pkg/extproc/extproc_test.go:461
↓ 58 callersMethodSearch
Search performs a vector similarity search.
src/semantic-router/pkg/vectorstore/service.go:39
↓ 58 callersMethodwriteJSONResponse
(w http.ResponseWriter, statusCode int, data interface{})
src/semantic-router/pkg/apiserver/server.go:302
↓ 57 callersMethodQuery
(ctx context.Context, coll string, parts []string, expr string, out []string, opts ...client.SearchQueryOption
src/semantic-router/pkg/memory/milvus_store_test.go:254
↓ 57 callersFunctionValidate
Validate performs 3-level validation on a DSL source string. It first parses the input; Level 1 errors come from the parser. Then it runs Level 2 (ref
src/semantic-router/pkg/dsl/validator.go:98
↓ 57 callersMethodValidate
Validate checks the vector store configuration for errors.
src/semantic-router/pkg/config/vectorstore.go:181
↓ 57 callersMethodload
Load model from JSON.
src/training/model_selection/ml_model_selection/models.py:128
↓ 57 callersMethodlog
(format string, args ...interface{})
e2e/profiles/istio/profile.go:153
↓ 56 callersMethodCreateCollection
CreateCollection creates a new collection for a vector store.
src/semantic-router/pkg/vectorstore/service.go:24
↓ 56 callersMethodis_available
Check if Milvus verification is available.
e2e/testing/memory_tests/base.py:211
↓ 56 callersMethodlog
(format string, args ...interface{})
e2e/profiles/ml-model-selection/profile.go:314
↓ 56 callersFunctiontruncateString
truncateString truncates a string to maxLen characters, adding "..." if truncated
e2e/testcases/common.go:127
↓ 55 callersMethodList
List returns memories matching the filter criteria with pagination. UserID is required. Returns memories sorted by created_at descending.
src/semantic-router/pkg/memory/store.go:52
↓ 55 callersFunctionNewLlamaStackBackend
NewLlamaStackBackend creates a new Llama Stack vector store backend.
src/semantic-router/pkg/vectorstore/llama_stack_backend.go:83
↓ 54 callersMethodClose
Close releases all resources held by the cache backend
src/semantic-router/pkg/cache/cache_interface.go:60
↓ 54 callersFunctionformatNumber
(value: number, maximumFractionDigits = 0)
dashboard/frontend/src/pages/fleetSimPageSupport.tsx:66
↓ 53 callersFunctionassertChunkEaten
assertChunkEaten verifies a non-EOS response has CONTINUE + empty body mutation.
src/semantic-router/pkg/extproc/processor_req_body_streamed_test.go:71
↓ 53 callersFunctionnewTestOpenClawHandler
newTestOpenClawHandler returns an OpenClawHandler with a SQLite workflow store under dataDir.
dashboard/backend/handlers/openclaw_test_helpers_test.go:11
↓ 51 callersMethodadd
(self, severity, category, file, line, message, snippet="", ast_context="")
tools/security/ast_security_scanner.py:133
↓ 51 callersFunctionnormalizeVec
normalizeVec returns a unit vector.
src/semantic-router/pkg/vectorstore/memory_backend_test.go:315
↓ 49 callersMethodsave_pretrained
Save the model and tokenizer to the specified path.
src/training/model_experiment/dual_classifier/dual_classifier.py:151
↓ 48 callersMethodObserve
Observe records an actual provider prompt-token usage sample.
src/semantic-router/pkg/classification/calibrated_token_counter.go:140
↓ 48 callersFunctionParse
Parse tokenizes and parses a DSL source string into a Program AST. If the input has syntax errors, Parse attempts error recovery by splitting the inpu
src/semantic-router/pkg/dsl/parser.go:43
↓ 48 callersFunctioncreateValidTestConfig
createValidTestConfig creates a minimal canonical v0.3 config file for testing.
dashboard/backend/handlers/config_test_helpers_test.go:10
↓ 48 callersMethodlog
(format string, args ...interface{})
e2e/pkg/framework/runner.go:238
↓ 47 callersFunctionCountTokensApprox
CountTokensApprox estimates the BPE token count for mixed-script text. For whitespace-delimited words (Latin, Cyrillic, Arabic, etc.): ~1.3 tokens pe
src/semantic-router/pkg/promptcompression/sentence.go:164
↓ 47 callersFunctionDefaultConfig
DefaultConfig returns a Config with empirically reasonable defaults.
src/semantic-router/pkg/promptcompression/compressor.go:86
↓ 47 callersMethodScan
(dest ...interface{})
src/semantic-router/pkg/vectorstore/metadata_registry_postgres.go:265
↓ 47 callersMethodbuild
Derive a GpuProfile-compatible object from first principles.
src/fleet-sim/fleet_sim/gpu_profiles/builder.py:192
next →1–100 of 18,219, ranked by callers