Skip to main content

chatbot_cited_documents_to_citations

Function chatbot_cited_documents_to_citations 

Source
pub async fn chatbot_cited_documents_to_citations(
    conn: &mut PgConnection,
    test_chatbot: bool,
    document_urls: Vec<Url>,
    api_key: &SecretString,
    conversation_message_id: Uuid,
    conversation_id: Uuid,
) -> Result<Vec<ChatbotConversationMessageCitation>>
Expand description

Get documents cited by the chatbot from the search index and save them as chatbot_conversation_message_citations into the database