-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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(prompt): added instructions in standalone question & a bit more things #826
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
LOGAF Level 2 - /home/runner/work/quivr/quivr/backend/core/llm/qa_base.py 1. Exposed API Key: The 2. Code Readability: The code could be more readable if you group related class attributes together and separate them with a blank line. 3. Code Functionality: The 4. Code Performance: The LOGAF Level 2 - /home/runner/work/quivr/quivr/backend/core/llm/base.py 1. Exposed API Key: The 2. Code Readability: The code could be more readable if you group related class attributes together and separate them with a blank line. 3. Code Functionality: The method 4. Code Performance: The method LOGAF Level 2 - /home/runner/work/quivr/quivr/backend/core/models/databases/supabase/brains.py 1. Code Duplication: There is a lot of code duplication in the methods def _get_brain(self, brain_id, user_id=None):
query = (
self.db.from_("brains")
.select("id:brain_id, name, *")
.filter("brain_id", "eq", brain_id)
)
if user_id:
query = query.filter("user_id", "eq", user_id)
response = query.execute()
return response Then you can use this helper method in 2. Error Handling: There is no error handling in the code. It's important to handle potential errors that might occur during database operations. For example, you can use try-except blocks to catch and handle exceptions. 3. Code Readability: The code could be more readable with some comments explaining what each method does. Although some methods have docstrings, not all of them do. Adding docstrings to all methods would improve the code's readability and maintainability. 🔑📚🚀 Powered by Code Review GPT |
…things (#826) * fix(backend): temperature signature * feat(qa): fixed temperature question generator and added doc * feat(prompt): added instructions to standalone question * fix(brains-rights): fixed function missing
No description provided.