Під час спроби оцінити свій користувацький Langchain за допомогою TruEra, виникли наступні помилки:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
Unsure what the main input string is for the call to invoke with args [{'question': 'Taylor Swift là ai?'}]. Run of run in <Thread(TP.submit with debug timeout_0, started 123145688014848)> failed with: Could not locate app.first.steps.context.get_relevant_documents.rets in app/record. exception calling callback for <Future at 0x13a0ac9d0 state=finished raised RuntimeError> Traceback (most recent call last): File "/Users/lanmac/.pyenv/versions/3.11.6/envs/langchain/lib/python3.11/site-packages/trulens_eval/feedback/feedback.py", line 705, in extract_selection arg_vals[k] = list(q_within_o.get(o)) ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/lanmac/.pyenv/versions/3.11.6/envs/langchain/lib/python3.11/site-packages/trulens_eval/utils/serial.py", line 939, in get for start_selection in start_items: File "/Users/lanmac/.pyenv/versions/3.11.6/envs/langchain/lib/python3.11/site-packages/trulens_eval/utils/serial.py", line 940, in get for last_selection in last_step.get(start_selection): File "/Users/lanmac/.pyenv/versions/3.11.6/envs/langchain/lib/python3.11/site-packages/trulens_eval/utils/serial.py", line 398, in get raise KeyError( KeyError: 'Key not in dictionary: first' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/lanmac/.pyenv/versions/3.11.6/lib/python3.11/concurrent/futures/_base.py", line 340, in _invoke_callbacks callback(self) ... ^^^^^ File "/Users/lanmac/.pyenv/versions/3.11.6/envs/langchain/lib/python3.11/site-packages/trulens_eval/feedback/feedback.py", line 707, in extract_selection raise RuntimeError( RuntimeError: Could not locate app.first.steps.context.get_relevant_documents.rets in app/record. |
Моя спроба записати оцінки призвела до цих помилок:
Чи може хтось сказати мені, що не так з моїми кодами?