"Overriding torch_dtype=None with `torch_dtype=torch.float16` due to requirements of `bitsandbytes` to enable model loading in mixed int8. Either pass torch_dtype=torch.float16 or don't pass this argument at all to remove this warning.\n",
"/media/gpt4-pdf-chatbot-langchain/pyenv-langchain/lib/python3.10/site-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: /media/gpt4-pdf-chatbot-langchain/pyenv-langchain did not contain ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] as expected! Searching further paths...\n",
"The way you use the tools is by specifying a json blob.\n",
"Specifically, this json should have a `action` key (with the name of the tool to use) and a `action_desc` key (with the desc to the tool going here).\n",
"\n",
"The only values that should be in the \"action\" field are: {镜头1,镜头2,镜头3,镜头4,镜头5,镜头6}\n",
"\n",
"The $JSON_BLOB should only contain a SINGLE action, do NOT return a list of multiple actions. Here is an example of a valid $JSON_BLOB:\n",
"\n",
"```\n",
"{{{{\n",
" \"action\": $TOOL_NAME,\n",
" \"action_desc\": $DESC\n",
"}}}}\n",
"```\n",
"\n",
"ALWAYS use the following format:\n",
"\n",
"Question: the input question you must answer\n",
"Thought: you should always think about what to do\n",
"Action:\n",
"```\n",
"$JSON_BLOB\n",
"```\n",
"Observation: the result of the action\n",
"... (this Thought/Action/Observation can repeat N times)\n",
"Thought: I now know the final answer\n",
"Final Answer: the final answer to the original input question\n",
"\n",
"Begin! Reminder to always use the exact characters `Final Answer` when responding.\n",
"WARNING 2023-06-09 21:57:56,604-1d: Retrying langchain.llms.openai.completion_with_retry.<locals>._completion_with_retry in 4.0 seconds as it raised APIError: Invalid response object from API: '{\"object\":\"error\",\"message\":\"This model\\'s maximum context length is 2048 tokens. However, you requested 2110 tokens (1854 in the messages, 256 in the completion). Please reduce the length of the messages or completion.\",\"code\":40303}' (HTTP response code was 400).\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32;1m\u001b[1;3m\n",
"Human: What is 13293 times 14\n",
"\n",
"This was your previous work (but I haven't seen any of it! I only see what you return as final answer):\n",
"WARNING 2023-06-09 21:58:00,644-1d: Retrying langchain.llms.openai.completion_with_retry.<locals>._completion_with_retry in 4.0 seconds as it raised APIError: Invalid response object from API: '{\"object\":\"error\",\"message\":\"This model\\'s maximum context length is 2048 tokens. However, you requested 2110 tokens (1854 in the messages, 256 in the completion). Please reduce the length of the messages or completion.\",\"code\":40303}' (HTTP response code was 400).\n",
"WARNING 2023-06-09 21:58:04,681-1d: Retrying langchain.llms.openai.completion_with_retry.<locals>._completion_with_retry in 4.0 seconds as it raised APIError: Invalid response object from API: '{\"object\":\"error\",\"message\":\"This model\\'s maximum context length is 2048 tokens. However, you requested 2110 tokens (1854 in the messages, 256 in the completion). Please reduce the length of the messages or completion.\",\"code\":40303}' (HTTP response code was 400).\n"