MCPcopy Create free account

hub / github.com/AsyncFuncAI/deepwiki-open / functions

Functions326 in github.com/AsyncFuncAI/deepwiki-open

↓ 26 callersMethodacall
kwargs is the combined input and model_kwargs
api/openai_client.py:488
↓ 26 callersMethodconvert_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 callersFunctiont
(key: string, params: Record<string, string | number> = {})
src/app/page.tsx:51
↓ 14 callersMethod_extract_repo_name_from_url
(self, repo_url_or_path: str, repo_type: str)
api/data_pipeline.py:770
↓ 12 callersMethodfilter
(self, record: logging.LogRecord)
api/logging_config.py:8
↓ 12 callersFunctionget_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 callersFunctionuseLanguage
()
src/contexts/LanguageContext.tsx:196
↓ 9 callersFunctiont
(key: string)
src/components/ProcessedProjects.tsx:49
↓ 8 callersFunctioncount_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 callersFunctionget_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 callersFunctionget_embedder_type
Get the current embedder type based on configuration. Returns: str: 'bedrock', 'ollama', 'google', or 'openai' (default)
api/config.py:244
↓ 7 callersFunctiongetRepoUrl
(repoInfo: RepoInfo)
src/utils/getRepoUrl.tsx:3
↓ 7 callersFunctionsetup_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 callersMethodrun_test
Run a single test function.
tests/unit/test_all_embedders.py:33
↓ 5 callersFunctionget_model_config
Get configuration for the specified provider and model Parameters: provider (str): Model provider ('google', 'openai', 'openrouter',
api/config.py:365
↓ 5 callersFunctionprepare_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 callersMethodcall
Call Google AI embedding API. Args: api_kwargs: API parameters model_type: Should be ModelType.EMBEDDER
api/google_embedder_client.py:211
↓ 4 callersFunctioncheckIfResearchComplete
(content: string)
src/components/Ask.tsx:176
↓ 4 callersFunctionextractResearchStage
(content: string, iteration: number)
src/components/Ask.tsx:212
↓ 4 callersFunctionload_json_config
(filename)
api/config.py:105
↓ 3 callersMethod__init__
( self, api_key: Optional[str] = None, workspace_id: Optional[str] = None, cha
api/dashscope_client.py:120
↓ 3 callersMethod_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 callersFunctioncloseWebSocket
(ws: WebSocket | null)
src/utils/websocketClient.ts:81
↓ 3 callersMethodconvert_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 callersFunctioncreateGithubHeaders
(githubToken: string)
src/app/[owner]/[repo]/page.tsx:140
↓ 3 callersFunctionextractUrlPath
(input: string)
src/utils/urlDecoder.tsx:11
↓ 3 callersFunctionget_wiki_cache_path
Generates the file path for a given wiki cache.
api/api.py:408
↓ 3 callersFunctionis_google_embedder
Check if the current embedder configuration uses GoogleEmbedderClient. Returns: bool: True if using GoogleEmbedderClient, False othe
api/config.py:206
↓ 3 callersMethodparse_embedding_response
Parse the embedding response to a EmbedderOutput.
api/dashscope_client.py:286
↓ 3 callersMethodparse_embedding_response
Parse Google AI embedding response to EmbedderOutput format. Args: response: Google AI embedding response (EmbeddingDict
api/google_embedder_client.py:78
↓ 2 callersMethod_compose_model_kwargs
(self, **model_kwargs)
api/dashscope_client.py:732
↓ 2 callersMethod_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 callersMethod_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 callersMethod_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 callersMethod_test_single_embedder_type
Test a single embedder type.
tests/unit/test_all_embedders.py:340
↓ 2 callersFunctionaddTokensToRequestBody
( // eslint-disable-next-line @typescript-eslint/no-explicit-any requestBody: Record<string, any>, token
src/app/[owner]/[repo]/page.tsx:96
↓ 2 callersFunctionaddTokensToRequestBody
( // eslint-disable-next-line @typescript-eslint/no-explicit-any requestBody: Record<string, any>, token
src/app/[owner]/[repo]/slides/page.tsx:13
↓ 2 callersMethodadd_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 callersMethodconvert_inputs_to_api_kwargs
Convert inputs to API kwargs.
api/dashscope_client.py:305
↓ 2 callersFunctioncreateBitbucketHeaders
(bitbucketToken: string)
src/app/[owner]/[repo]/page.tsx:164
↓ 2 callersFunctioncreateChatWebSocket
( request: ChatCompletionRequest, onMessage: (message: string) => void, onError: (error: Event) => void,
src/utils/websocketClient.ts:43
↓ 2 callersFunctionextractUrlDomain
(input: string)
src/utils/urlDecoder.tsx:1
↓ 2 callersFunctionfallbackToHttp
(requestBody: ChatCompletionRequest)
src/components/Ask.tsx:406
↓ 2 callersFunctionget_adalflow_default_root_path
()
api/api.py:36
↓ 2 callersFunctionget_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 callersFunctionhandleDelete
(project: ProcessedProject)
src/components/ProcessedProjects.tsx:104
↓ 2 callersMethodinit_async_client
(self)
api/azureai_client.py:262
↓ 2 callersMethodinit_async_client
(self)
api/openai_client.py:198
↓ 2 callersMethodinit_sync_client
(self)
api/dashscope_client.py:175
↓ 2 callersMethodinit_sync_client
(self)
api/azureai_client.py:233
↓ 2 callersMethodinit_sync_client
Initialize the synchronous AWS Bedrock client.
api/bedrock_client.py:113
↓ 2 callersMethodinit_sync_client
(self)
api/openai_client.py:190
↓ 2 callersMethodinitialize_db_manager
Initialize the database manager with local storage
api/rag.py:246
↓ 2 callersFunctionis_bedrock_embedder
Check if the current embedder configuration uses BedrockClient. Returns: bool: True if using BedrockClient, False otherwise
api/config.py:226
↓ 2 callersFunctionis_ollama_embedder
Check if the current embedder configuration uses OllamaClient. Returns: bool: True if using OllamaClient, False otherwise
api/config.py:186
↓ 2 callersFunctionloadConfigFromCache
(repoUrl: string)
src/app/page.tsx:82
↓ 2 callersFunctionnavigateToStage
(index: number)
src/components/Ask.tsx:256
↓ 2 callersFunctionparseRepositoryInput
(input: string)
src/app/page.tsx:177
↓ 2 callersMethodparse_chat_completion
Parse the completion response to a GeneratorOutput.
api/dashscope_client.py:197
↓ 2 callersFunctionparse_stream_response
Parse the response of the stream API.
api/dashscope_client.py:91
↓ 2 callersMethodprepare_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 callersMethodprepare_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 callersFunctionshould_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 callersMethod__init__
Initialize the RAG component. Args: provider: Model provider to use (google, openai, openrouter, ollama) mod
api/rag.py:157
↓ 1 callersMethod_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 callersMethod_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 callersMethod_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 callersMethod_initialize_client
Initialize the Google AI client with API key.
api/google_embedder_client.py:69
↓ 1 callersMethod_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 callersMethodacall
Async call to the Dashscope API.
api/dashscope_client.py:498
↓ 1 callersFunctionaddTokensToRequestBody
( // eslint-disable-next-line @typescript-eslint/no-explicit-any requestBody: Record<string, any>, token
src/app/[owner]/[repo]/workshop/page.tsx:14
↓ 1 callersMethodcall
Call the Dashscope API.
api/dashscope_client.py:391
↓ 1 callersMethodcall
Batch call to DashScope embedder Args: input: List of input texts model_kwargs: Model parameters
api/dashscope_client.py:748
↓ 1 callersMethodcall
Make a synchronous call to the AWS Bedrock API.
api/bedrock_client.py:304
↓ 1 callersFunctioncheck_environment
Check if required environment variables and dependencies are available.
tests/run_tests.py:84
↓ 1 callersFunctioncheck_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 callersFunctioncontinueResearch
()
src/components/Ask.tsx:281
↓ 1 callersFunctioncreateGitlabHeaders
(gitlabToken: string)
src/app/[owner]/[repo]/page.tsx:152
↓ 1 callersFunctiondetectBrowserLanguage
()
src/contexts/LanguageContext.tsx:26
↓ 1 callersFunctiondownload_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 callersFunctionfetchAuthStatus
()
src/app/page.tsx:155
↓ 1 callersFunctionfetchAuthStatus
()
src/app/[owner]/[repo]/page.tsx:351
↓ 1 callersFunctionfetchModel
()
src/components/Ask.tsx:116
↓ 1 callersFunctionfetchModelConfig
()
src/components/UserSelector.tsx:84
↓ 1 callersFunctionfetchProjects
()
src/components/ProcessedProjects.tsx:57
↓ 1 callersFunctionfetchProjects
()
src/hooks/useProcessedProjects.ts:19
↓ 1 callersFunctiongenerate_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 callersFunctiongenerate_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 callersFunctiongetCacheKey
(owner: string, repo: string, repoType: string, language: string, isComprehensive: boolean = true)
src/app/[owner]/[repo]/page.tsx:91
↓ 1 callersFunctiongetGithubApiUrl
(repoUrl: string | null)
src/app/[owner]/[repo]/page.tsx:1217
↓ 1 callersFunctiongetSupportedLanguages
()
src/contexts/LanguageContext.tsx:70
↓ 1 callersFunctiongetWebSocketUrl
()
src/utils/websocketClient.ts:10
↓ 1 callersFunctionget_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 callersFunctionget_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 callersFunctionget_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 callersFunctionhandleConfirmAsk
()
src/components/Ask.tsx:541
↓ 1 callersFunctionhandlePageSelect
(pageId: string)
src/app/[owner]/[repo]/page.tsx:1933
↓ 1 callersFunctionhandleProviderChange
(newProvider: string)
src/components/UserSelector.tsx:120
↓ 1 callersFunctionhandle_streaming_response
Handle the streaming response.
api/dashscope_client.py:96
↓ 1 callersMethodinit_async_client
(self)
api/dashscope_client.py:186
next →1–100 of 326, ranked by callers