Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AsyncFuncAI/deepwiki-open
/ functions
Functions
326 in github.com/AsyncFuncAI/deepwiki-open
⨍
Functions
326
◇
Types & classes
87
↳
Endpoints
14
↓ 26 callers
Method
acall
kwargs is the combined input and model_kwargs
api/openai_client.py:488
↓ 26 callers
Method
convert_inputs_to_api_kwargs
r""" Specify the API input type and output api_kwargs that will be used in _call and _acall methods. Convert the Component's standard
api/openai_client.py:270
↓ 18 callers
Function
t
(key: string, params: Record<string, string | number> = {})
src/app/page.tsx:51
↓ 14 callers
Method
_extract_repo_name_from_url
(self, repo_url_or_path: str, repo_type: str)
api/data_pipeline.py:770
↓ 12 callers
Method
filter
(self, record: logging.LogRecord)
api/logging_config.py:8
↓ 12 callers
Function
get_embedder
Get embedder based on configuration or parameters. Args: is_local_ollama: Legacy parameter for Ollama embedder use_google_emb
api/tools/embedder.py:6
↓ 11 callers
Function
useLanguage
()
src/contexts/LanguageContext.tsx:196
↓ 9 callers
Function
t
(key: string)
src/components/ProcessedProjects.tsx:49
↓ 8 callers
Function
count_tokens
Count the number of tokens in a text string using tiktoken. Args: text (str): The text to count tokens for. embedder_type (s
api/data_pipeline.py:27
↓ 8 callers
Function
get_embedder_config
Get the current embedder configuration based on DEEPWIKI_EMBEDDER_TYPE. Returns: dict: The embedder configuration with model_client
api/config.py:169
↓ 8 callers
Function
get_embedder_type
Get the current embedder type based on configuration. Returns: str: 'bedrock', 'ollama', 'google', or 'openai' (default)
api/config.py:244
↓ 7 callers
Function
getRepoUrl
(repoInfo: RepoInfo)
src/utils/getRepoUrl.tsx:3
↓ 7 callers
Function
setup_logging
Configure logging for the application with log rotation. Environment variables: LOG_LEVEL: Log level (default: INFO) LOG_FIL
api/logging_config.py:12
↓ 6 callers
Method
run_test
Run a single test function.
tests/unit/test_all_embedders.py:33
↓ 5 callers
Function
get_model_config
Get configuration for the specified provider and model Parameters: provider (str): Model provider ('google', 'openai', 'openrouter',
api/config.py:365
↓ 5 callers
Function
prepare_data_pipeline
Creates and returns the data transformation pipeline. Args: embedder_type (str, optional): The embedder type ('openai', 'google', 'o
api/data_pipeline.py:390
↓ 4 callers
Method
call
Call Google AI embedding API. Args: api_kwargs: API parameters model_type: Should be ModelType.EMBEDDER
api/google_embedder_client.py:211
↓ 4 callers
Function
checkIfResearchComplete
(content: string)
src/components/Ask.tsx:176
↓ 4 callers
Function
extractResearchStage
(content: string, iteration: number)
src/components/Ask.tsx:212
↓ 4 callers
Function
load_json_config
(filename)
api/config.py:105
↓ 3 callers
Method
__init__
( self, api_key: Optional[str] = None, workspace_id: Optional[str] = None, cha
api/dashscope_client.py:120
↓ 3 callers
Method
_encode_image
Encode image to base64 string. Args: image_path: Path to image file. Returns: Base64 encoded image string.
api/openai_client.py:538
↓ 3 callers
Function
closeWebSocket
(ws: WebSocket | null)
src/utils/websocketClient.ts:81
↓ 3 callers
Method
convert_inputs_to_api_kwargs
Convert inputs to Google AI API format. Args: input: Text input(s) to embed model_kwargs: Model parameters in
api/google_embedder_client.py:161
↓ 3 callers
Function
createGithubHeaders
(githubToken: string)
src/app/[owner]/[repo]/page.tsx:140
↓ 3 callers
Function
extractUrlPath
(input: string)
src/utils/urlDecoder.tsx:11
↓ 3 callers
Function
get_wiki_cache_path
Generates the file path for a given wiki cache.
api/api.py:408
↓ 3 callers
Function
is_google_embedder
Check if the current embedder configuration uses GoogleEmbedderClient. Returns: bool: True if using GoogleEmbedderClient, False othe
api/config.py:206
↓ 3 callers
Method
parse_embedding_response
Parse the embedding response to a EmbedderOutput.
api/dashscope_client.py:286
↓ 3 callers
Method
parse_embedding_response
Parse Google AI embedding response to EmbedderOutput format. Args: response: Google AI embedding response (EmbeddingDict
api/google_embedder_client.py:78
↓ 2 callers
Method
_compose_model_kwargs
(self, **model_kwargs)
api/dashscope_client.py:732
↓ 2 callers
Method
_get_model_provider
Extract the provider from the model ID. Args: model_id: The model inference ID, e.g., "anthropic.claude-3-sonnet-20240229
api/bedrock_client.py:163
↓ 2 callers
Method
_prepare_client_config
Private helper method to prepare client configuration. Returns: tuple: (api_key, workspace_id, base_url) for cli
api/dashscope_client.py:146
↓ 2 callers
Method
_prepare_image_content
Prepare image content for API request. Args: image_source: Either a path to local image or a URL. detail: Image detai
api/openai_client.py:560
↓ 2 callers
Method
_test_single_embedder_type
Test a single embedder type.
tests/unit/test_all_embedders.py:340
↓ 2 callers
Function
addTokensToRequestBody
( // eslint-disable-next-line @typescript-eslint/no-explicit-any requestBody: Record<string, any>, token
src/app/[owner]/[repo]/page.tsx:96
↓ 2 callers
Function
addTokensToRequestBody
( // eslint-disable-next-line @typescript-eslint/no-explicit-any requestBody: Record<string, any>, token
src/app/[owner]/[repo]/slides/page.tsx:13
↓ 2 callers
Method
add_dialog_turn
Add a dialog turn to the conversation history. Args: user_query: The user's query assistant_response: The as
api/rag.py:91
↓ 2 callers
Method
convert_inputs_to_api_kwargs
Convert inputs to API kwargs.
api/dashscope_client.py:305
↓ 2 callers
Function
createBitbucketHeaders
(bitbucketToken: string)
src/app/[owner]/[repo]/page.tsx:164
↓ 2 callers
Function
createChatWebSocket
( request: ChatCompletionRequest, onMessage: (message: string) => void, onError: (error: Event) => void,
src/utils/websocketClient.ts:43
↓ 2 callers
Function
extractUrlDomain
(input: string)
src/utils/urlDecoder.tsx:1
↓ 2 callers
Function
fallbackToHttp
(requestBody: ChatCompletionRequest)
src/components/Ask.tsx:406
↓ 2 callers
Function
get_adalflow_default_root_path
()
api/api.py:36
↓ 2 callers
Function
get_file_content
Retrieves the content of a file from a Git repository (GitHub or GitLab). Args: repo_type (str): Type of repository repo_url
api/data_pipeline.py:695
↓ 2 callers
Function
handleDelete
(project: ProcessedProject)
src/components/ProcessedProjects.tsx:104
↓ 2 callers
Method
init_async_client
(self)
api/azureai_client.py:262
↓ 2 callers
Method
init_async_client
(self)
api/openai_client.py:198
↓ 2 callers
Method
init_sync_client
(self)
api/dashscope_client.py:175
↓ 2 callers
Method
init_sync_client
(self)
api/azureai_client.py:233
↓ 2 callers
Method
init_sync_client
Initialize the synchronous AWS Bedrock client.
api/bedrock_client.py:113
↓ 2 callers
Method
init_sync_client
(self)
api/openai_client.py:190
↓ 2 callers
Method
initialize_db_manager
Initialize the database manager with local storage
api/rag.py:246
↓ 2 callers
Function
is_bedrock_embedder
Check if the current embedder configuration uses BedrockClient. Returns: bool: True if using BedrockClient, False otherwise
api/config.py:226
↓ 2 callers
Function
is_ollama_embedder
Check if the current embedder configuration uses OllamaClient. Returns: bool: True if using OllamaClient, False otherwise
api/config.py:186
↓ 2 callers
Function
loadConfigFromCache
(repoUrl: string)
src/app/page.tsx:82
↓ 2 callers
Function
navigateToStage
(index: number)
src/components/Ask.tsx:256
↓ 2 callers
Function
parseRepositoryInput
(input: string)
src/app/page.tsx:177
↓ 2 callers
Method
parse_chat_completion
Parse the completion response to a GeneratorOutput.
api/dashscope_client.py:197
↓ 2 callers
Function
parse_stream_response
Parse the response of the stream API.
api/dashscope_client.py:91
↓ 2 callers
Method
prepare_database
Create a new database from the repository. Args: repo_type(str): Type of repository repo_url_or_path (str):
api/data_pipeline.py:730
↓ 2 callers
Method
prepare_retriever
Prepare the retriever for a repository. Will load database from local storage if available. Args: repo_url_or_pa
api/rag.py:345
↓ 2 callers
Function
should_process_file
Determine if a file should be processed based on inclusion/exclusion rules. Args: file_path (str): The file path to chec
api/data_pipeline.py:243
↓ 1 callers
Method
__init__
Initialize the RAG component. Args: provider: Model provider to use (google, openai, openrouter, ollama) mod
api/rag.py:157
↓ 1 callers
Method
_create_repo
Download and prepare all paths. Paths: ~/.adalflow/repos/{owner}_{repo_name} (for url, local path will be the same) ~
api/data_pipeline.py:785
↓ 1 callers
Method
_extract_response_text
Extract the generated text from the response. Args: provider: The provider name, e.g., "anthropic" response:
api/bedrock_client.py:250
↓ 1 callers
Method
_format_prompt_for_provider
Format the prompt according to the provider's requirements. Args: provider: The provider name, e.g., "anthropic"
api/bedrock_client.py:183
↓ 1 callers
Method
_initialize_client
Initialize the Google AI client with API key.
api/google_embedder_client.py:69
↓ 1 callers
Method
_validate_and_filter_embeddings
Validate embeddings and filter out documents with invalid or mismatched embedding sizes. Args: documents: List of docume
api/rag.py:251
↓ 1 callers
Method
acall
Async call to the Dashscope API.
api/dashscope_client.py:498
↓ 1 callers
Function
addTokensToRequestBody
( // eslint-disable-next-line @typescript-eslint/no-explicit-any requestBody: Record<string, any>, token
src/app/[owner]/[repo]/workshop/page.tsx:14
↓ 1 callers
Method
call
Call the Dashscope API.
api/dashscope_client.py:391
↓ 1 callers
Method
call
Batch call to DashScope embedder Args: input: List of input texts model_kwargs: Model parameters
api/dashscope_client.py:748
↓ 1 callers
Method
call
Make a synchronous call to the AWS Bedrock API.
api/bedrock_client.py:304
↓ 1 callers
Function
check_environment
Check if required environment variables and dependencies are available.
tests/run_tests.py:84
↓ 1 callers
Function
check_ollama_model_exists
Check if an Ollama model exists before attempting to use it. Args: model_name: Name of the model to check ollama_host: O
api/ollama_patch.py:21
↓ 1 callers
Function
continueResearch
()
src/components/Ask.tsx:281
↓ 1 callers
Function
createGitlabHeaders
(gitlabToken: string)
src/app/[owner]/[repo]/page.tsx:152
↓ 1 callers
Function
detectBrowserLanguage
()
src/contexts/LanguageContext.tsx:26
↓ 1 callers
Function
download_repo
Downloads a Git repository (GitHub, GitLab, or Bitbucket) to a specified local path. Args: repo_type(str): Type of repository
api/data_pipeline.py:72
↓ 1 callers
Function
fetchAuthStatus
()
src/app/page.tsx:155
↓ 1 callers
Function
fetchAuthStatus
()
src/app/[owner]/[repo]/page.tsx:351
↓ 1 callers
Function
fetchModel
()
src/components/Ask.tsx:116
↓ 1 callers
Function
fetchModelConfig
()
src/components/UserSelector.tsx:84
↓ 1 callers
Function
fetchProjects
()
src/components/ProcessedProjects.tsx:57
↓ 1 callers
Function
fetchProjects
()
src/hooks/useProcessedProjects.ts:19
↓ 1 callers
Function
generate_json_export
Generate JSON export of wiki pages. Args: repo_url: The repository URL pages: List of wiki pages Returns: JSON
api/api.py:369
↓ 1 callers
Function
generate_markdown_export
Generate Markdown export of wiki pages. Args: repo_url: The repository URL pages: List of wiki pages Returns: M
api/api.py:322
↓ 1 callers
Function
getCacheKey
(owner: string, repo: string, repoType: string, language: string, isComprehensive: boolean = true)
src/app/[owner]/[repo]/page.tsx:91
↓ 1 callers
Function
getGithubApiUrl
(repoUrl: string | null)
src/app/[owner]/[repo]/page.tsx:1217
↓ 1 callers
Function
getSupportedLanguages
()
src/contexts/LanguageContext.tsx:70
↓ 1 callers
Function
getWebSocketUrl
()
src/utils/websocketClient.ts:10
↓ 1 callers
Function
get_bitbucket_file_content
Retrieves the content of a file from a Bitbucket repository using the Bitbucket API. Args: repo_url (str): The URL of the Bitbucket
api/data_pipeline.py:619
↓ 1 callers
Function
get_github_file_content
Retrieves the content of a file from a GitHub repository using the GitHub API. Supports both public GitHub (github.com) and GitHub Enterprise
api/data_pipeline.py:460
↓ 1 callers
Function
get_gitlab_file_content
Retrieves the content of a file from a GitLab repository (cloud or self-hosted). Args: repo_url (str): The GitLab repo URL (e.g., "h
api/data_pipeline.py:537
↓ 1 callers
Function
handleConfirmAsk
()
src/components/Ask.tsx:541
↓ 1 callers
Function
handlePageSelect
(pageId: string)
src/app/[owner]/[repo]/page.tsx:1933
↓ 1 callers
Function
handleProviderChange
(newProvider: string)
src/components/UserSelector.tsx:120
↓ 1 callers
Function
handle_streaming_response
Handle the streaming response.
api/dashscope_client.py:96
↓ 1 callers
Method
init_async_client
(self)
api/dashscope_client.py:186
next →
1–100 of 326, ranked by callers