Functionprocess_document Process a document at the given *document_path*. The document can be multimedia (image, audio, video), a presentation (PPTX), a spreadsheet,
server/documents_tool.py:257
Functiontopk_select(model, tokenizer, device, natural_prompt, icl_pool, k=5, max_len=256)
memory/train_memory_retriever.py:178