Skip to main content

store_search_output_with_citations

Function store_search_output_with_citations 

Source
async fn store_search_output_with_citations(
    conn: &mut PgConnection,
    message: ChatbotConversationMessage,
    document_urls: Vec<Url>,
    response_id: &str,
    conversation_id: Uuid,
    app_config: &ApplicationConfiguration,
) -> ChatbotResult<ChatbotConversationMessage>
Expand description

Inserts an Azure AI Search output item, then best-effort resolves its cited documents.

A citation lookup failure is logged and swallowed rather than propagated: the search-output item is already stored correctly by the time citations run, and a citation is an annotation on it, not something worth ending the round over.