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

Functionadls_blob_manager
(monkeypatch)
tests/test_blob_manager.py:32
Functionall_locales
()
tests/test_frontend_locales.py:25
Methodany_citation
(*, response, **kwargs)
evals/evaluate.py:44
Methodask_question
(self)
locustfile.py:11
Functionassets
(path)
app/backend/app.py:133
Functionauth_client
( monkeypatch, mock_openai_chatcompletion, mock_openai_embedding, mock_confidential_client_suc
tests/conftest.py:743
Functionauth_handler
(path="")
app/backend/decorators.py:19
Functionauth_public_documents_client
( monkeypatch, mock_openai_chatcompletion, mock_openai_embedding, mock_confidential_client_suc
tests/conftest.py:782
Functionauth_setup
()
app/backend/app.py:270
Functionauthenticated
Decorator for routes that might require access control. Unpacks Authorization header information into an auth_claims dictionary
app/backend/decorators.py:44
Functionauthenticated_path
Decorator for routes that request a specific file that might require access control enforcement
app/backend/decorators.py:13
Functionbad_send_async
(request_info, return_type, error_mapping=None)
tests/test_auth_init.py:157
Methodbefore_retry_sleep
(retry_state)
app/backend/prepdocslib/mediadescriber.py:126
Methodbefore_retry_sleep
(self, retry_state)
app/backend/prepdocslib/embeddings.py:67
Methodbefore_retry_sleep
(self, retry_state)
app/backend/prepdocslib/embeddings.py:233
Functionblob_manager
()
tests/test_blob_manager.py:20
Methodby_page
(self)
tests/test_manageacl.py:33
Methodby_page
Return a paged iterator
tests/test_cosmosdb_migration.py:63
Methodby_page
(self, continuation_token=None)
tests/test_cosmosdb.py:92
Functionchat
(auth_claims: dict[str, Any])
app/backend/app.py:209
Functionchat_approach
()
tests/conftest.py:1129
Functionchat_stream
(auth_claims: dict[str, Any])
app/backend/app.py:238
Methodcitations_matched
(*, response, ground_truth, **kwargs)
evals/evaluate.py:66
Methodclean_source
(s: str)
app/backend/approaches/approach.py:739
FunctionclearChat
()
app/frontend/src/pages/chat/Chat.tsx:355
Functionclient
( monkeypatch, mock_env, mock_openai_chatcompletion, mock_openai_embedding, mock_acs_searc
tests/conftest.py:640
Functionclient_with_expiring_token
( monkeypatch, mock_env, mock_openai_chatcompletion, mock_openai_embedding, mock_acs_searc
tests/conftest.py:723
Methodclose
(self)
tests/test_content_file.py:54
Functionclose_clients
()
app/backend/app.py:742
Functionclose_clients
()
app/backend/chat_history/cosmosdb.py:234
Methodclose_clients
(self)
app/backend/prepdocslib/blobmanager.py:148
Functionconfig
()
app/backend/app.py:276
Methodconstructor
(dbName: string, storeName: string)
app/frontend/src/components/HistoryProviders/IndexedDB.ts:13
Functioncontent_file
Serve content files from blob storage from within the app to keep the example self-contained. *** NOTE *** if you are using app services auth
app/backend/app.py:139
Methodcreate
(self, *args, **kwargs)
tests/test_mediadescriber.py:156
Methodcreate
(self, *args, **kwargs)
tests/test_prepdocs.py:25
Methodcreate
(self, *args, **kwargs)
tests/test_prepdocs.py:87
Methodcreate
(self, *args, **kwargs)
tests/test_prepdocs.py:134
Methodcreate
(self, *, model: str, input, **kwargs)
tests/test_prepdocs.py:199
Methodcreate_analyzer
(self)
tests/test_prepdocslib_filestrategy.py:119
Methodcreate_embeddings
(self, texts: list[str])
tests/test_function_apps.py:490
Functioncreate_rate_limit_client
(*args, **kwargs)
tests/test_prepdocs.py:93
Methoddefault
(self, o)
app/backend/app.py:185
MethoddeleteItem
(id: string, idToken?: string)
app/frontend/src/components/HistoryProviders/CosmosDB.ts:47
MethoddeleteItem
(id: string)
app/frontend/src/components/HistoryProviders/None.ts:17
MethoddeleteItem
(id: string)
app/frontend/src/components/HistoryProviders/IndexedDB.ts:99
Functiondelete_chat_history_session
(auth_claims: dict[str, Any], session_id: str)
app/backend/chat_history/cosmosdb.py:174
Functiondelete_uploaded
(auth_claims: dict[str, Any])
app/backend/app.py:372
Methoddownload_blob
Downloads a blob from Azure Storage. If user_oid is provided, it checks if the blob belongs to the user. Args: b
app/backend/prepdocslib/blobmanager.py:103
Methoddownload_blob
Downloads a blob from Azure Data Lake Storage. Args: blob_path: The path to the blob in the format {user_oid}/{document_
app/backend/prepdocslib/blobmanager.py:258
Methoddownload_blob
(self)
tests/test_content_file.py:89
Methoddownload_blob
(self, blob_path: str)
tests/test_function_apps.py:87
Methoddownload_file
(self)
tests/test_content_file.py:117
Functionembeddings_client
()
tests/test_embeddings.py:9
Methodevaluator_fn
(cls, **kwargs)
evals/evaluate.py:43
Methodevaluator_fn
(cls, **kwargs)
evals/evaluate.py:65
Functionexplode
(*_args, **_kwargs)
tests/test_chatapproach.py:109
FunctionextractCitationDetails
(answer: ChatAppResponse, isStreaming = false)
app/frontend/src/components/Answer/AnswerParser.tsx:216
Functionextract_document
Azure Search Custom Skill: Extract document content Input format (single record): { "values": [ { "r
app/functions/document_extractor/function_app.py:112
Functionfailing_process
(data: dict[str, Any])
tests/test_function_apps.py:232
Functionfake_download_blob
(blob_path: str, user_oid=None, container=None)
tests/test_chatapproach.py:384
Functionfake_download_blob
(_path, user_oid=None, container=None)
tests/test_app.py:168
Functionfake_get_application
(graph_client, client_id)
tests/test_auth_init.py:198
Functionfake_get_bearer_token_provider
(credential: Any, scope: str)
tests/test_function_apps.py:431
Functionfake_get_media_describer
(self)
tests/test_pdfparser.py:526
Functionfake_get_sources_content
(*args, **kwargs)
tests/test_chatapproach.py:662
Functionfake_process_page_image
(*, image, document_filename: str, **kwargs: Any)
tests/test_function_apps.py:331
Functionfake_response
(http_code)
tests/test_app.py:15
Functionfake_rewrite_query
(*args, **kwargs)
tests/test_chatapproach.py:641
Functionfake_rewrite_query
(**_kwargs)
tests/test_agentic_retrieval.py:152
Functionfake_run_until_final_call
(messages, overrides, auth_claims, should_stream)
tests/test_chatapproach.py:592
Functionfake_search
(*args, **kwargs)
tests/test_chatapproach.py:659
Functionfake_send_async
(request_info, return_type, error_mapping=None)
tests/test_auth_init.py:65
Functionfake_send_from_directory
(directory, requested_path)
tests/test_app.py:101
Functionfake_service_principals_with_app_id
(app_id)
tests/test_auth_init.py:58
Functionfake_setup_blob_manager
(**kwargs: Any)
tests/test_function_apps.py:408
Functionfake_setup_embeddings_service
(openai_host, openai_client, **kwargs)
tests/test_function_apps.py:933
Functionfake_setup_figure_processor
(**kwargs: Any)
tests/test_function_apps.py:412
Functionfake_setup_openai_client
( *, openai_host: Any, azure_credential: Any, azure_openai_service: str | None
tests/test_function_apps.py:416
Functionfake_update_env
(name, val)
tests/test_auth_init.py:190
Functionfavicon
()
app/backend/app.py:128
Methodfits
(candidate: str)
app/backend/prepdocslib/textsplitter.py:495
Functionfree_port
Returns a free port for the test server to bind.
tests/e2e.py:36
Methodget
(self)
tests/test_auth_init.py:109
MethodgetItem
(id: string, idToken?: string)
app/frontend/src/components/HistoryProviders/CosmosDB.ts:42
MethodgetItem
(id: string)
app/frontend/src/components/HistoryProviders/None.ts:14
MethodgetItem
(id: string)
app/frontend/src/components/HistoryProviders/IndexedDB.ts:92
MethodgetNextItems
(count: number, idToken?: string)
app/frontend/src/components/HistoryProviders/CosmosDB.ts:15
MethodgetNextItems
(count: number)
app/frontend/src/components/HistoryProviders/None.ts:8
MethodgetNextItems
(count: number)
app/frontend/src/components/HistoryProviders/IndexedDB.ts:40
MethodgetProviderName
()
app/frontend/src/components/HistoryProviders/IProvider.ts:13
Methodget_access_control
(self, *args, **kwargs)
tests/test_upload.py:38
Methodget_access_control
(self)
tests/test_content_file.py:105
Methodget_access_control
(self, upn: bool = False)
tests/test_function_apps.py:156
Methodget_aggregate_stats
(cls, df)
evals/evaluate.py:53
Methodget_aggregate_stats
(cls, df)
evals/evaluate.py:81
Functionget_chat_history_session
(auth_claims: dict[str, Any], session_id: str)
app/backend/chat_history/cosmosdb.py:134
Functionget_chat_history_sessions
(auth_claims: dict[str, Any])
app/backend/chat_history/cosmosdb.py:81
Methodget_count
(self)
tests/test_upload.py:216
Methodget_count
(self)
tests/test_searchmanager.py:733
← previousnext →501–600 of 1,218, ranked by callers