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
Method
get_embeddings
Extract [CLS] embeddings without the regression head.
NLWebScorer/models/modernbert_scorer.py:117
↓ 2 callers
Function
get_embeddings_file_path
Generate the path for the equivalent file with embeddings. Args: file_path: Path to the original file Returns: Path to
AskAgent/python/data_loading/db_load.py:80
↓ 2 callers
Method
get_filter_sql
Convert a filter spec to SQL WHERE clause fragment.
DataFinder/translator/mapping_parser.py:186
↓ 2 callers
Function
get_item_name
Extract name from a JSON item using various fields. Args: item: JSON item to extract name from Returns: Name string or
AskAgent/python/data_loading/db_load_utils.py:119
↓ 2 callers
Method
get_llm_provider
Get the specified LLM provider config or the preferred one if not specified.
AskAgent/python/core/config.py:711
↓ 2 callers
Method
get_logger
Create and return a configured logger for the specified module
AskAgent/python/misc/logger/logging_config_helper.py:106
↓ 2 callers
Method
get_memory_stats
Get memory usage statistics.
tests/performance/test_latency.py:95
↓ 2 callers
Function
get_ollama_client
Get or initialize the Ollama client.
AskAgent/python/embedding_providers/ollama_embedding.py:40
↓ 2 callers
Method
get_podcast_details
Extract podcast details including RSS feed and organization
AskAgent/python/misc/podcast_scraper.py:151
↓ 2 callers
Method
get_profile
Get settings for a specific profile
AskAgent/python/misc/logger/logging_config_helper.py:161
↓ 2 callers
Function
get_qdrant_client
Get or initialize Qdrant client.
AskAgent/python/retrieval_providers/qdrant_retrieve.py:71
↓ 2 callers
Function
get_ranks
Convert values to ranks (1-based, higher value = lower rank number).
ModelRouter/nlweb_router/scripts/analyze_multi_ref.py:51
↓ 2 callers
Function
get_ranks
Convert values to ranks (1-based, higher value = lower rank number).
ModelRouter/nlweb_router/scripts/analyze_openrouter.py:28
↓ 2 callers
Method
get_recent_conversations
Retrieve the N most recent conversations for a user and site, grouped by thread. Args: user_id: User ID to retrieve conv
AskAgent/python/core/conversation_history.py:65
↓ 2 callers
Function
good_picks
Count model's top-k items where ref score >= threshold.
ModelRouter/nlweb_router/scripts/analyze_multi_ref.py:98
↓ 2 callers
Method
handleEmailLogin
()
static/oauth-login.js:330
↓ 2 callers
Method
handleSearch
()
static/nlweb-dropdown-chat.js:336
↓ 2 callers
Method
handleUrlAutoQuery
()
static/chat-interface-unified.js:187
↓ 2 callers
Function
handle_mcp_request
Handle an MCP request following the standard MCP protocol Args: query_params (dict): URL query parameters body (bytes): Requ
AskAgent/python/webserver/mcp_wrapper.py:522
↓ 2 callers
Function
hasOwn
( obj: T, key: PropertyKey )
openai-apps-sdk-integration/src/utils/locale.ts:3
↓ 2 callers
Function
ht
(e)
static/dompurify.min.js:2
↓ 2 callers
Method
htmlUnescape
* Unescapes HTML entities in a string, safely converting entities like & to & * without executing any HTML/scripts. * * @param {string}
static/json-renderer.js:636
↓ 2 callers
Method
index_exists
Check if the specified index exists. Args: index_name: Name of the index to check (defaults to configured index)
AskAgent/python/retrieval_providers/azure_search_client.py:168
↓ 2 callers
Method
initialize
Initialize backends
AgentFinder/code/who_handler.py:91
↓ 2 callers
Function
int64_hash
Compute a hash value for a string, ensuring it fits within int64 range. Args: string: The string to hash Returns: int64
AskAgent/python/data_loading/db_load_utils.py:58
↓ 2 callers
Method
is_aggregation_enabled
Check if aggregation functionality is enabled.
AskAgent/python/core/config.py:637
↓ 2 callers
Method
is_decontextualization_done
(self)
AskAgent/python/core/state.py:48
↓ 2 callers
Function
is_process_running
Check if score_openrouter.py is currently running.
ModelRouter/nlweb_router/scripts/nanny_openrouter.py:22
↓ 2 callers
Method
is_testing_mode
Returns True if the system is running in testing mode.
AskAgent/python/core/config.py:591
↓ 2 callers
Method
is_who_endpoint_enabled
Check if the who endpoint is enabled.
AskAgent/python/core/config.py:641
↓ 2 callers
Method
join_conversation
Join an existing conversation.
tests/performance/test_load.py:210
↓ 2 callers
Method
leave_conversation
Leave the conversation.
tests/e2e/test_multi_participant.py:81
↓ 2 callers
Method
loadConversation
(id, chatInterface)
static/conversation-manager.js:177
↓ 2 callers
Method
loadConversations
(selectedSite, elements)
static/conversation-manager.js:24
↓ 2 callers
Function
loadJsonToDB
Load data from a file, compute embeddings, and store in the database. The file can have one of multiple formats: 1. Two columns per row,
AskAgent/python/data_loading/db_load.py:679
↓ 2 callers
Method
loadSitesViaHttp
()
static/chat-interface-unified.js:1471
↓ 2 callers
Method
load_conversation_storage_config
Load conversation storage configuration.
AskAgent/python/core/config.py:780
↓ 2 callers
Function
load_jsonl
(path)
NLWebScorer/training/diagnose_errors.py:27
↓ 2 callers
Function
load_jsonl
(path: str)
NLWebScorer/training/fit_rubric_weights.py:31
↓ 2 callers
Method
load_retrieval_config
(self, path: str = "config_retrieval.yaml")
AskAgent/python/core/config.py:318
↓ 2 callers
Method
log_with_context
Log a message with additional context information asynchronously.
AskAgent/python/misc/logger/logging_config_helper.py:402
↓ 2 callers
Method
map_to_dcids
Map variable and place names to Data Commons DCIDs.
AskAgent/python/methods/statistics_handler.py:296
↓ 2 callers
Method
parse_sitemap
Parse XML sitemap to extract URLs.
AskAgent/python/scraping/expand_json_descriptions.py:119
↓ 2 callers
Function
per_group_metrics
Compute Spearman ρ per group.
NLWebScorer/training/fit_rubric_weights.py:75
↓ 2 callers
Function
plot_results
Plot results and save to file.
AskAgent/python/benchmark/run_speed_benchmark.py:223
↓ 2 callers
Function
prepare_documents_from_json
Prepare documents from URL and JSON data. Args: url: URL for the item json_data: JSON data for the item site: Site i
AskAgent/python/data_loading/db_load_utils.py:157
↓ 2 callers
Method
prepare_response
Prepare the streaming response
AskAgent/python/webserver/aiohttp_streaming_wrapper.py:140
↓ 2 callers
Method
print_aggregated_summary
Print summary of aggregated test results.
AskAgent/python/testing/run_tests.py:105
↓ 2 callers
Method
print_detailed_results
Print detailed results for a single test.
AskAgent/python/testing/end_to_end_tests.py:211
↓ 2 callers
Method
print_status
Print the current status
AskAgent/python/scraping/expBackOffCrawl.py:69
↓ 2 callers
Function
print_summary
Print summary of all query results
AskAgent/python/testing/test_retrieval_with_endpoint_stats.py:169
↓ 2 callers
Method
processMessageByType
* Handle message processing for different message types
static/chat-ui-common.js:320
↓ 2 callers
Method
processSitesData
(sites)
static/chat-interface-unified.js:1502
↓ 2 callers
Method
process_all
Process all sites in the JSONL file.
AskAgent/python/scraping/expand_json_descriptions.py:374
↓ 2 callers
Function
process_binary_file
Process a file in binary mode for cases where text encoding is problematic. Specifically handles UTF-16 encoded files.
AskAgent/python/core/utils/trim_schema_json.py:157
↓ 2 callers
Function
process_cricket_query
Process a cricket statistics JSON response and return formatted table. Args: json_response: JSON string from cricket statistics API
AskAgent/python/methods/cricketLens.py:329
↓ 2 callers
Method
process_cricket_response
Main method to process cricket JSON response and return formatted output.
AskAgent/python/methods/cricketLens.py:302
↓ 2 callers
Function
process_files
(input_file, size="small", model="text-embedding-3-small", num_to_process=10000000)
AskAgent/python/misc/embedding.py:42
↓ 2 callers
Function
process_normal_path
(input_file_path: str, site: str, batch_size: int = 100, delete_site: bool = False, force_recompute: bool = Fa
AskAgent/python/data_loading/db_load.py:1073
↓ 2 callers
Function
process_rss_feed
Process an RSS/Atom feed into document objects. Args: file_path: Path to the RSS file or URL site: Site identifier Retu
AskAgent/python/data_loading/db_load.py:500
↓ 2 callers
Method
read_yaml_config
Read a YAML configuration file.
check_dependencies.py:64
↓ 2 callers
Method
receive_message
Receive a message.
tests/e2e/test_multi_participant.py:66
↓ 2 callers
Method
reconnect
Reconnect with optional sequence ID for sync.
tests/integration/test_websocket.py:168
↓ 2 callers
Function
removeTypingIndicator
()
code/wordpress/nlweb/assets/nlweb-frontend.js:312
↓ 2 callers
Method
run_query_set
Run a set of queries and return all results Args: queries: List of dicts with 'query' and optional 'site', 'num_results'
AskAgent/python/testing/test_queries_and_rss.py:121
↓ 2 callers
Function
run_query_tests
Run standard query tests with endpoint tracking
AskAgent/python/testing/test_retrieval_with_endpoint_stats.py:135
↓ 2 callers
Function
run_query_tests
Run standard query tests
AskAgent/python/testing/test_with_clean_db.py:92
↓ 2 callers
Method
run_test_file
Run tests from a JSON file. Args: file_path: Path to JSON test file test_type: Optional test type override (
AskAgent/python/testing/run_tests.py:42
↓ 2 callers
Method
sanitizeUrl
* Sanitizes a URL to prevent javascript: protocol and other potentially dangerous URLs * * @param {string} url - The URL to sanitize * @retu
static/json-renderer.js:602
↓ 2 callers
Function
satisficer_metrics
Delegate to shared loss_utils.satisficer_metrics (includes pairwise accuracy). Also computes top_k_overlap and high_bad for full evaluation.
NLWebScorer/training/train_rubric_gam.py:208
↓ 2 callers
Function
satisficer_metrics
Compute satisficer-style metrics: top-k overlap, good/bad picks.
NLWebScorer/training/fit_rubric_weights.py:92
↓ 2 callers
Method
save_jsonl
Save enhanced sites to JSONL file.
AskAgent/python/scraping/expand_json_descriptions.py:359
↓ 2 callers
Function
save_progress
Save current progress to disk.
ModelRouter/nlweb_router/scripts/score_openrouter.py:236
↓ 2 callers
Function
save_progress
Save current state to disk.
NLWebScorer/data/generate_hard_negatives.py:287
↓ 2 callers
Method
score
(self, query: str, items: list[dict])
NLWebScorer/inference/server.py:83
↓ 2 callers
Method
search
Search for sites. Returns: List of {"url": str, "json_ld": str, "name": str, "site": str}
AgentFinder/code/search_backend.py:29
↓ 2 callers
Method
search
Search for documents matching the query and site using vector similarity. Args: query: Search query string s
AskAgent/python/retrieval_providers/elasticsearch_client.py:421
↓ 2 callers
Function
search_by_url
Retrieve a document by its exact URL. Args: url: URL to search for endpoint_name: Optional name of the endpoint to use
AskAgent/python/core/retriever.py:1181
↓ 2 callers
Method
search_by_url
Retrieve a document by its exact URL. Args: url: URL to search for endpoint_name: Optional endpoint name ove
AskAgent/python/core/retriever.py:903
↓ 2 callers
Method
sendAnswers
(self, answers, force=False)
AskAgent/python/core/ranking.py:327
↓ 2 callers
Method
sendAnswers
Send ranked sites to the client.
AskAgent/python/core/whoRanking.py:142
↓ 2 callers
Method
send_begin_response
Send begin/start message at the start of query processing.
AskAgent/python/core/utils/message_senders.py:110
↓ 2 callers
Method
send_error_response
Send error response - for compatibility
AskAgent/python/webserver/aiohttp_streaming_wrapper.py:123
↓ 2 callers
Method
set_all_loggers_level
Set all loggers to the same level
AskAgent/python/misc/logger/logging_config_helper.py:180
↓ 2 callers
Method
set_pre_checks_done
Synchronous version for compatibility
AskAgent/python/core/state.py:32
↓ 2 callers
Method
set_read_latency
Set read operation latency.
tests/reliability/test_recovery.py:101
↓ 2 callers
Method
shouldSend
(self, result)
AskAgent/python/core/ranking.py:306
↓ 2 callers
Function
should_skip_item
(site, item)
AskAgent/python/core/utils/trim_schema_json.py:19
↓ 2 callers
Method
simulate_network_delay
Simulate network latency.
tests/reliability/test_recovery.py:70
↓ 2 callers
Method
start
Start the server in a background thread
scripts/run_tests_with_server.py:31
↓ 2 callers
Method
stop
Stop the server gracefully
AskAgent/python/webserver/aiohttp_server.py:233
↓ 2 callers
Method
stop
Stop the server
scripts/run_tests_with_server.py:110
↓ 2 callers
Method
storeStreamingMessage
(data)
static/chat-interface-unified.js:947
↓ 2 callers
Function
strip_site_names
Remove site name references, URLs, and publisher info for site-agnostic training.
NLWebScorer/data/prepare_data.py:302
↓ 2 callers
Method
to_dict
Convert test case to dictionary.
AskAgent/python/testing/base_test_runner.py:42
↓ 2 callers
Function
toggle_debug_info
()
AskAgent/python/testing/test_frontend.py:33
↓ 2 callers
Function
top_k_overlap
Count overlap of top-k items.
ModelRouter/nlweb_router/scripts/analyze_multi_ref.py:84
↓ 2 callers
Function
top_k_overlap
Count how many of the top-k items by ref_scores are in the top-k by model_scores.
ModelRouter/nlweb_router/scripts/analyze_openrouter.py:61
↓ 2 callers
Function
trim_json
Trim schema.org JSON to remove unnecessary fields. This matches NLWeb's trim_json function exactly.
ModelRouter/nlweb_router/scripts/json_utils.py:69
↓ 2 callers
Function
trim_movie
(obj, hard=False)
AskAgent/python/core/utils/json_utils.py:72
← previous
next →
401–500 of 2,264, ranked by callers