-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(wren-ai-service): sql-answer-pipeline #631
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
Conversation
9c4c077 to
8907a65
Compare
ffad664 to
57dec72
Compare
| ) as response: | ||
| res = await response.json() | ||
| if res.get("data"): | ||
| return True, None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about keep the error and return one more value for data? I think using the same position to represent two meaning might be not a good choice.
e.g.
return status, data, error| pipelines: dict[str, BasicPipeline], | ||
| ): | ||
| self._pipelines = pipelines | ||
| self._sql_answer_results = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be instead by the TTL cache. you could refer to the function in ask service.
57dec72 to
7e41852
Compare
paopa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Uh oh!
There was an error while loading. Please reload this page.