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
↓ 2 callers
Function
Nt
(e)
static/dompurify.min.js:2
↓ 2 callers
Function
Ot
(e,t,n)
static/dompurify.min.js:2
↓ 2 callers
Function
St
(e)
static/dompurify.min.js:2
↓ 2 callers
Method
__init__
(self, handler)
AskAgent/python/core/query_analysis/analyze_query.py:25
↓ 2 callers
Method
_consume_stream
( self, response: aiohttp.ClientResponse, query: str | None, )
AskAgent/python/webserver/appsdk_adapter_server.py:201
↓ 2 callers
Method
_ensure_logger_for_sync_ops
Create the actual logger for operations that need immediate response
AskAgent/python/misc/logger/logging_config_helper.py:370
↓ 2 callers
Function
_ensure_package_installed
Ensure the required packages for a database type are installed. Args: db_type: The type of database backend
AskAgent/python/core/retriever.py:96
↓ 2 callers
Method
_extract_from_parsed
Helper to extract query texts from parsed JSON structures.
AskAgent/python/core/baseHandler.py:283
↓ 2 callers
Function
_fallback
Fall back to the original LLM-as-query-planner approach.
DataFinder/demo.py:69
↓ 2 callers
Method
_flush_all_loggers
Force flush all real loggers
AskAgent/python/misc/logger/logging_config_helper.py:299
↓ 2 callers
Method
_format_es_response
Converts the Elasticsearch response in a list of values [url, schema_json, name, site_name] Args: response (List[Dict[st
AskAgent/python/retrieval_providers/elasticsearch_client.py:358
↓ 2 callers
Method
_format_results
Format MCP search results into the expected format for NLWeb. Args: mcp_result: Raw result from MCP search_shop_catalog
AskAgent/python/retrieval_providers/shopify_mcp.py:255
↓ 2 callers
Method
_get_default_config
Return default configuration if file loading fails
AskAgent/python/misc/logger/logging_config_helper.py:70
↓ 2 callers
Method
_get_html_filename
Generate filename for saving HTML content.
AskAgent/python/scraping/incrementalCrawlAndLoad.py:110
↓ 2 callers
Method
_get_item_by_url
Get item using URL-based retrieval.
AskAgent/python/methods/compare_items.py:155
↓ 2 callers
Method
_get_item_identifier
Extract a unique identifier from an item.
AskAgent/python/methods/ensemble_tool.py:471
↓ 2 callers
Function
_get_provider
Lazily load and return the provider for the given LLM type. Args: llm_type: The type of LLM provider to load Returns: T
AskAgent/python/core/llm.py:96
↓ 2 callers
Method
_get_real_logger
Get or create the real LoggerUtility instance
AskAgent/python/misc/logger/logging_config_helper.py:272
↓ 2 callers
Method
_get_url_hash
Generate a unique hash for a URL.
AskAgent/python/scraping/incrementalCrawlAndLoad.py:106
↓ 2 callers
Method
_has_valid_credentials
Check if an endpoint has valid credentials based on its database type. Args: name: Endpoint name config: End
AskAgent/python/core/retriever.py:458
↓ 2 callers
Function
_load_tools_from_file
Load tools from XML file for a specific site. Args: tools_xml_path: Path to the tools.xml file site_id: The site ID to load tools
AskAgent/python/core/router.py:52
↓ 2 callers
Method
_normalize_property
Try to find the full prefixed name for a property if given without prefix.
DataFinder/translator/mapping_parser.py:104
↓ 2 callers
Method
_resolve_column_ref
Column reference for GROUP BY / ORDER BY (no alias).
DataFinder/translator/semantic_to_sql.py:253
↓ 2 callers
Function
_run_fallback
Fall back to LLM query planner
DataFinder/record_demo.py:118
↓ 2 callers
Function
_run_fallback
Fall back to LLM query planner
DataFinder/record_demo_auto.py:157
↓ 2 callers
Method
_search_knn_filter
Search in Elasticsearch using kNN and filter Args: index_name: The index name embedding: The vector embeddin
AskAgent/python/retrieval_providers/elasticsearch_client.py:379
↓ 2 callers
Method
_search_single_query
Internal method to search with a single query. Args: query: The search query string site: Site identifier
AskAgent/python/retrieval_providers/shopify_mcp.py:140
↓ 2 callers
Method
_send_error_message
Send error message when API call fails.
AskAgent/python/methods/cricket_query.py:122
↓ 2 callers
Method
_send_error_message
Send an error message to the client.
AskAgent/python/methods/recipe_substitution.py:244
↓ 2 callers
Method
_send_headers_if_needed
Send headers if they haven't been sent yet. Handles both streaming and non-streaming modes. Args: is_streaming:
AskAgent/python/core/utils/message_senders.py:214
↓ 2 callers
Method
_send_no_results_message
Send message when no cricket data is found.
AskAgent/python/methods/cricket_query.py:111
↓ 2 callers
Method
_send_result
Send a single result to the browser.
AskAgent/python/methods/multi_site_query.py:229
↓ 2 callers
Function
_sql_op
(op: str)
DataFinder/translator/semantic_to_sql.py:594
↓ 2 callers
Function
_t
(e)
static/dompurify.min.js:2
↓ 2 callers
Method
_transform_non_streaming
( self, response: aiohttp.ClientResponse, query: str | None, )
AskAgent/python/webserver/appsdk_adapter_server.py:170
↓ 2 callers
Method
abort_fast_track_if_needed
Check all abort conditions and set the abort event if needed. Returns True if fast track was aborted, False otherwise.
AskAgent/python/core/state.py:114
↓ 2 callers
Method
add_conversation
Add a conversation to storage. Args: user_id: User ID (if logged in) or anonymous ID site: Site context for
AskAgent/python/core/conversation_history.py:25
↓ 2 callers
Method
add_small_response
Add a small response to the tracking list, maintaining a reasonable size
AskAgent/python/scraping/expBackOffCrawl.py:62
↓ 2 callers
Function
analyze_query_results
Analyze and print query results
AskAgent/python/testing/test_with_clean_db.py:53
↓ 2 callers
Function
analyze_query_with_endpoints
Run query and analyze results including endpoint statistics
AskAgent/python/testing/test_retrieval_with_endpoint_stats.py:72
↓ 2 callers
Function
applyStyles
()
static/styles.js:275
↓ 2 callers
Function
ask_nlweb_server
Make a request to an NLWebServer endpoint and parse the response. Args: endpoint: The full URL of the endpoint (e.g., "http://localh
AskAgent/python/core/utils/nlweb_client.py:23
↓ 2 callers
Function
bad_picks
Count model's top-k items where ref score < threshold.
ModelRouter/nlweb_router/scripts/analyze_multi_ref.py:109
↓ 2 callers
Function
bad_picks
Count how many of model's top-k have ref_score below threshold.
ModelRouter/nlweb_router/scripts/analyze_openrouter.py:79
↓ 2 callers
Method
categorize_stores
Categorize stores by their type.
AskAgent/python/tools/pottery_description_comparison.py:34
↓ 2 callers
Function
check_azure_embedding_api
Check Azure Embedding API connectivity
AskAgent/python/testing/connectivity/azure_connectivity.py:153
↓ 2 callers
Function
check_azure_openai_api
Check Azure OpenAI API connectivity
AskAgent/python/testing/connectivity/azure_connectivity.py:116
↓ 2 callers
Function
check_azure_search_api
Check Azure AI Search connectivity
AskAgent/python/testing/connectivity/azure_connectivity.py:26
↓ 2 callers
Function
check_embedding_api
(embedding_name)
AskAgent/python/testing/check_connectivity.py:72
↓ 2 callers
Function
check_embedding_api
(embedding_name)
AskAgent/python/testing/connectivity/check_connectivity.py:82
↓ 2 callers
Function
check_llm_api
(llm_name)
AskAgent/python/testing/check_connectivity.py:45
↓ 2 callers
Function
check_llm_api
(llm_name)
AskAgent/python/testing/connectivity/check_connectivity.py:43
↓ 2 callers
Method
check_message_ordering
Check if messages were received in correct order.
tests/reliability/test_recovery.py:171
↓ 2 callers
Function
check_openai_api
Check OpenAI API connectivity
AskAgent/python/testing/connectivity/azure_connectivity.py:91
↓ 2 callers
Function
check_retriever
(retrieval_name)
AskAgent/python/testing/check_connectivity.py:99
↓ 2 callers
Function
check_retriever
(retrieval_name)
AskAgent/python/testing/connectivity/check_connectivity.py:116
↓ 2 callers
Method
clearSession
()
static/oauth-login.js:325
↓ 2 callers
Method
clear_caches
Clear all caches
AgentFinder/code/who_handler.py:313
↓ 2 callers
Method
close
Cleanup connections
AgentFinder/code/search_backend.py:37
↓ 2 callers
Method
close
Close the connection pool when done
AskAgent/python/retrieval_providers/postgres_client.py:194
↓ 2 callers
Method
close
Close the Elasticsearch client connections
AskAgent/python/retrieval_providers/elasticsearch_client.py:64
↓ 2 callers
Method
closeDropdown
()
static/nlweb-dropdown-chat.js:510
↓ 2 callers
Function
collateObjAttr
Collate object attributes into a dict of lists.
ModelRouter/nlweb_router/scripts/json_utils.py:19
↓ 2 callers
Function
compute_bert_satisficer
Compute satisficer metrics for BERT model on a data split.
NLWebScorer/training/train_modernbert.py:194
↓ 2 callers
Function
compute_metrics
(preds: np.ndarray, targets: np.ndarray)
NLWebScorer/training/fit_rubric_weights.py:68
↓ 2 callers
Function
compute_metrics
(preds, targets, label="")
NLWebScorer/training/evaluate.py:66
↓ 2 callers
Function
compute_metrics_vs_reference
Compute metrics for a candidate model against a reference. If difficulty_filter is provided, only queries matching that category are included.
ModelRouter/nlweb_router/scripts/analyze_multi_ref.py:297
↓ 2 callers
Function
compute_rubric_features
Compute rubric features that mirror GPT-4.1's relevance assessment. Returns a dict of float features, all cheap to compute from the schema JSON.
NLWebScorer/data/prepare_data.py:75
↓ 2 callers
Function
configure_gemini
Ensure Gemini API is configured
AskAgent/python/embedding_providers/gemini_embedding.py:31
↓ 2 callers
Method
configure_gemini
Ensure Gemini API is configured.
AskAgent/python/llm_providers/gemini.py:66
↓ 2 callers
Method
create_app
Create and configure the aiohttp application
AskAgent/python/webserver/aiohttp_server.py:108
↓ 2 callers
Function
create_assistant_result
Create an assistant message with search results. Args: results: List of search results handler: Handler instance (provides c
AskAgent/python/core/schemas.py:286
↓ 2 callers
Method
create_document
Create a document in db_load.py compatible format. Args: store_data: Original store data embedding: Computed
AskAgent/python/tools/compute_embeddings.py:239
↓ 2 callers
Method
create_message
Create a message from this participant.
tests/e2e/test_multi_participant.py:51
↓ 2 callers
Method
create_valid_email_token
Create valid email-based token.
tests/security/test_auth.py:55
↓ 2 callers
Method
critical
Log a critical message asynchronously.
AskAgent/python/misc/logger/logging_config_helper.py:394
↓ 2 callers
Method
decontextualizeQuery
(self)
AskAgent/python/core/baseHandler.py:412
↓ 2 callers
Method
ensure_collection_exists
Ensure that a collection exists, creating it if necessary. Args: collection_name: Name of the collection to check/create
AskAgent/python/retrieval_providers/qdrant.py:310
↓ 2 callers
Method
ensure_index_exists
Ensure that the specified index exists, creating it if necessary. Args: index_name: Name of the index (defaults to confi
AskAgent/python/retrieval_providers/azure_search_client.py:212
↓ 2 callers
Method
error
Log an error message asynchronously.
AskAgent/python/misc/logger/logging_config_helper.py:390
↓ 2 callers
Function
evaluate
(model, dataloader, criterion, device)
NLWebScorer/training/train_rubric_gam.py:142
↓ 2 callers
Function
evaluate
(model, dataloader, criterion, device)
NLWebScorer/training/train_gam.py:99
↓ 2 callers
Function
evaluate
(model, dataloader, criterion, device, pure_text: bool = False)
NLWebScorer/training/train_modernbert.py:157
↓ 2 callers
Method
exception
Log an exception with traceback asynchronously.
AskAgent/python/misc/logger/logging_config_helper.py:398
↓ 2 callers
Function
extractImage
(schemaStr)
static/show_compare.js:110
↓ 2 callers
Function
extract_embeddings
Extract [CLS] embeddings from trained BERT model.
NLWebScorer/training/train_modernbert.py:208
↓ 2 callers
Function
extract_variables_from_prompt
(prompt)
AskAgent/python/core/prompts.py:65
↓ 2 callers
Function
fetch_url
Fetch content from a URL. Args: url: URL to fetch Returns: Tuple of (content, file_extension)
AskAgent/python/data_loading/db_load.py:157
↓ 2 callers
Method
finish_response
Clean up the response
AskAgent/python/webserver/aiohttp_streaming_wrapper.py:148
↓ 2 callers
Method
formatObject
* Formats an object as HTML * * @param {Object} obj - The object to format * @param {number} indent - The indentation level * @returns {s
static/json-renderer.js:496
↓ 2 callers
Function
full_evaluation
Run full evaluation: metrics + per-site breakdown + satisficer.
NLWebScorer/training/train_rubric_gam.py:253
↓ 2 callers
Method
getConversationWithMessages
(id)
static/conversation-manager.js:153
↓ 2 callers
Method
get_api_key
Retrieve the API key for Gemini API.
AskAgent/python/llm_providers/gemini.py:42
↓ 2 callers
Function
get_async_client
Configure and return an asynchronous OpenAI client.
AskAgent/python/embedding_providers/openai_embedding.py:45
↓ 2 callers
Function
get_azure_openai_client
Get or initialize the Azure OpenAI client.
AskAgent/python/embedding_providers/azure_oai_embedding.py:63
↓ 2 callers
Method
get_batch_embeddings
Generate embeddings for multiple texts using Elasticsearch Inference API. Args: texts: List of texts to embed
AskAgent/python/embedding_providers/elasticsearch_embedding.py:151
↓ 2 callers
Function
get_collection_name
Get collection name from endpoint config or use default.
AskAgent/python/retrieval_providers/qdrant_retrieve.py:79
↓ 2 callers
Method
get_conversation_thread
Retrieve all conversations in a thread.
AskAgent/python/storage_providers/qdrant_storage.py:186
↓ 2 callers
Function
get_cortex_search_service
Retrieve the Cortex Search Service (database, schema, service) to use from the configuration, or raise an error.
AskAgent/python/retrieval_providers/snowflake_client.py:48
↓ 2 callers
Method
get_embeddings
Generate an embedding for a single text using Elasticsearch Inference API. Args: text: The text to embed mod
AskAgent/python/embedding_providers/elasticsearch_embedding.py:113
← previous
next →
301–400 of 2,264, ranked by callers