MCPcopy Create free account

hub / github.com/Azure-Samples/azure-search-openai-demo / functions

Functions1,309 in github.com/Azure-Samples/azure-search-openai-demo

↓ 135 callersMethodget
(self)
tests/mocks.py:648
↓ 28 callersMethodsplit_pages
Split each page into semantic chunks using token-aware accumulation with atomic figures. Strategy (per page): 1. Extract balanced <fi
app/backend/prepdocslib/textsplitter.py:380
↓ 20 callersMethodcreate_index
(self)
app/backend/prepdocslib/searchmanager.py:98
↓ 18 callersFunctionbuild_request
Construct an HttpRequest carrying the provided payload.
tests/test_function_apps.py:33
↓ 18 callersMethodrun
(self)
scripts/manageacl.py:70
↓ 16 callersMethodjson
(self)
tests/mocks.py:331
↓ 14 callersFunctioncreate_authentication_helper
( enforce_access_control: bool = False, enable_unauthenticated_access: bool = False, )
tests/test_authenticationhelper.py:28
↓ 13 callersMethodclose
(self)
app/backend/prepdocslib/listfilestrategy.py:63
↓ 13 callersMethodsearch
( self, top: int, query_text: Optional[str], filter: Optional[str], ve
app/backend/approaches/approach.py:287
↓ 13 callersFunctionwrite_run
Create a single run folder with summary.json, eval_results.jsonl, and evaluate_parameters.json.
evals/tests/test_review_utils.py:11
↓ 12 callersFunctionfetchWithAuthRedirect
(input: RequestInfo | URL, init?: RequestInit)
app/frontend/src/api/api.ts:13
↓ 12 callersMethodread
(self)
tests/mocks.py:615
↓ 11 callersFunctionsetup_openai_client
( openai_host: OpenAIHost, azure_credential: AsyncTokenCredential, azure_openai_api_key: Optional[
app/backend/prepdocslib/servicesetup.py:84
↓ 10 callersMethodfilename
Get the filename from the content object. Different file-like objects store the filename in different attributes: - File obj
app/backend/prepdocslib/listfilestrategy.py:25
↓ 10 callersFunctionload_azd_env
Get path to current azd env file and load file using python-dotenv
scripts/load_azd_env.py:10
↓ 10 callersFunctionsend_question_to_target
( question: str, url: str, parameters: dict | None = None, raise_error=False, response_ans
evals/evaltools/eval/evaluate.py:23
↓ 9 callersFunctiongetHeaders
(idToken: string | undefined)
app/frontend/src/api/api.ts:25
↓ 9 callersFunctionmock_openai_chatcompletion
(monkeypatch)
tests/conftest.py:143
↓ 9 callersFunctionmock_openai_embedding
(monkeypatch)
tests/conftest.py:117
↓ 9 callersFunctionsetup_acl_mocks
Helper to set up mocks for get_file_acls tests.
tests/test_function_apps.py:626
↓ 8 callersFunctionbuild_file_processors
( *, azure_credential: AsyncTokenCredential, document_intelligence_service: str | None, docume
app/backend/prepdocslib/servicesetup.py:246
↓ 8 callersMethoddownload_blob
(self)
tests/mocks.py:68
↓ 8 callersFunctiongetToken
(client: IPublicClientApplication)
app/frontend/src/authConfig.ts:234
↓ 8 callersMethodget_media_describer
Return (and lazily create) the media describer for this processor.
app/backend/prepdocslib/figureprocessor.py:52
↓ 8 callersFunctionserver_app_initial
(identifier: int)
scripts/auth_init.py:99
↓ 8 callersMethodsplit_text_into_batches
(self, texts: list[str])
app/backend/prepdocslib/embeddings.py:74
↓ 8 callersMethodupload_blob
(self, file: File)
app/backend/prepdocslib/blobmanager.py:423
↓ 7 callersMethodby_page
(self)
tests/mocks.py:312
↓ 7 callersMethodcheck_path_auth
(self, path: str, auth_claims: dict[str, Any], search_client: SearchClient)
app/backend/core/authentication.py:180
↓ 7 callersMethodcreate_embeddings
(self, texts: list[str])
app/backend/prepdocslib/embeddings.py:173
↓ 7 callersFunctionerror_response
(error: Exception, route: str, status_code: int = 500)
app/backend/error.py:43
↓ 7 callersMethodget_aggregate_stats
Returns a dictionary of aggregate statistics for the metric
evals/evaltools/eval/evaluate_metrics/base_metric.py:14
↓ 7 callersMethodparse
(self, content: IO)
app/backend/prepdocslib/csvparser.py:23
↓ 7 callersFunctionprocess_page_image
Generate description, upload image, and optionally compute embedding for a figure.
app/backend/prepdocslib/figureprocessor.py:113
↓ 7 callersMethodrun_agentic_retrieval
( self, messages: list[EasyInputMessageParam], knowledgebase_client: KnowledgeBaseRetr
app/backend/approaches/approach.py:428
↓ 7 callersFunctionsetup_embeddings_service
( openai_host: OpenAIHost, open_ai_client: AsyncOpenAI, emb_model_name: str, emb_model_dimensi
app/backend/prepdocslib/servicesetup.py:157
↓ 7 callersMethodupdate_content
(self, sections: list[Section], url: Optional[str] = None)
app/backend/prepdocslib/searchmanager.py:603
↓ 6 callersMethodadd
(self, text: str, token_count: int)
app/backend/prepdocslib/textsplitter.py:161
↓ 6 callersMethodcreate
(self, *args, **kwargs)
tests/mocks.py:343
↓ 6 callersFunctioncreate_search_client
()
tests/test_authenticationhelper.py:44
↓ 6 callersMethodextract_followup_questions
(self, content: Optional[str])
app/backend/approaches/chatreadretrieveread.py:102
↓ 6 callersMethodget_file_client
(self, filename)
tests/mocks.py:662
↓ 6 callersMethodget_sources_content
Extract text/image sources & citations from documents. Args: results: List of retrieved Document objects. use_semanti
app/backend/approaches/approach.py:714
↓ 6 callersMethodparse
(self, content: IO)
app/backend/prepdocslib/pdfparser.py:65
↓ 6 callersMethodremove_blob
(self, path: Optional[str] = None)
app/backend/prepdocslib/blobmanager.py:526
↓ 6 callersMethodremove_content
(self, path: Optional[str] = None, only_oid: Optional[str] = None)
app/backend/prepdocslib/searchmanager.py:655
↓ 6 callersMethodsplit_page_by_max_tokens
Recursively split plain text by token count. Boundary preference order when an oversized span is encountered: 1. Sentence-ending punc
app/backend/prepdocslib/textsplitter.py:247
↓ 5 callersMethod_ensure_directory
Ensures that a directory path exists and has proper permissions. Creates the entire path in a single operation if it doesn't exist.
app/backend/prepdocslib/blobmanager.py:151
↓ 5 callersMethodclose
(self)
tests/mocks.py:126
↓ 5 callersFunctioncreate_mock_retrieve
Create a mock_retrieve function that returns different response types. Supported response_type values: - "default": single reference respon
tests/mocks.py:374
↓ 5 callersFunctioncreate_or_update_application_with_secret
( graph_client: GraphServiceClient, app_id_env_var: str, app_secret_env_var: str, request_app: Application
scripts/auth_init.py:62
↓ 5 callersMethoddescribe
Generate a description for the provided image bytes if a describer is available.
app/backend/prepdocslib/figureprocessor.py:89
↓ 5 callersFunctiondiff_directories
(directories: list[Path], changed: str | None = None)
evals/evaltools/review/utils.py:82
↓ 5 callersMethodfrom_skill_payload
(cls, data: dict[str, Any])
app/backend/prepdocslib/page.py:40
↓ 5 callersFunctiongetAppServicesToken
()
app/frontend/src/authConfig.ts:140
↓ 5 callersMethodinit
()
app/frontend/src/components/HistoryProviders/IndexedDB.ts:20
↓ 5 callersMethodis_reasoning_model
Returns true if the model is a GPT-5 family reasoning model. This project no longer supports o-series models as they are rarely used now,
app/backend/approaches/approach.py:913
↓ 5 callersMethodlist
(self)
app/backend/prepdocslib/listfilestrategy.py:104
↓ 5 callersMethodrun
( self, messages: list[EasyInputMessageParam], session_state: Any = None, cont
app/backend/approaches/approach.py:1007
↓ 5 callersFunctionsetup_blob_manager
Create a BlobManager instance for document or figure storage. The optional resource group and subscription are retained for parity with local
app/backend/prepdocslib/servicesetup.py:182
↓ 5 callersFunctionsummarize_results
(results_dir)
evals/evaltools/review/utils.py:7
↓ 4 callersFunctionbuild_group_summary
(label: str, run_paths: list[Path], iterations: int, seed: int)
evals/eval_compare.py:157
↓ 4 callersFunctioncombine_text_with_figures
Replace figure placeholders in page text with full description markup.
app/backend/prepdocslib/textprocessor.py:14
↓ 4 callersMethodcreate_search_indexer_client
(self)
app/backend/prepdocslib/strategy.py:47
↓ 4 callersMethodfilename_to_id
(self)
app/backend/prepdocslib/listfilestrategy.py:55
↓ 4 callersFunctiongetActiveOrFirstAccount
(client: IPublicClientApplication)
app/frontend/src/authConfig.ts:10
↓ 4 callersMethodget_auth_claims_if_enabled
(self, headers: dict)
app/backend/core/authentication.py:142
↓ 4 callersMethodget_auth_setup_for_client
(self)
app/backend/core/authentication.py:77
↓ 4 callersMethodget_documents
(self, search_client: SearchClient)
scripts/manageacl.py:146
↓ 4 callersMethodget_token
(self, *scopes, **kwargs)
tests/mocks.py:49
↓ 4 callersFunctiongrant_application_admin_consent
(graph_client: GraphServiceClient, client_app_id: str, server_app_id: str)
scripts/auth_init.py:209
↓ 4 callersMethodparse
Parses the given content. To learn more, please visit https://pypi.org/project/beautifulsoup4/ Args: content (IO): The con
app/backend/prepdocslib/htmlparser.py:34
↓ 4 callersMethodreplace_all_ref_ids
Replace [ref_id:<id>] tokens with document sourcepage, web URL, or SharePoint web_url. Priority: web result -> SharePoint result -> document.
app/backend/approaches/approach.py:685
↓ 4 callersFunctionserver_app_permission_setup
(server_app_id: str)
scripts/auth_init.py:106
↓ 4 callersFunctionsetup_search_info
Setup search service information.
app/backend/prepdocslib/servicesetup.py:52
↓ 4 callersMethodsourcepage_from_file_page
(cls, filename, page=0)
app/backend/prepdocslib/blobmanager.py:35
↓ 4 callersMethodtext
(self)
tests/mocks.py:328
↓ 4 callersMethodto_skill_payload
( self, file_name: str, *, include_bytes_base64: bool = True, )
app/backend/prepdocslib/page.py:20
↓ 3 callersMethod_select_knowledgebase_client
( self, use_web_source: bool, use_sharepoint_source: bool, )
app/backend/approaches/chatreadretrieveread.py:482
↓ 3 callersFunctionadd_client_secret
(graph_client: GraphServiceClient, app_id: str)
scripts/auth_init.py:50
↓ 3 callersMethodblob_name_from_file_name
(cls, filename)
app/backend/prepdocslib/blobmanager.py:42
↓ 3 callersFunctionbuild_raw_request
Construct an HttpRequest with a raw (non-JSON) payload.
tests/test_function_apps.py:45
↓ 3 callersFunctioncheckLoggedIn
(client: IPublicClientApplication | undefined)
app/frontend/src/authConfig.ts:218
↓ 3 callersFunctionclean_key_if_exists
Remove leading and trailing whitespace from a key if it exists. If the key is empty, return None.
app/backend/prepdocslib/servicesetup.py:30
↓ 3 callersFunctionclient_app
(server_app_id: str, server_app: Application, identifier: int)
scripts/auth_init.py:154
↓ 3 callersMethodclose_clients
(self)
app/backend/prepdocslib/blobmanager.py:415
↓ 3 callersMethodcompute_multimodal_embedding
(self, q: str)
app/backend/approaches/approach.py:897
↓ 3 callersMethodconfigure
(self, responses, raise_on_post=None)
tests/test_auth_init.py:120
↓ 3 callersMethodcreate_analyzer
(self)
app/backend/prepdocslib/mediadescriber.py:70
↓ 3 callersFunctioncreate_application
(graph_client: GraphServiceClient, request_app: Application)
scripts/auth_init.py:35
↓ 3 callersMethoddownload_blob
Downloads a blob from Azure Blob Storage. Args: blob_path: The path to the blob in the storage user_oid: Not
app/backend/prepdocslib/blobmanager.py:466
↓ 3 callersMethodevaluator_fn
(cls, **kwargs)
evals/evaltools/eval/evaluate_metrics/code_metrics.py:73
↓ 3 callersMethodevaluator_fn
(cls, **kwargs)
evals/evaltools/eval/evaluate_metrics/code_metrics.py:104
↓ 3 callersMethodextract_rewritten_query
( self, response: Response, user_query: str, no_response_token: Optional[str]
app/backend/approaches/approach.py:358
↓ 3 callersMethodfigure_to_image
(doc: pymupdf.Document, figure: DocumentFigure)
app/backend/prepdocslib/pdfparser.py:197
↓ 3 callersMethodformat_thought_step_for_chatcompletion
( self, title: str, messages: list[EasyInputMessageParam], overrides: dict[str
app/backend/approaches/approach.py:985
↓ 3 callersFunctiongetCitationFilePath
(citation: string)
app/frontend/src/api/api.ts:82
↓ 3 callersFunctiongetUsername
(client: IPublicClientApplication)
app/frontend/src/authConfig.ts:258
↓ 3 callersMethodget_managedidentity_connectionstring
(self)
app/backend/prepdocslib/blobmanager.py:418
↓ 3 callersMethodget_response_token_limit
(self, model: str, default_limit: int)
app/backend/approaches/approach.py:920
next →1–100 of 1,309, ranked by callers