Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: request and response model created by LangchainRouter breaks for complex chain types #71

Closed
1 task done
ajndkr opened this issue May 29, 2023 · 0 comments · Fixed by #81
Closed
1 task done
Assignees
Labels
bug Something isn't working langchain

Comments

@ajndkr
Copy link
Owner

ajndkr commented May 29, 2023

Scenario

User creates an application using RetrievalQAWithSourcesChain with streaming_mode=0

Actual result

API call fails due to:

pydantic.error_wrappers.ValidationError: 1 validation error for QbutpLangchainResponse
response -> source_documents
  str type expected (type=type_error.str)

Expected result

API call returns chain output

Acceptance criteria

  • fix util functions which create pydantic models for API request and response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working langchain
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant