-
Notifications
You must be signed in to change notification settings - Fork 41
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
feat: Multilingual Support and Code Quality Enhancements for v1 Release #48
Conversation
src/wandbot/apps/discord/config.py
Outdated
|
||
EN_INTRO_MESSAGE = ( | ||
"🤖 Hi {mention}: \n\n" | ||
f"Please note that **wandbot is currently in alpha testing** and will experience frequent updates.\n\n" |
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.
Get rid of the alpha testing bit
src/wandbot/chat/chat.py
Outdated
LanguageFilterPostprocessor(languages=[language, "python"]), | ||
CohereRerank(top_n=5, model="rerank-multilingual-v2.0") | ||
if language == "ja" | ||
else CohereRerank(top_n=5, model="rerank-english-v2.0"), |
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.
reverse the condition and make language en
src/wandbot/evaluation/eval.py
Outdated
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.
delete this.
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.
add a readme and link to ayush's report.
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.
@ayulockin Please take a look here at the README.md
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 🚢
Summary
This PR introduces key enhancements and fixes to wandbot, focusing on multilingual capabilities and code quality improvements.
Highlights
Multilingual Features: Added support for English and Japanese in chat bots; included language in database schema and routing.
Code Quality: Fixed issues related to timestamps, linting, and type annotations. Converted Slack app to async and improved docstrings and type annotations.
Configuration Updates: Resolved naming conflicts in configurations and updated environmental requirements.
Documentation: Updated README with new tokens and run commands.
Impact
These changes significantly enhance the bot's language handling capabilities and improve overall code maintainability and performance.