-
-
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(backend): implement brain-prompt link #831
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
LOGAF Level 2 - /home/runner/work/quivr/quivr/backend/core/routes/upload_routes.py
Example: message = {
"message": f"User's brain will exceed maximum capacity with this upload. Current brain size: {current_brain_size}, file size: {file_size}",
"type": "error",
} LOGAF Level 3 - /home/runner/work/quivr/quivr/backend/core/models/brains.py
LOGAF Level 3 - /home/runner/work/quivr/quivr/backend/core/repository/brain/set_as_default_brain_for_user.py
Example: commons: Dict[str, Any] = common_dependencies()
📂🔒🔧 Powered by Code Review GPT |
a623c41
to
041ea0e
Compare
BEGIN | ||
IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'brains' AND column_name = 'prompt_id') THEN | ||
-- Add prompt_id column | ||
ALTER TABLE brains ADD COLUMN prompt_id UUID; |
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.
prompt_id can be null and shpild reference the table prompts' id column
scripts/tables.sql
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.
You would akso need to add the new column in the brains in tables.sql
041ea0e
to
3d720ae
Compare
* feat: add prompt_id field to brain * feat(Prompt controller): update prompt routes * feat: remove unused private prompts * refactor: add BrainEntity and repo and service * tests: partially type main Repository * feat: add PromptStatusEnum enum * feat: change delete prompt repository return type
Description