Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nlweb-ai/NLWeb
/ functions
Functions
2,264 in github.com/nlweb-ai/NLWeb
⨍
Functions
2,264
◇
Types & classes
290
↳
Endpoints
4
↓ 1,708 callers
Method
get
Get value from cache if not expired
AgentFinder/code/who_handler.py:35
↓ 472 callers
Method
info
Log an info message.
AskAgent/python/misc/logger/logger.py:143
↓ 327 callers
Method
error
Log an error message.
AskAgent/python/misc/logger/logger.py:151
↓ 264 callers
Method
debug
Log a debug message.
AskAgent/python/misc/logger/logger.py:139
↓ 140 callers
Method
warning
Log a warning message.
AskAgent/python/misc/logger/logger.py:147
↓ 77 callers
Method
exception
Log an exception with traceback.
AskAgent/python/misc/logger/logger.py:165
↓ 69 callers
Method
execute
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 callers
Function
get_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 callers
Function
pause
Pause for effect
DataFinder/simple_demo.py:43
↓ 57 callers
Method
_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 callers
Method
send_message
Override send_message to ensure URLs point to gateway endpoint with site parameter.
AskAgent/python/core/whoHandler.py:36
↓ 53 callers
Method
log_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 callers
Method
write
Write chunk to response
AskAgent/python/webserver/aiohttp_streaming_wrapper.py:172
↓ 44 callers
Method
run
Process all stores from the input file.
AskAgent/python/tools/site_description.py:420
↓ 42 callers
Function
pause
Pause for dramatic effect
DataFinder/record_demo_auto.py:25
↓ 40 callers
Function
thought_print
Print text with thought trace background
DataFinder/simple_demo.py:71
↓ 37 callers
Function
commentary
Print commentary with typewriter effect
DataFinder/record_demo_auto.py:38
↓ 37 callers
Method
precheck_step_done
(self, step_name)
AskAgent/python/core/state.py:21
↓ 37 callers
Function
w
(e,o)
static/dompurify.min.js:2
↓ 35 callers
Method
search
Search for documents matching the query and site. Args: query: Search query string site: Site identifier or
AskAgent/python/core/retriever.py:780
↓ 34 callers
Method
record_error
Record error occurrence.
tests/performance/test_load.py:97
↓ 32 callers
Method
close
Cleanup connections
AgentFinder/code/llm_backend.py:46
↓ 32 callers
Method
connect
Connect to WebSocket with authentication.
tests/integration/test_websocket.py:49
↓ 27 callers
Method
add_participant
Add participant to conversation.
tests/e2e/test_multi_participant.py:108
↓ 26 callers
Function
get_param
(query_params, param_name, param_type=str, default_value=None)
AskAgent/python/core/utils/utils.py:100
↓ 26 callers
Function
pause
Pause for dramatic effect
DataFinder/record_demo.py:19
↓ 25 callers
Method
clear
Clear all cache entries
AgentFinder/code/who_handler.py:56
↓ 24 callers
Method
set
Set value in cache with current timestamp
AgentFinder/code/who_handler.py:48
↓ 22 callers
Function
get_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 callers
Method
get_embedding_provider
Get the specified embedding provider config or the preferred one if not specified.
AskAgent/python/core/config.py:698
↓ 22 callers
Method
record_response_time
Record response time for operation.
tests/performance/test_load.py:89
↓ 22 callers
Method
to_dict
Convert message to dictionary.
AskAgent/python/core/schemas.py:111
↓ 21 callers
Function
ask_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 callers
Function
get_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 callers
Method
renderItems
* Render multiple items/results
static/chat-ui-common.js:80
↓ 18 callers
Method
escapeHtml
* Escape HTML special characters to prevent XSS
static/chat-ui-common.js:54
↓ 18 callers
Method
safeSetInnerHTML
* Safely set HTML content using DOMPurify sanitization * DOMPurify is recognized by CodeQL as a trusted sanitizer
static/chat-ui-common.js:65
↓ 18 callers
Function
say
Print commentary with typewriter effect
DataFinder/simple_demo.py:56
↓ 18 callers
Function
search
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 callers
Method
write_stream
(self, data, end_response=False)
AskAgent/python/webserver/mcp_wrapper.py:241
↓ 17 callers
Method
create_valid_oauth_token
Create valid OAuth token.
tests/security/test_auth.py:42
↓ 16 callers
Method
start_monitoring
Start continuous monitoring.
tests/performance/test_load.py:57
↓ 15 callers
Function
R
(e)
static/dompurify.min.js:2
↓ 15 callers
Function
create_test_messages
Factory for creating test messages.
tests/unit/test_storage.py:69
↓ 15 callers
Function
fix_url
Ensure URL is properly formatted. Args: url: Input URL Returns: Fixed URL
AskAgent/python/data_loading/rss2schema.py:44
↓ 15 callers
Function
safe_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 callers
Method
stop_monitoring
Stop monitoring and return final metrics.
tests/performance/test_load.py:81
↓ 15 callers
Method
store_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 callers
Function
find_prompt
(site, item_type, prompt_name)
AskAgent/python/core/prompts.py:172
↓ 13 callers
Method
run_prompt
(self, prompt_name, level="low", verbose=False, timeout=8)
AskAgent/python/core/prompts.py:345
↓ 13 callers
Function
send_chunk
(data, end_response=False)
AskAgent/python/webserver/routes/mcp.py:93
↓ 12 callers
Method
compile
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 callers
Method
process_message
(self, message, context, stream_callback=None)
tests/unit/test_participants.py:52
↓ 12 callers
Method
record_latency
Record latency measurement.
tests/performance/test_latency.py:55
↓ 12 callers
Function
run_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 callers
Function
timestamp
()
ModelRouter/nlweb_router/scripts/nanny_openrouter.py:35
↓ 11 callers
Method
connect
Connect to WebSocket.
tests/e2e/test_multi_participant_real.py:45
↓ 10 callers
Function
Et
(e)
static/dompurify.min.js:2
↓ 10 callers
Method
_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 callers
Function
chat
Send a chat completion request, trying providers in order until one succeeds.
DataFinder/translator/llm_client.py:90
↓ 10 callers
Method
create_conversation
Create a new conversation.
tests/e2e/test_multi_participant.py:94
↓ 10 callers
Method
disconnect
Disconnect WebSocket.
tests/e2e/test_multi_participant_real.py:108
↓ 10 callers
Function
fill_prompt
(prompt_str, handler, pr_dict=None)
AskAgent/python/core/prompts.py:143
↓ 10 callers
Method
findConversation
(id)
static/conversation-manager.js:544
↓ 10 callers
Method
get_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 callers
Method
resolve_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 callers
Method
run
Run all dependency checks.
check_dependencies.py:230
↓ 10 callers
Function
send_response
(status, headers)
AskAgent/python/webserver/routes/mcp.py:89
↓ 9 callers
Function
Rt
(e,t,n)
static/dompurify.min.js:2
↓ 9 callers
Method
_get_es_client
Get or initialize Elasticsearch client. Returns: AsyncElasticsearch: Elasticsearch async client instance
AskAgent/python/retrieval_providers/elasticsearch_client.py:120
↓ 9 callers
Method
do
(self)
AskAgent/python/core/ranking.py:426
↓ 9 callers
Method
handleStreamData
(data, shouldStore = true)
static/chat-interface-unified.js:575
↓ 9 callers
Method
init
()
static/oauth-login.js:22
↓ 9 callers
Function
section_header
Print section header
DataFinder/record_demo_auto.py:57
↓ 9 callers
Method
start_precheck_step
Synchronous version for immediate state update
AskAgent/python/core/state.py:17
↓ 9 callers
Method
toDict
()
static/schemas.js:115
↓ 8 callers
Function
D
(t)
static/dompurify.min.js:2
↓ 8 callers
Method
_get_qdrant_client
Get or initialize Qdrant client. Returns: AsyncQdrantClient: Qdrant client instance
AskAgent/python/retrieval_providers/qdrant.py:137
↓ 8 callers
Method
_send_no_items_found_message
Send message when no matching items are found.
AskAgent/python/methods/item_details.py:232
↓ 8 callers
Function
batch_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 callers
Method
connect_with_auth
Attempt WebSocket connection with authentication.
tests/security/test_auth.py:117
↓ 8 callers
Function
convert_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 callers
Method
endStreaming
()
static/chat-interface-unified.js:1015
↓ 8 callers
Method
get_conversation_stats
Get conversation statistics.
tests/e2e/test_multi_participant.py:166
↓ 8 callers
Function
is_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 callers
Method
record_received_message
Record a received message.
tests/reliability/test_recovery.py:160
↓ 8 callers
Method
runQuery
(self)
AskAgent/python/core/baseHandler.py:321
↓ 8 callers
Function
section_header
Print section header
DataFinder/record_demo.py:30
↓ 8 callers
Method
send_message
Send message from participant.
tests/e2e/test_multi_participant.py:120
↓ 8 callers
Method
send_message
Send a message through WebSocket.
tests/e2e/test_multi_participant_real.py:80
↓ 8 callers
Function
trim_json
(obj)
AskAgent/python/core/utils/json_utils.py:20
↓ 7 callers
Function
At
(e,t)
static/dompurify.min.js:2
↓ 7 callers
Method
_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 callers
Method
_get_es_client
Get or initialize Elasticsearch client. Returns: AsyncElasticsearch: Elasticsearch async client instance
AskAgent/python/storage_providers/elasticsearch_storage.py:58
↓ 7 callers
Method
_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 callers
Function
build_appsdk_error_response
Create an AppSDK-compatible error payload.
AskAgent/python/core/utils/appsdk_adapter.py:207
↓ 7 callers
Method
createMetadataItem
(label, value)
static/streaming.js:385
↓ 7 callers
Function
delete_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 callers
Method
enqueue_log
Add a log message to the queue for async processing
AskAgent/python/misc/logger/logging_config_helper.py:339
↓ 7 callers
Method
ensureDB
* Ensure database is initialized
static/indexed-storage.js:49
next →
1–100 of 2,264, ranked by callers