Skip to main content

save_documents

Function save_documents 

Source
async fn save_documents(
    conn: &mut PgConnection,
    test_chatbot: bool,
    documents_with_citation_numbers: Vec<(CourseMaterialDocument, i32)>,
    conversation_message_id: Uuid,
    conversation_id: Uuid,
) -> Result<Vec<ChatbotConversationMessageCitation>>
Expand description

Save a course material document into the database as a citation