MCPcopy Create free account

hub / github.com/nlweb-ai/NLWeb / functions

Functions2,264 in github.com/nlweb-ai/NLWeb

↓ 1,708 callersMethodget
Get value from cache if not expired
AgentFinder/code/who_handler.py:35
↓ 472 callersMethodinfo
Log an info message.
AskAgent/python/misc/logger/logger.py:143
↓ 327 callersMethoderror
Log an error message.
AskAgent/python/misc/logger/logger.py:151
↓ 264 callersMethoddebug
Log a debug message.
AskAgent/python/misc/logger/logger.py:139
↓ 140 callersMethodwarning
Log a warning message.
AskAgent/python/misc/logger/logger.py:147
↓ 77 callersMethodexception
Log an exception with traceback.
AskAgent/python/misc/logger/logger.py:165
↓ 69 callersMethodexecute
Execute a template's plan with mapped values. Returns dict with: results: list of result dicts summary: optional narr
DataFinder/translator/plan_executor.py:25
↓ 68 callersFunctionget_configured_logger
Get a lazy logger that will be configured on first use and writes asynchronously
AskAgent/python/misc/logger/logging_config_helper.py:416
↓ 63 callersFunctionpause
Pause for effect
DataFinder/simple_demo.py:43
↓ 57 callersMethod_get_config_value
Get configuration value. If value is a string, return it directly. Otherwise, treat it as an environment variable name and fetch from
AskAgent/python/core/config.py:226
↓ 54 callersMethodsend_message
Override send_message to ensure URLs point to gateway endpoint with site parameter.
AskAgent/python/core/whoHandler.py:36
↓ 53 callersMethodlog_with_context
Log a message with additional context information. Args: level: Log level message: Log message c
AskAgent/python/misc/logger/logger.py:169
↓ 50 callersMethodwrite
Write chunk to response
AskAgent/python/webserver/aiohttp_streaming_wrapper.py:172
↓ 44 callersMethodrun
Process all stores from the input file.
AskAgent/python/tools/site_description.py:420
↓ 42 callersFunctionpause
Pause for dramatic effect
DataFinder/record_demo_auto.py:25
↓ 40 callersFunctionthought_print
Print text with thought trace background
DataFinder/simple_demo.py:71
↓ 37 callersFunctioncommentary
Print commentary with typewriter effect
DataFinder/record_demo_auto.py:38
↓ 37 callersMethodprecheck_step_done
(self, step_name)
AskAgent/python/core/state.py:21
↓ 37 callersFunctionw
(e,o)
static/dompurify.min.js:2
↓ 35 callersMethodsearch
Search for documents matching the query and site. Args: query: Search query string site: Site identifier or
AskAgent/python/core/retriever.py:780
↓ 34 callersMethodrecord_error
Record error occurrence.
tests/performance/test_load.py:97
↓ 32 callersMethodclose
Cleanup connections
AgentFinder/code/llm_backend.py:46
↓ 32 callersMethodconnect
Connect to WebSocket with authentication.
tests/integration/test_websocket.py:49
↓ 27 callersMethodadd_participant
Add participant to conversation.
tests/e2e/test_multi_participant.py:108
↓ 26 callersFunctionget_param
(query_params, param_name, param_type=str, default_value=None)
AskAgent/python/core/utils/utils.py:100
↓ 26 callersFunctionpause
Pause for dramatic effect
DataFinder/record_demo.py:19
↓ 25 callersMethodclear
Clear all cache entries
AgentFinder/code/who_handler.py:56
↓ 24 callersMethodset
Set value in cache with current timestamp
AgentFinder/code/who_handler.py:48
↓ 22 callersFunctionget_embedding
Get embedding for the provided text using the specified provider and model. Args: text: The text to embed provider: Optional
AskAgent/python/core/embedding.py:28
↓ 22 callersMethodget_embedding_provider
Get the specified embedding provider config or the preferred one if not specified.
AskAgent/python/core/config.py:698
↓ 22 callersMethodrecord_response_time
Record response time for operation.
tests/performance/test_load.py:89
↓ 22 callersMethodto_dict
Convert message to dictionary.
AskAgent/python/core/schemas.py:111
↓ 21 callersFunctionask_llm
Route an LLM request to the specified endpoint, with dispatch based on llm_type. Args: prompt: The text prompt to send to the LLM
AskAgent/python/core/llm.py:156
↓ 21 callersFunctionget_vector_db_client
Factory function to create a vector database client with the appropriate configuration. Uses a global cache to avoid repeated initialization
AskAgent/python/core/retriever.py:1055
↓ 19 callersMethodrenderItems
* Render multiple items/results
static/chat-ui-common.js:80
↓ 18 callersMethodescapeHtml
* Escape HTML special characters to prevent XSS
static/chat-ui-common.js:54
↓ 18 callersMethodsafeSetInnerHTML
* Safely set HTML content using DOMPurify sanitization * DOMPurify is recognized by CodeQL as a trusted sanitizer
static/chat-ui-common.js:65
↓ 18 callersFunctionsay
Print commentary with typewriter effect
DataFinder/simple_demo.py:56
↓ 18 callersFunctionsearch
Simplified search interface that combines client creation and search in one call. Args: query: The search query site: Site t
AskAgent/python/core/retriever.py:1087
↓ 18 callersMethodwrite_stream
(self, data, end_response=False)
AskAgent/python/webserver/mcp_wrapper.py:241
↓ 17 callersMethodcreate_valid_oauth_token
Create valid OAuth token.
tests/security/test_auth.py:42
↓ 16 callersMethodstart_monitoring
Start continuous monitoring.
tests/performance/test_load.py:57
↓ 15 callersFunctionR
(e)
static/dompurify.min.js:2
↓ 15 callersFunctioncreate_test_messages
Factory for creating test messages.
tests/unit/test_storage.py:69
↓ 15 callersFunctionfix_url
Ensure URL is properly formatted. Args: url: Input URL Returns: Fixed URL
AskAgent/python/data_loading/rss2schema.py:44
↓ 15 callersFunctionsafe_get_text
Safely extract text from an XML element. Args: element: XML element or None Returns: Text content or empty string
AskAgent/python/data_loading/rss2schema.py:29
↓ 15 callersMethodstop_monitoring
Stop monitoring and return final metrics.
tests/performance/test_load.py:81
↓ 15 callersMethodstore_message
Store message as Message objects in handler.messages. Args: message: The message to store (dict or Message object)
AskAgent/python/core/utils/message_senders.py:188
↓ 14 callersFunctionfind_prompt
(site, item_type, prompt_name)
AskAgent/python/core/prompts.py:172
↓ 13 callersMethodrun_prompt
(self, prompt_name, level="low", verbose=False, timeout=8)
AskAgent/python/core/prompts.py:345
↓ 13 callersFunctionsend_chunk
(data, end_response=False)
AskAgent/python/webserver/routes/mcp.py:93
↓ 12 callersMethodcompile
Compile a semantic query JSON into SQL. Returns (sql_string, db_config) where db_config has: - primary_db: path to the main databas
DataFinder/translator/semantic_to_sql.py:27
↓ 12 callersMethodprocess_message
(self, message, context, stream_callback=None)
tests/unit/test_participants.py:52
↓ 12 callersMethodrecord_latency
Record latency measurement.
tests/performance/test_latency.py:55
↓ 12 callersFunctionrun_query
Execute a SQL query that may span multiple databases. Args: sql: The full SQL string (may include ATTACH DATABASE statements) db_
DataFinder/translator/execute.py:12
↓ 12 callersFunctiontimestamp
()
ModelRouter/nlweb_router/scripts/nanny_openrouter.py:35
↓ 11 callersMethodconnect
Connect to WebSocket.
tests/e2e/test_multi_participant_real.py:45
↓ 10 callersFunctionEt
(e)
static/dompurify.min.js:2
↓ 10 callersMethod_get_auth_headers
Get authentication headers for OpenSearch requests. Supports both basic auth (username:password) and API key authentication.
AskAgent/python/retrieval_providers/opensearch_client.py:83
↓ 10 callersFunctionchat
Send a chat completion request, trying providers in order until one succeeds.
DataFinder/translator/llm_client.py:90
↓ 10 callersMethodcreate_conversation
Create a new conversation.
tests/e2e/test_multi_participant.py:94
↓ 10 callersMethoddisconnect
Disconnect WebSocket.
tests/e2e/test_multi_participant_real.py:108
↓ 10 callersFunctionfill_prompt
(prompt_str, handler, pr_dict=None)
AskAgent/python/core/prompts.py:143
↓ 10 callersMethodfindConversation
(id)
static/conversation-manager.js:544
↓ 10 callersMethodget_sites
Get list of all sites available in the database. For backends that don't support get_sites, returns an empty list to indicate
AskAgent/python/core/retriever.py:980
↓ 10 callersMethodresolve_column
Resolve an ontology property to source column info for a given type. Returns dict with 'type' key: 'direct', 'fk_ref', or 'join'.
DataFinder/translator/mapping_parser.py:116
↓ 10 callersMethodrun
Run all dependency checks.
check_dependencies.py:230
↓ 10 callersFunctionsend_response
(status, headers)
AskAgent/python/webserver/routes/mcp.py:89
↓ 9 callersFunctionRt
(e,t,n)
static/dompurify.min.js:2
↓ 9 callersMethod_get_es_client
Get or initialize Elasticsearch client. Returns: AsyncElasticsearch: Elasticsearch async client instance
AskAgent/python/retrieval_providers/elasticsearch_client.py:120
↓ 9 callersMethoddo
(self)
AskAgent/python/core/ranking.py:426
↓ 9 callersMethodhandleStreamData
(data, shouldStore = true)
static/chat-interface-unified.js:575
↓ 9 callersMethodinit
()
static/oauth-login.js:22
↓ 9 callersFunctionsection_header
Print section header
DataFinder/record_demo_auto.py:57
↓ 9 callersMethodstart_precheck_step
Synchronous version for immediate state update
AskAgent/python/core/state.py:17
↓ 9 callersMethodtoDict
()
static/schemas.js:115
↓ 8 callersFunctionD
(t)
static/dompurify.min.js:2
↓ 8 callersMethod_get_qdrant_client
Get or initialize Qdrant client. Returns: AsyncQdrantClient: Qdrant client instance
AskAgent/python/retrieval_providers/qdrant.py:137
↓ 8 callersMethod_send_no_items_found_message
Send message when no matching items are found.
AskAgent/python/methods/item_details.py:232
↓ 8 callersFunctionbatch_get_embeddings
Get embeddings for a batch of texts. Args: texts: List of texts to embed provider: Optional provider name, defaults to prefe
AskAgent/python/core/embedding.py:185
↓ 8 callersMethodconnect_with_auth
Attempt WebSocket connection with authentication.
tests/security/test_auth.py:117
↓ 8 callersFunctionconvert_messages_to_appsdk_response
Convert NLWeb message list into an AppSDK-compatible payload. The resulting object has the shape required by AppSDK tools: { "st
AskAgent/python/core/utils/appsdk_adapter.py:92
↓ 8 callersMethodendStreaming
()
static/chat-interface-unified.js:1015
↓ 8 callersMethodget_conversation_stats
Get conversation statistics.
tests/e2e/test_multi_participant.py:166
↓ 8 callersFunctionis_url
Check if a path is a URL. Args: path: Path to check Returns: True if the path is a URL, False otherwise
AskAgent/python/data_loading/db_load.py:127
↓ 8 callersMethodrecord_received_message
Record a received message.
tests/reliability/test_recovery.py:160
↓ 8 callersMethodrunQuery
(self)
AskAgent/python/core/baseHandler.py:321
↓ 8 callersFunctionsection_header
Print section header
DataFinder/record_demo.py:30
↓ 8 callersMethodsend_message
Send message from participant.
tests/e2e/test_multi_participant.py:120
↓ 8 callersMethodsend_message
Send a message through WebSocket.
tests/e2e/test_multi_participant_real.py:80
↓ 8 callersFunctiontrim_json
(obj)
AskAgent/python/core/utils/json_utils.py:20
↓ 7 callersFunctionAt
(e,t)
static/dompurify.min.js:2
↓ 7 callersMethod_execute_with_retry
Execute a database query with retry logic for transient failures. Args: query_func: Function that performs the database
AskAgent/python/retrieval_providers/postgres_client.py:199
↓ 7 callersMethod_get_es_client
Get or initialize Elasticsearch client. Returns: AsyncElasticsearch: Elasticsearch async client instance
AskAgent/python/storage_providers/elasticsearch_storage.py:58
↓ 7 callersMethod_get_milvus_client
Get or create a Milvus client. Args: embedding_size: Size of the embeddings ("small"=1536 or "large"=3072) Retu
AskAgent/python/retrieval_providers/milvus_client.py:75
↓ 7 callersFunctionbuild_appsdk_error_response
Create an AppSDK-compatible error payload.
AskAgent/python/core/utils/appsdk_adapter.py:207
↓ 7 callersMethodcreateMetadataItem
(label, value)
static/streaming.js:385
↓ 7 callersFunctiondelete_documents_by_site
Delete all documents for a specific site from the database. Args: site: Site identifier to delete documents for endpoint_nam
AskAgent/python/core/retriever.py:1227
↓ 7 callersMethodenqueue_log
Add a log message to the queue for async processing
AskAgent/python/misc/logger/logging_config_helper.py:339
↓ 7 callersMethodensureDB
* Ensure database is initialized
static/indexed-storage.js:49
next →1–100 of 2,264, ranked by callers