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

↓ 1 callersMethod__init__
(self)
tests/test_pdfparser.py:453
↓ 1 callersMethod_build_skillset
(self)
app/backend/prepdocslib/cloudingestionstrategy.py:117
↓ 1 callersMethod_find_split_pos
Find a good split position near midpoint. Returns (index, use_overlap_fallback). Priority: 1. Sentence-ending punctuation ne
app/backend/prepdocslib/textsplitter.py:206
↓ 1 callersMethod_is_heading_like
Heuristic heading detector used to suppress cross-page semantic overlap when a new section starts.
app/backend/prepdocslib/textsplitter.py:273
↓ 1 callersMethod_list_paths
(self, path_pattern: str)
app/backend/prepdocslib/listfilestrategy.py:95
↓ 1 callersMethod_should_cross_page_overlap
(self, prev: Chunk, nxt: Chunk)
app/backend/prepdocslib/textsplitter.py:292
↓ 1 callersMethodadd_acl
(self, search_client: SearchClient)
scripts/manageacl.py:130
↓ 1 callersMethodadd_file
(self, file: File, user_oid: str)
app/backend/prepdocslib/filestrategy.py:183
↓ 1 callersFunctionappServicesLogout
()
app/frontend/src/authConfig.ts:168
↓ 1 callersMethodappend_figure_and_flush
Append a figure (allowed to overflow) to current accumulation and flush in one step.
app/backend/prepdocslib/textsplitter.py:183
↓ 1 callersFunctionassert_image_equal
(image1, image2)
tests/test_pdfparser.py:54
↓ 1 callersFunctionbuildActivityStepMap
(answer: ChatAppResponse)
app/frontend/src/components/Answer/AnswerParser.tsx:53
↓ 1 callersFunctionbuild_document_components
( file_name: str, pages: list[Page], oids: list[str] | None = None, groups: list[str] | None = None )
app/functions/document_extractor/function_app.py:338
↓ 1 callersFunctionbuild_sources
()
tests/test_chatapproach.py:334
↓ 1 callersMethodbuild_user_prompt
Build a single user message with optional images. Args: template_path: Path to the user message template file templat
app/backend/approaches/promptmanager.py:38
↓ 1 callersMethodcalculate_token_length
(self, text: str)
app/backend/prepdocslib/embeddings.py:70
↓ 1 callersFunctioncallback
( messages: list[dict], stream: bool = False, session_state: Any = None, context: Optional[dic
evals/safety_evaluation.py:49
↓ 1 callersMethodcan_fit
(self, text: str, token_count: int)
app/backend/prepdocslib/textsplitter.py:153
↓ 1 callersFunctioncanonicalize_config
Produce a comparable string from a run config, ignoring results_dir which varies per run.
evals/eval_compare.py:81
↓ 1 callersFunctionchatApi
(request: ChatAppRequest, shouldStream: boolean, idToken: string | undefined, signal: AbortSignal)
app/frontend/src/api/api.ts:25
↓ 1 callersFunctioncheck_search_service_connectivity
Check if the search service is accessible by hitting the /ping endpoint.
app/backend/prepdocs.py:37
↓ 1 callersFunctioncleanup_data
Cleans up the given content using regexes Args: data: (str): The data to clean up. Returns: str: The cleaned up data.
app/backend/prepdocslib/htmlparser.py:14
↓ 1 callersFunctioncleanup_data
Cleans up the given content using regexes Args: data: (str): The data to clean up. Returns: str: The cleaned up data.
app/backend/prepdocslib/textparser.py:9
↓ 1 callersMethodcompute_text_embedding
(self, q: str)
app/backend/approaches/approach.py:874
↓ 1 callersFunctionconfigApi
()
app/frontend/src/api/api.ts:17
↓ 1 callersFunctionconfigure_global_settings
()
app/functions/document_extractor/function_app.py:48
↓ 1 callersFunctionconfigure_global_settings
()
app/functions/text_processor/function_app.py:48
↓ 1 callersFunctionconfigure_global_settings
()
app/functions/figure_processor/function_app.py:49
↓ 1 callersMethodconnect
Connect to CosmosDB and initialize containers.
scripts/cosmosdb_migration.py:60
↓ 1 callersFunctioncopy_tree
(src: Path, dest: Path)
scripts/copy_prepdocslib.py:15
↓ 1 callersFunctioncreateClaims
(o: Record<string, unknown> | undefined)
app/frontend/src/components/TokenClaimsDisplay/TokenClaimsDisplay.tsx:42
↓ 1 callersFunctioncreate_app
()
app/backend/app.py:750
↓ 1 callersMethodcreate_embedding_batch
(self, texts: list[str], dimensions_args: ExtraArgs)
app/backend/prepdocslib/embeddings.py:132
↓ 1 callersMethodcreate_embedding_for_text
(self, q: str)
app/backend/prepdocslib/embeddings.py:214
↓ 1 callersMethodcreate_embedding_single
(self, text: str, dimensions_args: ExtraArgs)
app/backend/prepdocslib/embeddings.py:155
↓ 1 callersMethodcreate_embedding_skill
Create a skillset for the indexer to chunk documents and generate embeddings
app/backend/prepdocslib/integratedvectorizerstrategy.py:70
↓ 1 callersMethodcreate_knowledgebase
Creates one or more Knowledge Bases in the search index based on desired knowledge sources.
app/backend/prepdocslib/searchmanager.py:484
↓ 1 callersMethodcreate_service_client
(self)
scripts/adlsgen2setup.py:113
↓ 1 callersFunctiondeleteChatHistoryApi
(id: string, idToken: string)
app/frontend/src/api/api.ts:165
↓ 1 callersMethoddeleteItem
(id: string, idToken?: string)
app/frontend/src/components/HistoryProviders/IProvider.ts:18
↓ 1 callersFunctiondeleteUploadedFileApi
(filename: string, idToken: string)
app/frontend/src/api/api.ts:84
↓ 1 callersMethoddescribe_image
(self, image_bytes)
app/backend/prepdocslib/mediadescriber.py:25
↓ 1 callersMethoddownload_blob_as_base64
Downloads a blob from either Azure Blob Storage or Azure Data Lake Storage and returns it as a base64 encoded string. Args:
app/backend/approaches/approach.py:833
↓ 1 callersMethoddownload_file
(self)
tests/mocks.py:673
↓ 1 callersMethodenable_acls
(self, endpoint: str)
scripts/manageacl.py:160
↓ 1 callersMethodenable_global_access
(self, search_client: SearchClient)
scripts/manageacl.py:228
↓ 1 callersFunctionfake_completion
()
tests/test_chatapproach.py:564
↓ 1 callersFunctionfetchAuthSetup
()
app/frontend/src/authConfig.ts:56
↓ 1 callersFunctionfetchCitation
()
app/frontend/src/components/AnalysisPanel/AnalysisPanel.tsx:40
↓ 1 callersFunctionfetchClaims
()
app/frontend/src/components/TokenClaimsDisplay/TokenClaimsDisplay.tsx:27
↓ 1 callersFunctionfetchMarkdown
()
app/frontend/src/components/MarkdownViewer/MarkdownViewer.tsx:30
↓ 1 callersFunctionfetchUsername
()
app/frontend/src/components/LoginButton/LoginButton.tsx:18
↓ 1 callersMethodforce_append
(self, text: str)
app/backend/prepdocslib/textsplitter.py:168
↓ 1 callersFunctionformat_as_ndjson
(r: AsyncGenerator[dict, None])
app/backend/app.py:198
↓ 1 callersFunctiongen
()
tests/test_app.py:868
↓ 1 callersFunctiongenerate_ground_truth_ragas
(num_questions=200, num_search_documents=None, kg_file=None)
evals/generate_ground_truth.py:55
↓ 1 callersFunctiongetChatHistoryApi
(id: string, idToken: string)
app/frontend/src/api/api.ts:150
↓ 1 callersFunctiongetChatHistoryListApi
(count: number, continuationToken: string | undefined, idToken: string)
app/frontend/src/api/api.ts:130
↓ 1 callersFunctiongetConfig
()
app/frontend/src/pages/chat/Chat.tsx:114
↓ 1 callersMethodgetItem
(id: string, idToken?: string)
app/frontend/src/components/HistoryProviders/IProvider.ts:17
↓ 1 callersMethodgetNextItems
(count: number, idToken?: string)
app/frontend/src/components/HistoryProviders/IProvider.ts:15
↓ 1 callersFunctiongetResultsForStep
(step: QueryPlanStep)
app/frontend/src/components/AnalysisPanel/AgentPlan.tsx:119
↓ 1 callersFunctiongetSpeechApi
(text: string)
app/frontend/src/api/api.ts:39
↓ 1 callersFunctiongetStepQuery
(step: QueryPlanStep)
app/frontend/src/components/AnalysisPanel/AgentPlan.tsx:111
↓ 1 callersFunctiongetTokenClaims
(client: IPublicClientApplication)
app/frontend/src/authConfig.ts:240
↓ 1 callersFunctiongetUtterance
(text: string, lngCode: string = "en-US")
app/frontend/src/components/Answer/SpeechOutputBrowser.tsx:21
↓ 1 callersFunctionget_azure_credential
()
evals/generate_ground_truth.py:25
↓ 1 callersFunctionget_azure_credential
()
evals/safety_evaluation.py:38
↓ 1 callersFunctionget_azure_credential
()
evals/evaluate.py:98
↓ 1 callersMethodget_directory_properties
(self)
tests/mocks.py:655
↓ 1 callersFunctionget_file_acls
Extract user and group IDs from ADLS Gen2 ACLs for a file. Args: file_path: Path to the file within the container Returns:
app/functions/document_extractor/function_app.py:262
↓ 1 callersMethodget_image_citation
(self, sourcepage: Optional[str], image_url: str)
app/backend/approaches/approach.py:828
↓ 1 callersMethodget_lowest_reasoning_effort
Return the lowest valid reasoning_effort for the given model.
app/backend/approaches/approach.py:927
↓ 1 callersFunctionget_openai_config
()
evals/evaluate.py:89
↓ 1 callersFunctionget_search_documents
(azure_credential, num_search_documents=None)
evals/generate_ground_truth.py:36
↓ 1 callersMethodget_system_prompt_variables
(self, override_prompt: Optional[str])
app/backend/approaches/approach.py:904
↓ 1 callersFunctiongroupHistory
(history: HistoryData[])
app/frontend/src/components/HistoryPanel/HistoryPanel.tsx:115
↓ 1 callersFunctionhandleAsyncRequest
(question: string, answers: [string, ChatAppResponse][], responseBody: ReadableStream<any>, signal: AbortSigna
app/frontend/src/pages/chat/Chat.tsx:160
↓ 1 callersFunctionhandleClose
()
app/frontend/src/components/HistoryPanel/HistoryPanel.tsx:72
↓ 1 callersFunctionhandleRemoveFile
(filename: string)
app/frontend/src/components/UploadFile/UploadFile.tsx:58
↓ 1 callersMethodhandle_post
(self, grant)
tests/test_auth_init.py:131
↓ 1 callersMethodhas_content
(self)
app/backend/prepdocslib/textsplitter.py:180
↓ 1 callersFunctionlistUploadedFilesApi
(idToken: string)
app/frontend/src/api/api.ts:100
↓ 1 callersMethodlist_blobs
Lists the uploaded documents for the given user. Only returns files directly in the user's directory, not in subdirectories.
app/backend/prepdocslib/blobmanager.py:349
↓ 1 callersFunctionload_run
(path: Path)
evals/eval_compare.py:88
↓ 1 callersFunctionmain
Main function to setup cloud ingestion.
app/backend/setup_cloud_ingestion.py:148
↓ 1 callersFunctionmain
(strategy: Strategy, setup_index: bool = True)
app/backend/prepdocs.py:102
↓ 1 callersFunctionmain
(args: Any)
scripts/adlsgen2setup.py:157
↓ 1 callersFunctionmain
()
scripts/auth_init.py:279
↓ 1 callersFunctionmain
()
scripts/verify_search_index_acls.py:16
↓ 1 callersFunctionmain
()
scripts/copy_prepdocslib.py:21
↓ 1 callersFunctionmain
()
scripts/auth_update.py:15
↓ 1 callersFunctionmain
(args: Any)
scripts/manageacl.py:260
↓ 1 callersFunctionmain
()
evals/eval_compare.py:346
↓ 1 callersFunctionmessages_contains_text
(messages, text)
tests/test_app.py:43
↓ 1 callersFunctionmock_retrieval_response_with_sharepoint
Mock response with SharePoint knowledge source
tests/mocks.py:499
↓ 1 callersFunctionmock_retrieval_response_with_sorting
Mock response with multiple references for testing sorting
tests/mocks.py:546
↓ 1 callersFunctionmock_retrieval_response_with_top_limit
Mock response with many references to test top limit during document building
tests/mocks.py:584
↓ 1 callersFunctionmock_retrieval_response_with_web
()
tests/mocks.py:452
↓ 1 callersFunctionmock_search
(*args, **kwargs)
tests/test_chatapproach.py:40
← previousnext →201–300 of 1,218, ranked by callers