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
↓ 7 callers
Method
fromDict
(data)
static/schemas.js:148
↓ 7 callers
Method
get_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 callers
Function
header
Print section header
DataFinder/simple_demo.py:63
↓ 7 callers
Method
send_message
Send a message with appropriate metadata and routing.
AskAgent/python/core/utils/message_senders.py:297
↓ 7 callers
Method
size
Get current cache size
AgentFinder/code/who_handler.py:60
↓ 7 callers
Function
upload_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 callers
Method
_extract_products
Extract product names from store data.
AskAgent/python/tools/pottery_description_comparison.py:178
↓ 6 callers
Method
_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 callers
Function
_sql_val
(value)
DataFinder/translator/semantic_to_sql.py:598
↓ 6 callers
Method
add_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 callers
Method
close
Close the MCP client. No cleanup needed for now.
AskAgent/python/retrieval_providers/shopify_mcp.py:412
↓ 6 callers
Method
delete_documents_by_site
Delete all documents matching the specified site. Args: site: Site identifier **kwargs: Additional parameter
AskAgent/python/core/retriever.py:708
↓ 6 callers
Method
disconnect
Disconnect WebSocket.
tests/integration/test_websocket.py:153
↓ 6 callers
Method
disconnect
Disconnect WebSocket.
tests/security/test_auth.py:162
↓ 6 callers
Method
escapeHtml
* 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 callers
Function
jsonify
Convert string to dict if needed.
ModelRouter/nlweb_router/scripts/json_utils.py:9
↓ 6 callers
Function
jsonify
(obj)
AskAgent/python/core/utils/json_utils.py:12
↓ 6 callers
Function
narrate
Print narration with pause
DataFinder/record_demo.py:23
↓ 6 callers
Method
prepare
(self)
AskAgent/python/core/baseHandler.py:352
↓ 6 callers
Function
process_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 callers
Function
sanitize_log
Sanitize value for safe logging by removing newlines and control characters.
AskAgent/python/core/utils/utils.py:8
↓ 6 callers
Method
send_message
Send a message through WebSocket.
tests/integration/test_websocket.py:99
↓ 6 callers
Method
should_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 callers
Function
trim_schema_json
(schema_json, site)
AskAgent/python/core/utils/trim_schema_json.py:60
↓ 6 callers
Function
useOpenAiGlobal
( key: K )
openai-apps-sdk-integration/src/use-openai-global.ts:8
↓ 5 callers
Function
_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 callers
Method
_save_status
Save current status to file.
AskAgent/python/scraping/incrementalCrawlAndLoad.py:98
↓ 5 callers
Method
cleanup
Cleanup resources
AgentFinder/code/who_handler.py:320
↓ 5 callers
Method
close
Close the Elasticsearch client connections
AskAgent/python/storage_providers/elasticsearch_storage.py:165
↓ 5 callers
Method
collection_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 callers
Method
createNewChat
(site = null)
static/chat-interface-unified.js:1703
↓ 5 callers
Method
create_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 callers
Method
delete_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 callers
Method
do
Main entry point following NLWeb module pattern.
AskAgent/python/methods/item_details.py:38
↓ 5 callers
Method
extract_links
Extract all links from HTML
AskAgent/python/misc/podcast_scraper.py:61
↓ 5 callers
Method
formatDuration
* 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 callers
Method
get_delivery_stats
Get message delivery statistics.
tests/reliability/test_recovery.py:187
↓ 5 callers
Function
get_logging_config
Get or create the singleton logging configuration
AskAgent/python/misc/logger/logging_config_helper.py:212
↓ 5 callers
Function
get_storage_client
Get or create the storage client instance. Returns: StorageProvider: The storage provider instance
AskAgent/python/core/conversation_history.py:127
↓ 5 callers
Method
load_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 callers
Function
normalize_rubric_features
Normalize rubric features to zero mean, unit variance per feature.
NLWebScorer/training/train_rubric_gam.py:85
↓ 5 callers
Function
prepare_rubric_features
Extract rubric features grouped by category from examples.
NLWebScorer/training/train_rubric_gam.py:74
↓ 5 callers
Function
query_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 callers
Method
record_memory_usage
Record current memory usage.
tests/performance/test_latency.py:63
↓ 5 callers
Method
registerRenderer
* Registers a specific renderer with a JSON renderer * * @param {Function} RendererClass - The renderer class * @param {JsonRenderer} jsonRe
static/type-renderers.js:166
↓ 5 callers
Method
run_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 callers
Function
safe_load_json
Load JSON file, returning None if file is being written or corrupted.
ModelRouter/nlweb_router/scripts/analysis_server.py:1343
↓ 5 callers
Function
save_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 callers
Method
search
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 callers
Method
should_raise_exceptions
Returns True if exceptions should be raised instead of caught (for testing and development).
AskAgent/python/core/config.py:595
↓ 5 callers
Function
type_print
Print text with typewriter effect
DataFinder/simple_demo.py:47
↓ 5 callers
Function
v
(e,t)
static/dompurify.min.js:2
↓ 4 callers
Method
_is_v055
Check if the current request uses v0.55 protocol.
AskAgent/python/core/utils/message_senders.py:40
↓ 4 callers
Method
_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 callers
Method
_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 callers
Function
addMessage
(role, content, results = null)
code/wordpress/nlweb/assets/nlweb-frontend.js:132
↓ 4 callers
Function
check_and_print
(f)
AskAgent/python/testing/connectivity/snowflake_connectivity.py:25
↓ 4 callers
Method
close
Close the Elasticsearch client connection
AskAgent/python/embedding_providers/elasticsearch_embedding.py:69
↓ 4 callers
Method
crawl_urls
Crawl multiple URLs one at a time
AskAgent/python/scraping/expBackOffCrawl.py:295
↓ 4 callers
Method
createDefaultItemHtml
* Creates default HTML for a JSON item * * @param {Object} item - The item data * @returns {HTMLElement} - The HTML element
static/json-renderer.js:94
↓ 4 callers
Method
create_conversation
Create a conversation for load testing.
tests/performance/test_load.py:151
↓ 4 callers
Function
delete_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 callers
Function
detect_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 callers
Function
extract_canonical_url
(html_file)
AskAgent/python/scraping/extractMarkup.py:44
↓ 4 callers
Function
extract_schema_markup
(html_file)
AskAgent/python/scraping/extractMarkup.py:20
↓ 4 callers
Function
extract_urls_from_sitemap
(sitemap_url, output_file, verbose=False)
AskAgent/python/scraping/urlsFromSitemap.py:10
↓ 4 callers
Function
forward_to_nlweb
Forward a request to the NLWeb MCP endpoint
AskAgent/python/chatbot_interface.py:23
↓ 4 callers
Method
getAllMessages
* Get all messages (for building conversation list)
static/indexed-storage.js:149
↓ 4 callers
Method
getOrCreateUserId
()
static/chat-interface-unified.js:1531
↓ 4 callers
Method
get_canonical_mapping
Get the canonical (preferred) mapping for an ontology type.
DataFinder/translator/mapping_parser.py:84
↓ 4 callers
Method
get_page
Fetch webpage content
AskAgent/python/misc/podcast_scraper.py:46
↓ 4 callers
Function
get_template
Look up a template by ID.
DataFinder/translator/templates.py:291
↓ 4 callers
Function
good_picks
Count how many of model's top-k have ref_score >= threshold.
ModelRouter/nlweb_router/scripts/analyze_openrouter.py:93
↓ 4 callers
Method
hideLoginPopup
()
static/oauth-login.js:129
↓ 4 callers
Method
is_development_mode
Returns True if the system is running in development mode.
AskAgent/python/core/config.py:587
↓ 4 callers
Method
load_embedding_config
Load embedding model configuration.
AskAgent/python/core/config.py:280
↓ 4 callers
Function
load_jsonl
(path: str)
NLWebScorer/training/train_rubric_gam.py:64
↓ 4 callers
Function
load_jsonl
(path: str)
NLWebScorer/training/train_modernbert.py:69
↓ 4 callers
Method
makeAsSpan
* 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 callers
Function
map_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 callers
Function
match_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 callers
Function
merge_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 callers
Function
per_group_analysis
Compute metrics per group (site, difficulty, etc.).
NLWebScorer/training/evaluate.py:84
↓ 4 callers
Method
possiblyAddExplanation
* 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 callers
Function
process_directory
(directory)
AskAgent/python/scraping/extractMarkup.py:77
↓ 4 callers
Method
record_sent_message
Record a sent message.
tests/reliability/test_recovery.py:152
↓ 4 callers
Method
resolve_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 callers
Method
runQuery
(self)
AskAgent/python/core/whoHandler.py:115
↓ 4 callers
Method
sanitizeDomElement
* Sanitize DOM element to remove potentially harmful content * @param {Element} element - The DOM element to sanitize
static/chat-interface-unified.js:1955
↓ 4 callers
Method
scrollToBottom
()
static/chat-interface-unified.js:1666
↓ 4 callers
Method
search
(query)
static/nlweb-dropdown-chat.js:532
↓ 4 callers
Method
search
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 callers
Method
search
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 callers
Method
search_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 callers
Method
sendMessage
(messageText = null)
static/streaming.js:173
↓ 4 callers
Method
sendMessage
(passedMessage)
static/chat-interface-unified.js:360
↓ 4 callers
Function
sendRequest
(method, params = {})
openai-apps-sdk-integration/nlweb_server_node/test-server.mjs:142
↓ 4 callers
Method
send_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 callers
Method
send_message
Send a message in the conversation.
tests/performance/test_load.py:184
↓ 4 callers
Method
set_mode
Set the application mode (development, production, or testing).
AskAgent/python/core/config.py:599
← previous
next →
101–200 of 2,264, ranked by callers