MCPcopy Create free account

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

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

↓ 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:986
↓ 3 callersFunctiongetCitationFilePath
(citation: string)
app/frontend/src/api/api.ts:63
↓ 3 callersFunctiongetUsername
(client: IPublicClientApplication)
app/frontend/src/authConfig.ts:220
↓ 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:921
↓ 3 callersMethodget_search_query
Read the optimized search query from a response tool call.
app/backend/approaches/chatreadretrieveread.py:107
↓ 3 callersMethodlist
(self)
app/backend/prepdocslib/listfilestrategy.py:73
↓ 3 callersFunctionlistUploadedFiles
(idToken: string)
app/frontend/src/components/UploadFile/UploadFile.tsx:50
↓ 3 callersMethodlist_paths
(self)
app/backend/prepdocslib/listfilestrategy.py:91
↓ 3 callersFunctionload_azd_env
Get path to current azd env file and load file using python-dotenv
app/backend/load_azd_env.py:11
↓ 3 callersFunctionmake_text_delta
(delta: str)
tests/conftest.py:148
↓ 3 callersFunctiononShowCitation
(citation: string, index: number)
app/frontend/src/pages/chat/Chat.tsx:495
↓ 3 callersMethodparse
(self, content: IO)
app/backend/prepdocslib/csvparser.py:14
↓ 3 callersMethodparse
(self, content: IO)
app/backend/prepdocslib/textparser.py:27
↓ 3 callersFunctionparse_file
( file: File, file_processors: dict[str, FileProcessor], category: Optional[str] = None, blob_
app/backend/prepdocslib/filestrategy.py:21
↓ 3 callersMethodrun
(self)
scripts/adlsgen2setup.py:59
↓ 3 callersMethodrun_until_final_call
( self, messages: list[EasyInputMessageParam], overrides: dict[str, Any], auth
app/backend/approaches/chatreadretrieveread.py:224
↓ 3 callersFunctionselect_processor_for_filename
Select the appropriate file processor for a given filename. Args: file_name: Name of the file to process file_processors: Diction
app/backend/prepdocslib/servicesetup.py:317
↓ 3 callersFunctionsetup_figure_processor
Create a FigureProcessor based on feature flags. Priority order: 1. use_multimodal -> MediaDescriptionStrategy.OPENAI 2. else if use_
app/backend/prepdocslib/servicesetup.py:212
↓ 3 callersFunctionsetup_image_embeddings_service
( azure_credential: AsyncTokenCredential, vision_endpoint: Optional[str], use_multimodal: bool, )
app/backend/prepdocslib/servicesetup.py:141
↓ 3 callersMethodsplit_pages
(self, pages: list[Page])
app/backend/prepdocslib/textsplitter.py:595
↓ 3 callersMethodtable_to_html
(table: DocumentTable)
app/backend/prepdocslib/pdfparser.py:239
↓ 3 callersMethodupdate_token_usage
(self, usage: CompletionUsage | ResponseUsage)
app/backend/approaches/approach.py:165
↓ 2 callersMethod_append_overlap
Return a modified copy of prev_chunk whose text has an appended semantic overlap prefix from next_chunk; next_chunk itself is left unchanged s
app/backend/prepdocslib/textsplitter.py:311
↓ 2 callersMethod_get_image_directory_path
Returns the standardized path for storing document images. Args: document_filename: The name of the document
app/backend/prepdocslib/blobmanager.py:208
↓ 2 callersFunction_normalize_chunk
Normalize a non-figure chunk that may slightly exceed max_chars. Allows overflow for any chunk containing a <figure ...> tag (figures are atomic)
app/backend/prepdocslib/textsplitter.py:111
↓ 2 callersFunction_safe_concat
Concatenate two non-empty segments, inserting a space only when both sides end/start with alphanumerics and no natural boundary exists. Rules
app/backend/prepdocslib/textsplitter.py:88
↓ 2 callersMethodaddItem
(id: string, answers: Answers, idToken?: string)
app/frontend/src/components/HistoryProviders/IProvider.ts:16
↓ 2 callersMethodadd_image_citation
Adds citation text to an image from a document. Args: image_bytes: The original image bytes document_filename
app/backend/prepdocslib/blobmanager.py:46
↓ 2 callersMethodbuild_conversation
Build a full conversation with system, history, and user message. Args: system_template_path: Path to the system message template
app/backend/approaches/promptmanager.py:62
↓ 2 callersFunctionbuild_figure_markup
Create consistent HTML markup for a figure description on demand.
app/backend/prepdocslib/figureprocessor.py:101
↓ 2 callersMethodbuild_filter
(self, overrides: dict[str, Any])
app/backend/approaches/approach.py:278
↓ 2 callersFunctionbuild_json_payload
( group_summaries: list[GroupSummary], comparisons_by_label: dict[str, list[MetricComparison]] )
evals/eval_compare.py:295
↓ 2 callersMethodbuild_system_prompt
Build a single system message. Use for simple prompts like query rewrite. Args: template_path: Path to the system message templat
app/backend/approaches/promptmanager.py:25
↓ 2 callersFunctioncheckNotExpired
(appServicesToken: AppServicesToken)
app/frontend/src/authConfig.ts:111
↓ 2 callersMethodclose
Close the CosmosDB client.
scripts/cosmosdb_migration.py:131
↓ 2 callersFunctioncollectCitations
(answer: ChatAppResponse, isStreaming: boolean)
app/frontend/src/components/Answer/AnswerParser.tsx:78
↓ 2 callersFunctioncompare_groups
( baseline: GroupSummary, candidate: GroupSummary, iterations: int, seed: int, alpha: floa
evals/eval_compare.py:208
↓ 2 callersMethodcreate_directory
(self, *args, **kwargs)
tests/test_upload.py:30
↓ 2 callersMethodcreate_embedding_for_image
(self, image_bytes: bytes)
app/backend/prepdocslib/embeddings.py:196
↓ 2 callersMethodcreate_pem_format
(self, jwks, token)
app/backend/core/authentication.py:205
↓ 2 callersMethodcreate_response
( self, chatgpt_deployment: Optional[str], chatgpt_model: str, input: list[Eas
app/backend/approaches/approach.py:949
↓ 2 callersMethodcreate_search_client
(self)
app/backend/prepdocslib/strategy.py:41
↓ 2 callersMethodcreate_search_index_client
(self)
app/backend/prepdocslib/strategy.py:44
↓ 2 callersFunctioncreate_session_id
( config_chat_history_cosmos_enabled: bool, config_chat_history_browser_enabled: bool )
app/backend/core/sessionhelper.py:5
↓ 2 callersMethodcrop_image_from_pdf_page
Crops a region from a given page in a PDF and returns it as an image. :param pdf_path: Path to the PDF file. :param page_num
app/backend/prepdocslib/pdfparser.py:260
↓ 2 callersMethoddescribe_image
(self, image_bytes: bytes)
app/backend/prepdocslib/mediadescriber.py:96
↓ 2 callersMethoddescribe_image
(self, image_bytes: bytes)
app/backend/prepdocslib/mediadescriber.py:125
↓ 2 callersFunctionerror_dict
(error: Exception)
app/backend/error.py:35
↓ 2 callersFunctionfake_response
(http_code)
tests/test_prepdocs.py:82
↓ 2 callersMethodfile_extension
(self)
app/backend/prepdocslib/listfilestrategy.py:52
↓ 2 callersFunctionflatten_keys
(data: dict, prefix: str = "")
tests/test_frontend_locales.py:10
↓ 2 callersMethodfrom_usage
(cls, usage: CompletionUsage | ResponseUsage)
app/backend/approaches/approach.py:209
↓ 2 callersFunctiongetAppServicesTokenFromMe
()
app/frontend/src/authConfig.ts:121
↓ 2 callersFunctiongetRedirectUri
()
app/frontend/src/authConfig.ts:92
↓ 2 callersFunctiongetStepLabel
(step: QueryPlanStep)
app/frontend/src/components/AnalysisPanel/agentPlanUtils.ts:39
↓ 2 callersMethodget_access_control
(self)
tests/mocks.py:659
↓ 2 callersFunctionget_application
(graph_client: GraphServiceClient, client_id: str)
scripts/auth_common.py:8
↓ 2 callersMethodget_file_system_client
(self, container)
tests/test_function_apps.py:164
↓ 2 callersFunctionget_openai_error_code
Extract the error code from an OpenAI API error body.
app/backend/error.py:17
↓ 2 callersMethodget_reasoning_effort_options
Return the valid reasoning_effort values for the given model. Based off Responses API reference: https://developers.openai.com/api/reference/r
app/backend/approaches/approach.py:933
↓ 2 callersFunctionisWebCitation
(reference: string)
app/frontend/src/components/Answer/AnswerParser.tsx:32
↓ 2 callersFunctionis_content_filter_error
Check if an error is a content filter error from OpenAI or Azure Search.
app/backend/error.py:25
↓ 2 callersMethodlist_paths
(self)
app/backend/prepdocslib/listfilestrategy.py:77
↓ 2 callersFunctionload_locale
(locale: str)
tests/test_frontend_locales.py:21
↓ 2 callersMethodload_tools
Load tools from a JSON file.
app/backend/approaches/promptmanager.py:98
↓ 2 callersFunctionmake_response_usage
(usage: dict[str, Any])
tests/conftest.py:161
↓ 2 callersMethodmark_content_understanding_ready
Record that the Content Understanding analyzer exists to avoid recreating it.
app/backend/prepdocslib/figureprocessor.py:84
↓ 2 callersFunctionmean_confidence_interval
(values: list[float], iterations: int, seed: int)
evals/eval_compare.py:100
↓ 2 callersMethodmigrate
Migrate data from old schema to new schema.
scripts/cosmosdb_migration.py:79
↓ 2 callersFunctionmigrate_cosmosdb_data
Legacy function for backward compatibility. Migrate data from CosmosDB to a new format.
scripts/cosmosdb_migration.py:139
↓ 2 callersFunctionmock_retrieval_response
()
tests/mocks.py:423
↓ 2 callersFunctionmock_vision_response
()
tests/mocks.py:353
↓ 2 callersMethodparse
(self, content: IO)
app/backend/prepdocslib/pdfparser.py:35
↓ 2 callersMethodparse
(self, content: IO)
app/backend/prepdocslib/jsonparser.py:14
↓ 2 callersMethodparse
(self, content: IO)
app/backend/prepdocslib/parser.py:13
↓ 2 callersFunctionpatch
(openai_client)
tests/conftest.py:138
↓ 2 callersFunctionplayAudio
(url: string)
app/frontend/src/components/Answer/SpeechOutputAzure.tsx:19
↓ 2 callersMethodpoll_api
(self, session, poll_url, headers)
app/backend/prepdocslib/mediadescriber.py:55
↓ 2 callersFunctionprocess_text
Process document text and figures into searchable sections. Combines text with figure descriptions, splits into chunks, and associates figures
app/backend/prepdocslib/textprocessor.py:27
↓ 2 callersMethodraise_for_status
(self)
tests/mocks.py:335
↓ 2 callersMethodreadall
(self)
tests/mocks.py:78
↓ 2 callersMethodresetContinuationToken
()
app/frontend/src/components/HistoryProviders/IProvider.ts:14
↓ 2 callersMethodrewrite_query
( self, *, prompt_template: str, prompt_variables: dict[str, Any], ove
app/backend/approaches/approach.py:385
↓ 2 callersMethodrun
(self)
tests/test_prepdocs.py:262
↓ 2 callersMethodrun_search_approach
( self, messages: list[EasyInputMessageParam], overrides: dict[str, Any], auth_claims: dict[str, Any]
app/backend/approaches/chatreadretrieveread.py:308
↓ 2 callersMethodrun_with_streaming
( self, messages: list[EasyInputMessageParam], overrides: dict[str, Any], auth
app/backend/approaches/chatreadretrieveread.py:144
↓ 2 callersMethodserialize_for_results
(self)
app/backend/approaches/approach.py:81
↓ 2 callersMethodsetup
(self)
app/backend/prepdocslib/strategy.py:62
↓ 2 callersFunctionsetup_file_processors
Setup file processors and figure processor for document ingestion. Uses build_file_processors from servicesetup to ensure consistent parser/split
app/backend/prepdocs.py:62
↓ 2 callersMethodsetup_search_manager
(self)
app/backend/prepdocslib/filestrategy.py:92
↓ 2 callersFunctiontest_authentication_enabled
()
scripts/auth_common.py:18
↓ 2 callersFunctiontruncateImageUrl
(val: string)
app/frontend/src/components/AnalysisPanel/ThoughtProcess.tsx:20
↓ 2 callersFunctionupdate_azd_env
(name, val)
scripts/auth_init.py:89
↓ 2 callersFunctionuseHistoryManager
(provider: HistoryProviderOptions)
app/frontend/src/components/HistoryProviders/HistoryManager.ts:7
↓ 2 callersMethodvalidate_access_token
Validate an access token is issued by Entra
app/backend/core/authentication.py:224
↓ 2 callersFunctionvalidate_index
(index)
tests/test_manageacl.py:367
↓ 1 callersFunctionToString
(a: string | any)
app/frontend/src/components/TokenClaimsDisplay/TokenClaimsDisplay.tsx:34
↓ 1 callersMethod__anext__
(self)
tests/mocks.py:137
← previousnext →101–200 of 1,218, ranked by callers