1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| ### Arguments of Summary class ### Args: **chunk_size (int, optional)**: chunk size of texts from documents. Defaults to 1000. **chunk_overlap (int, optional)**: chunk overlap of texts from documents. Defaults to 40. **model (str, optional)**: llm model to use. Defaults to "gpt-3.5-turbo". **verbose (bool, optional)**: show log texts or not. Defaults to False. **language (str, optional)**: the language of documents and prompt, use to make sure docs won't exceed max token size of llm input. **record_exp (str, optional)**: use aiido to save running params and metrics to the remote mlflow or not if record_exp not empty, and setrecord_exp as experiment name. default "". **system_prompt (str, optional)**: the system prompt that you assign special instruction to llm model, so will not be used in searching relevant documents. Defaults to "". **max_input_tokens(int, optional)**: max token length of llm input. Defaults to 3000. **temperature (float, optional)**: temperature of llm model from 0.0 to 1.0 . Defaults to 0.0. **auto_translate (bool, optional)**: translate summary into language or not. **max_output_tokens (int, optional)**: max output tokens of llm model. Defaults to 1024. **max_input_tokens (int, optional)**: max input tokens of llm model. Defaults to 3000. **env_file (str, optional)**: the path of env file. Defaults to "".
|