Skip to main content

Module citations

Module citations 

Source

Structsยง

CourseMaterialDocument
DocumentProperties

Functionsยง

chatbot_cited_documents_to_citations
Get documents cited by the chatbot from the search index and save them as chatbot_conversation_message_citations into the database
get_course_material_document ๐Ÿ”’
Get a document from the search index with a LLM-provided get url
parse_document_filepath
Parse the filepath of a document from the Azure search index and return the page_id of the document. The page id is the same as the id of the page in our DB.
process_course_material_document_response ๐Ÿ”’
save_documents ๐Ÿ”’
Save a course material document into the database as a citation
save_documents_mock ๐Ÿ”’