You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First it is necessary to
export LANGCHAIN_TRACING_V2=true # you could argue the user should have done this in the .env file. but not made explicit in the doc. only export LANGCHAIN_API_KEY= was included
Then I tried running the code as is and consistently get errors like
Input should be an instance of QuestionType [type=is_instance_of, input_value='DOCUMENT_SEARCH', input_type=str]
I then tried to convert the string value of the enum v to QuestionType[v], and it worked.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Both in the doc and in the examples folder.
First it is necessary to
export LANGCHAIN_TRACING_V2=true # you could argue the user should have done this in the .env file. but not made explicit in the doc. only export LANGCHAIN_API_KEY= was included
Then I tried running the code as is and consistently get errors like
Input should be an instance of QuestionType [type=is_instance_of, input_value='DOCUMENT_SEARCH', input_type=str]
I then tried to convert the string value of the enum v to QuestionType[v], and it worked.
I can do a pr, if you like.
Beta Was this translation helpful? Give feedback.
All reactions