MCPcopy Create free account

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

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

↓ 7 callersMethodfromDict
(data)
static/schemas.js:148
↓ 7 callersMethodget_client
Get or initialize the appropriate vector database client for a specific endpoint. Uses a cache to avoid creating duplicate client ins
AskAgent/python/core/retriever.py:502
↓ 7 callersFunctionheader
Print section header
DataFinder/simple_demo.py:63
↓ 7 callersMethodsend_message
Send a message with appropriate metadata and routing.
AskAgent/python/core/utils/message_senders.py:297
↓ 7 callersMethodsize
Get current cache size
AgentFinder/code/who_handler.py:60
↓ 7 callersFunctionupload_documents
Upload documents to the database using the configured write endpoint. Args: documents: List of document objects to upload en
AskAgent/python/core/retriever.py:1204
↓ 6 callersMethod_extract_products
Extract product names from store data.
AskAgent/python/tools/pottery_description_comparison.py:178
↓ 6 callersMethod_get_search_client
Get the Azure AI Search client for a specific index Args: index_name: Name of the index (defaults to the configured inde
AskAgent/python/retrieval_providers/azure_search_client.py:100
↓ 6 callersFunction_sql_val
(value)
DataFinder/translator/semantic_to_sql.py:598
↓ 6 callersMethodadd_message_metadata
Add standard metadata fields to a message if not already present. Args: message: The message dictionary to add fields to
AskAgent/python/core/utils/message_senders.py:260
↓ 6 callersMethodclose
Close the MCP client. No cleanup needed for now.
AskAgent/python/retrieval_providers/shopify_mcp.py:412
↓ 6 callersMethoddelete_documents_by_site
Delete all documents matching the specified site. Args: site: Site identifier **kwargs: Additional parameter
AskAgent/python/core/retriever.py:708
↓ 6 callersMethoddisconnect
Disconnect WebSocket.
tests/integration/test_websocket.py:153
↓ 6 callersMethoddisconnect
Disconnect WebSocket.
tests/security/test_auth.py:162
↓ 6 callersMethodescapeHtml
* Escapes HTML special characters in a string * * @param {string} str - The string to escape * @returns {string} - The escaped string
static/json-renderer.js:585
↓ 6 callersFunctionjsonify
Convert string to dict if needed.
ModelRouter/nlweb_router/scripts/json_utils.py:9
↓ 6 callersFunctionjsonify
(obj)
AskAgent/python/core/utils/json_utils.py:12
↓ 6 callersFunctionnarrate
Print narration with pause
DataFinder/record_demo.py:23
↓ 6 callersMethodprepare
(self)
AskAgent/python/core/baseHandler.py:352
↓ 6 callersFunctionprocess_site_or_sitemap
Process either a sitemap URL or a domain. If given a domain, checks robots.txt for sitemaps.
AskAgent/python/scraping/urlsFromSitemap.py:94
↓ 6 callersFunctionsanitize_log
Sanitize value for safe logging by removing newlines and control characters.
AskAgent/python/core/utils/utils.py:8
↓ 6 callersMethodsend_message
Send a message through WebSocket.
tests/integration/test_websocket.py:99
↓ 6 callersMethodshould_abort_fast_track
Consolidate all fast track abort conditions into a single method. Returns True if fast track should be aborted, False otherwise.
AskAgent/python/core/state.py:75
↓ 6 callersFunctiontrim_schema_json
(schema_json, site)
AskAgent/python/core/utils/trim_schema_json.py:60
↓ 6 callersFunctionuseOpenAiGlobal
( key: K )
openai-apps-sdk-integration/src/use-openai-global.ts:8
↓ 5 callersFunction_extract_site_info
Extract simplified site information from a /who response item. Args: item: A single item from the /who response Returns:
AskAgent/python/core/utils/nlweb_client.py:299
↓ 5 callersMethod_save_status
Save current status to file.
AskAgent/python/scraping/incrementalCrawlAndLoad.py:98
↓ 5 callersMethodcleanup
Cleanup resources
AgentFinder/code/who_handler.py:320
↓ 5 callersMethodclose
Close the Elasticsearch client connections
AskAgent/python/storage_providers/elasticsearch_storage.py:165
↓ 5 callersMethodcollection_exists
Check if a collection exists in Qdrant. Args: collection_name: Name of the collection to check Returns:
AskAgent/python/retrieval_providers/qdrant.py:198
↓ 5 callersMethodcreateNewChat
(site = null)
static/chat-interface-unified.js:1703
↓ 5 callersMethodcreate_collection
Create a collection in Qdrant if it doesn't exist. Args: collection_name: Name of the collection to create v
AskAgent/python/retrieval_providers/qdrant.py:217
↓ 5 callersMethoddelete_conversation
Delete a specific conversation. Args: conversation_id: ID of the conversation to delete user_id: Optional us
AskAgent/python/core/conversation_history.py:93
↓ 5 callersMethoddo
Main entry point following NLWeb module pattern.
AskAgent/python/methods/item_details.py:38
↓ 5 callersMethodextract_links
Extract all links from HTML
AskAgent/python/misc/podcast_scraper.py:61
↓ 5 callersMethodformatDuration
* Formats an ISO 8601 duration string to human-readable format * * @param {string} duration - ISO 8601 duration string (e.g., PT1H30M)
static/recipe-renderer.js:211
↓ 5 callersMethodget_delivery_stats
Get message delivery statistics.
tests/reliability/test_recovery.py:187
↓ 5 callersFunctionget_logging_config
Get or create the singleton logging configuration
AskAgent/python/misc/logger/logging_config_helper.py:212
↓ 5 callersFunctionget_storage_client
Get or create the storage client instance. Returns: StorageProvider: The storage provider instance
AskAgent/python/core/conversation_history.py:127
↓ 5 callersMethodload_test_file
Load test cases from JSON file. Args: file_path: Path to JSON file Returns: List of test case dicti
AskAgent/python/testing/base_test_runner.py:117
↓ 5 callersFunctionnormalize_rubric_features
Normalize rubric features to zero mean, unit variance per feature.
NLWebScorer/training/train_rubric_gam.py:85
↓ 5 callersFunctionprepare_rubric_features
Extract rubric features grouped by category from examples.
NLWebScorer/training/train_rubric_gam.py:74
↓ 5 callersFunctionquery_cricket_stats
Asynchronously query the cricket statistics API and return formatted results. Args: query: Natural language query for cricket statis
AskAgent/python/methods/cricketLens.py:344
↓ 5 callersMethodrecord_memory_usage
Record current memory usage.
tests/performance/test_latency.py:63
↓ 5 callersMethodregisterRenderer
* Registers a specific renderer with a JSON renderer * * @param {Function} RendererClass - The renderer class * @param {JsonRenderer} jsonRe
static/type-renderers.js:166
↓ 5 callersMethodrun_tests
Run multiple test cases and return summary. Args: test_cases: List of test case dictionaries Returns:
AskAgent/python/testing/base_test_runner.py:158
↓ 5 callersFunctionsafe_load_json
Load JSON file, returning None if file is being written or corrupted.
ModelRouter/nlweb_router/scripts/analysis_server.py:1343
↓ 5 callersFunctionsave_url_content
Fetch content from a URL and save to a temporary file. Args: url: URL to fetch Returns: Tuple of (file_path, file_type)
AskAgent/python/data_loading/db_load.py:202
↓ 5 callersMethodsearch
Search the Azure AI Search index for records filtered by site and ranked by vector similarity Args: query: The search qu
AskAgent/python/retrieval_providers/azure_search_client.py:388
↓ 5 callersMethodshould_raise_exceptions
Returns True if exceptions should be raised instead of caught (for testing and development).
AskAgent/python/core/config.py:595
↓ 5 callersFunctiontype_print
Print text with typewriter effect
DataFinder/simple_demo.py:47
↓ 5 callersFunctionv
(e,t)
static/dompurify.min.js:2
↓ 4 callersMethod_is_v055
Check if the current request uses v0.55 protocol.
AskAgent/python/core/utils/message_senders.py:40
↓ 4 callersMethod_resolve_path
Resolves a path, considering the base output directory if set. If path is absolute, returns it unchanged. If path is relative
AskAgent/python/core/config.py:209
↓ 4 callersMethod_search_single_site
Perform search for a single site. Args: query: Search query string site: Site to search within (or "all" for
AskAgent/python/retrieval_providers/bing_search_client.py:449
↓ 4 callersFunctionaddMessage
(role, content, results = null)
code/wordpress/nlweb/assets/nlweb-frontend.js:132
↓ 4 callersFunctioncheck_and_print
(f)
AskAgent/python/testing/connectivity/snowflake_connectivity.py:25
↓ 4 callersMethodclose
Close the Elasticsearch client connection
AskAgent/python/embedding_providers/elasticsearch_embedding.py:69
↓ 4 callersMethodcrawl_urls
Crawl multiple URLs one at a time
AskAgent/python/scraping/expBackOffCrawl.py:295
↓ 4 callersMethodcreateDefaultItemHtml
* Creates default HTML for a JSON item * * @param {Object} item - The item data * @returns {HTMLElement} - The HTML element
static/json-renderer.js:94
↓ 4 callersMethodcreate_conversation
Create a conversation for load testing.
tests/performance/test_load.py:151
↓ 4 callersFunctiondelete_site_from_database
Delete all entries for a specific site from the configured database. Args: site: Site identifier to delete database: Specifi
AskAgent/python/data_loading/db_load.py:98
↓ 4 callersFunctiondetect_file_type
Detect the type of a file based on its extension and content. Also determine if it already contains embeddings. Args: file_path:
AskAgent/python/data_loading/db_load.py:247
↓ 4 callersFunctionextract_canonical_url
(html_file)
AskAgent/python/scraping/extractMarkup.py:44
↓ 4 callersFunctionextract_schema_markup
(html_file)
AskAgent/python/scraping/extractMarkup.py:20
↓ 4 callersFunctionextract_urls_from_sitemap
(sitemap_url, output_file, verbose=False)
AskAgent/python/scraping/urlsFromSitemap.py:10
↓ 4 callersFunctionforward_to_nlweb
Forward a request to the NLWeb MCP endpoint
AskAgent/python/chatbot_interface.py:23
↓ 4 callersMethodgetAllMessages
* Get all messages (for building conversation list)
static/indexed-storage.js:149
↓ 4 callersMethodgetOrCreateUserId
()
static/chat-interface-unified.js:1531
↓ 4 callersMethodget_canonical_mapping
Get the canonical (preferred) mapping for an ontology type.
DataFinder/translator/mapping_parser.py:84
↓ 4 callersMethodget_page
Fetch webpage content
AskAgent/python/misc/podcast_scraper.py:46
↓ 4 callersFunctionget_template
Look up a template by ID.
DataFinder/translator/templates.py:291
↓ 4 callersFunctiongood_picks
Count how many of model's top-k have ref_score >= threshold.
ModelRouter/nlweb_router/scripts/analyze_openrouter.py:93
↓ 4 callersMethodhideLoginPopup
()
static/oauth-login.js:129
↓ 4 callersMethodis_development_mode
Returns True if the system is running in development mode.
AskAgent/python/core/config.py:587
↓ 4 callersMethodload_embedding_config
Load embedding model configuration.
AskAgent/python/core/config.py:280
↓ 4 callersFunctionload_jsonl
(path: str)
NLWebScorer/training/train_rubric_gam.py:64
↓ 4 callersFunctionload_jsonl
(path: str)
NLWebScorer/training/train_modernbert.py:69
↓ 4 callersMethodmakeAsSpan
* Creates a span element with the given content * * @param {string} content - The content for the span * @returns {HTMLElement} - The span e
static/json-renderer.js:461
↓ 4 callersFunctionmap_values
Map extracted NL slot values to ontology filter specs. Returns dict of slot_name → list of filter specs.
DataFinder/translator/value_mapper.py:42
↓ 4 callersFunctionmatch_template
Match a natural language question to the best template. Returns dict with: template_id, score, slots (extracted values).
DataFinder/translator/templates.py:299
↓ 4 callersFunctionmerge_json_objects
Merge two JSON objects according to specific rules. Args: obj1: First JSON object (can be string, dict, or list of dicts) ob
AskAgent/python/core/utils/json_utils.py:107
↓ 4 callersFunctionper_group_analysis
Compute metrics per group (site, difficulty, etc.).
NLWebScorer/training/evaluate.py:84
↓ 4 callersMethodpossiblyAddExplanation
* Adds an explanation to an item * * @param {Object} item - The item data * @param {HTMLElement} contentDiv - The content div * @param {b
static/json-renderer.js:477
↓ 4 callersFunctionprocess_directory
(directory)
AskAgent/python/scraping/extractMarkup.py:77
↓ 4 callersMethodrecord_sent_message
Record a sent message.
tests/reliability/test_recovery.py:152
↓ 4 callersMethodresolve_enum_value
Reverse-map an ontology enum value to source system's native value(s). Returns: - A single source value (string) if exactly one s
DataFinder/translator/mapping_parser.py:150
↓ 4 callersMethodrunQuery
(self)
AskAgent/python/core/whoHandler.py:115
↓ 4 callersMethodsanitizeDomElement
* Sanitize DOM element to remove potentially harmful content * @param {Element} element - The DOM element to sanitize
static/chat-interface-unified.js:1955
↓ 4 callersMethodscrollToBottom
()
static/chat-interface-unified.js:1666
↓ 4 callersMethodsearch
(query)
static/nlweb-dropdown-chat.js:532
↓ 4 callersMethodsearch
Search the Milvus collection for records filtered by site and ranked by vector similarity. Args: query: The search query
AskAgent/python/retrieval_providers/milvus_client.py:307
↓ 4 callersMethodsearch
Search for documents matching the query and site using Bing Web Search. Supports using rewritten queries from handler for better resu
AskAgent/python/retrieval_providers/bing_search_client.py:329
↓ 4 callersMethodsearch_conversations
Search conversations using a query string. Args: query: The search query string user_id: Optional user ID to
AskAgent/python/core/conversation_history.py:107
↓ 4 callersMethodsendMessage
(messageText = null)
static/streaming.js:173
↓ 4 callersMethodsendMessage
(passedMessage)
static/chat-interface-unified.js:360
↓ 4 callersFunctionsendRequest
(method, params = {})
openai-apps-sdk-integration/nlweb_server_node/test-server.mjs:142
↓ 4 callersMethodsend_end_response
Send end/complete message at the end of query processing. Args: error: If True, indicates the query ended with an error
AskAgent/python/core/utils/message_senders.py:138
↓ 4 callersMethodsend_message
Send a message in the conversation.
tests/performance/test_load.py:184
↓ 4 callersMethodset_mode
Set the application mode (development, production, or testing).
AskAgent/python/core/config.py:599
← previousnext →101–200 of 2,264, ranked by callers