Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Azure-Samples/azure-search-openai-demo
/ functions
Functions
1,218 in github.com/Azure-Samples/azure-search-openai-demo
⨍
Functions
1,218
◇
Types & classes
192
↳
Endpoints
21
↓ 1 callers
Method
__init__
(self)
tests/test_pdfparser.py:453
↓ 1 callers
Method
_build_skillset
(self)
app/backend/prepdocslib/cloudingestionstrategy.py:117
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_list_paths
(self, path_pattern: str)
app/backend/prepdocslib/listfilestrategy.py:95
↓ 1 callers
Method
_should_cross_page_overlap
(self, prev: Chunk, nxt: Chunk)
app/backend/prepdocslib/textsplitter.py:292
↓ 1 callers
Method
add_acl
(self, search_client: SearchClient)
scripts/manageacl.py:130
↓ 1 callers
Method
add_file
(self, file: File, user_oid: str)
app/backend/prepdocslib/filestrategy.py:183
↓ 1 callers
Function
appServicesLogout
()
app/frontend/src/authConfig.ts:168
↓ 1 callers
Method
append_figure_and_flush
Append a figure (allowed to overflow) to current accumulation and flush in one step.
app/backend/prepdocslib/textsplitter.py:183
↓ 1 callers
Function
assert_image_equal
(image1, image2)
tests/test_pdfparser.py:54
↓ 1 callers
Function
buildActivityStepMap
(answer: ChatAppResponse)
app/frontend/src/components/Answer/AnswerParser.tsx:53
↓ 1 callers
Function
build_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 callers
Function
build_sources
()
tests/test_chatapproach.py:334
↓ 1 callers
Method
build_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 callers
Method
calculate_token_length
(self, text: str)
app/backend/prepdocslib/embeddings.py:70
↓ 1 callers
Function
callback
( messages: list[dict], stream: bool = False, session_state: Any = None, context: Optional[dic
evals/safety_evaluation.py:49
↓ 1 callers
Method
can_fit
(self, text: str, token_count: int)
app/backend/prepdocslib/textsplitter.py:153
↓ 1 callers
Function
canonicalize_config
Produce a comparable string from a run config, ignoring results_dir which varies per run.
evals/eval_compare.py:81
↓ 1 callers
Function
chatApi
(request: ChatAppRequest, shouldStream: boolean, idToken: string | undefined, signal: AbortSignal)
app/frontend/src/api/api.ts:25
↓ 1 callers
Function
check_search_service_connectivity
Check if the search service is accessible by hitting the /ping endpoint.
app/backend/prepdocs.py:37
↓ 1 callers
Function
cleanup_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 callers
Function
cleanup_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 callers
Method
compute_text_embedding
(self, q: str)
app/backend/approaches/approach.py:874
↓ 1 callers
Function
configApi
()
app/frontend/src/api/api.ts:17
↓ 1 callers
Function
configure_global_settings
()
app/functions/document_extractor/function_app.py:48
↓ 1 callers
Function
configure_global_settings
()
app/functions/text_processor/function_app.py:48
↓ 1 callers
Function
configure_global_settings
()
app/functions/figure_processor/function_app.py:49
↓ 1 callers
Method
connect
Connect to CosmosDB and initialize containers.
scripts/cosmosdb_migration.py:60
↓ 1 callers
Function
copy_tree
(src: Path, dest: Path)
scripts/copy_prepdocslib.py:15
↓ 1 callers
Function
createClaims
(o: Record<string, unknown> | undefined)
app/frontend/src/components/TokenClaimsDisplay/TokenClaimsDisplay.tsx:42
↓ 1 callers
Function
create_app
()
app/backend/app.py:750
↓ 1 callers
Method
create_embedding_batch
(self, texts: list[str], dimensions_args: ExtraArgs)
app/backend/prepdocslib/embeddings.py:132
↓ 1 callers
Method
create_embedding_for_text
(self, q: str)
app/backend/prepdocslib/embeddings.py:214
↓ 1 callers
Method
create_embedding_single
(self, text: str, dimensions_args: ExtraArgs)
app/backend/prepdocslib/embeddings.py:155
↓ 1 callers
Method
create_embedding_skill
Create a skillset for the indexer to chunk documents and generate embeddings
app/backend/prepdocslib/integratedvectorizerstrategy.py:70
↓ 1 callers
Method
create_knowledgebase
Creates one or more Knowledge Bases in the search index based on desired knowledge sources.
app/backend/prepdocslib/searchmanager.py:484
↓ 1 callers
Method
create_service_client
(self)
scripts/adlsgen2setup.py:113
↓ 1 callers
Function
deleteChatHistoryApi
(id: string, idToken: string)
app/frontend/src/api/api.ts:165
↓ 1 callers
Method
deleteItem
(id: string, idToken?: string)
app/frontend/src/components/HistoryProviders/IProvider.ts:18
↓ 1 callers
Function
deleteUploadedFileApi
(filename: string, idToken: string)
app/frontend/src/api/api.ts:84
↓ 1 callers
Method
describe_image
(self, image_bytes)
app/backend/prepdocslib/mediadescriber.py:25
↓ 1 callers
Method
download_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 callers
Method
download_file
(self)
tests/mocks.py:673
↓ 1 callers
Method
enable_acls
(self, endpoint: str)
scripts/manageacl.py:160
↓ 1 callers
Method
enable_global_access
(self, search_client: SearchClient)
scripts/manageacl.py:228
↓ 1 callers
Function
fake_completion
()
tests/test_chatapproach.py:564
↓ 1 callers
Function
fetchAuthSetup
()
app/frontend/src/authConfig.ts:56
↓ 1 callers
Function
fetchCitation
()
app/frontend/src/components/AnalysisPanel/AnalysisPanel.tsx:40
↓ 1 callers
Function
fetchClaims
()
app/frontend/src/components/TokenClaimsDisplay/TokenClaimsDisplay.tsx:27
↓ 1 callers
Function
fetchMarkdown
()
app/frontend/src/components/MarkdownViewer/MarkdownViewer.tsx:30
↓ 1 callers
Function
fetchUsername
()
app/frontend/src/components/LoginButton/LoginButton.tsx:18
↓ 1 callers
Method
force_append
(self, text: str)
app/backend/prepdocslib/textsplitter.py:168
↓ 1 callers
Function
format_as_ndjson
(r: AsyncGenerator[dict, None])
app/backend/app.py:198
↓ 1 callers
Function
gen
()
tests/test_app.py:868
↓ 1 callers
Function
generate_ground_truth_ragas
(num_questions=200, num_search_documents=None, kg_file=None)
evals/generate_ground_truth.py:55
↓ 1 callers
Function
getChatHistoryApi
(id: string, idToken: string)
app/frontend/src/api/api.ts:150
↓ 1 callers
Function
getChatHistoryListApi
(count: number, continuationToken: string | undefined, idToken: string)
app/frontend/src/api/api.ts:130
↓ 1 callers
Function
getConfig
()
app/frontend/src/pages/chat/Chat.tsx:114
↓ 1 callers
Method
getItem
(id: string, idToken?: string)
app/frontend/src/components/HistoryProviders/IProvider.ts:17
↓ 1 callers
Method
getNextItems
(count: number, idToken?: string)
app/frontend/src/components/HistoryProviders/IProvider.ts:15
↓ 1 callers
Function
getResultsForStep
(step: QueryPlanStep)
app/frontend/src/components/AnalysisPanel/AgentPlan.tsx:119
↓ 1 callers
Function
getSpeechApi
(text: string)
app/frontend/src/api/api.ts:39
↓ 1 callers
Function
getStepQuery
(step: QueryPlanStep)
app/frontend/src/components/AnalysisPanel/AgentPlan.tsx:111
↓ 1 callers
Function
getTokenClaims
(client: IPublicClientApplication)
app/frontend/src/authConfig.ts:240
↓ 1 callers
Function
getUtterance
(text: string, lngCode: string = "en-US")
app/frontend/src/components/Answer/SpeechOutputBrowser.tsx:21
↓ 1 callers
Function
get_azure_credential
()
evals/generate_ground_truth.py:25
↓ 1 callers
Function
get_azure_credential
()
evals/safety_evaluation.py:38
↓ 1 callers
Function
get_azure_credential
()
evals/evaluate.py:98
↓ 1 callers
Method
get_directory_properties
(self)
tests/mocks.py:655
↓ 1 callers
Function
get_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 callers
Method
get_image_citation
(self, sourcepage: Optional[str], image_url: str)
app/backend/approaches/approach.py:828
↓ 1 callers
Method
get_lowest_reasoning_effort
Return the lowest valid reasoning_effort for the given model.
app/backend/approaches/approach.py:927
↓ 1 callers
Function
get_openai_config
()
evals/evaluate.py:89
↓ 1 callers
Function
get_search_documents
(azure_credential, num_search_documents=None)
evals/generate_ground_truth.py:36
↓ 1 callers
Method
get_system_prompt_variables
(self, override_prompt: Optional[str])
app/backend/approaches/approach.py:904
↓ 1 callers
Function
groupHistory
(history: HistoryData[])
app/frontend/src/components/HistoryPanel/HistoryPanel.tsx:115
↓ 1 callers
Function
handleAsyncRequest
(question: string, answers: [string, ChatAppResponse][], responseBody: ReadableStream<any>, signal: AbortSigna
app/frontend/src/pages/chat/Chat.tsx:160
↓ 1 callers
Function
handleClose
()
app/frontend/src/components/HistoryPanel/HistoryPanel.tsx:72
↓ 1 callers
Function
handleRemoveFile
(filename: string)
app/frontend/src/components/UploadFile/UploadFile.tsx:58
↓ 1 callers
Method
handle_post
(self, grant)
tests/test_auth_init.py:131
↓ 1 callers
Method
has_content
(self)
app/backend/prepdocslib/textsplitter.py:180
↓ 1 callers
Function
listUploadedFilesApi
(idToken: string)
app/frontend/src/api/api.ts:100
↓ 1 callers
Method
list_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 callers
Function
load_run
(path: Path)
evals/eval_compare.py:88
↓ 1 callers
Function
main
Main function to setup cloud ingestion.
app/backend/setup_cloud_ingestion.py:148
↓ 1 callers
Function
main
(strategy: Strategy, setup_index: bool = True)
app/backend/prepdocs.py:102
↓ 1 callers
Function
main
(args: Any)
scripts/adlsgen2setup.py:157
↓ 1 callers
Function
main
()
scripts/auth_init.py:279
↓ 1 callers
Function
main
()
scripts/verify_search_index_acls.py:16
↓ 1 callers
Function
main
()
scripts/copy_prepdocslib.py:21
↓ 1 callers
Function
main
()
scripts/auth_update.py:15
↓ 1 callers
Function
main
(args: Any)
scripts/manageacl.py:260
↓ 1 callers
Function
main
()
evals/eval_compare.py:346
↓ 1 callers
Function
messages_contains_text
(messages, text)
tests/test_app.py:43
↓ 1 callers
Function
mock_retrieval_response_with_sharepoint
Mock response with SharePoint knowledge source
tests/mocks.py:499
↓ 1 callers
Function
mock_retrieval_response_with_sorting
Mock response with multiple references for testing sorting
tests/mocks.py:546
↓ 1 callers
Function
mock_retrieval_response_with_top_limit
Mock response with many references to test top limit during document building
tests/mocks.py:584
↓ 1 callers
Function
mock_retrieval_response_with_web
()
tests/mocks.py:452
↓ 1 callers
Function
mock_search
(*args, **kwargs)
tests/test_chatapproach.py:40
← previous
next →
201–300 of 1,218, ranked by callers