-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Minor doc set fix #4480
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
Minor doc set fix #4480
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
PR Summary
This PR introduces a new "document_sets" field to both PersonaSnapshot and FullPersonaSnapshot, clarifies association handling in upsert_persona, and refines the knowledge_source initialization in AssistantEditor.
- Updated
/backend/onyx/server/features/persona/models.py
to build document_sets via DocumentSet.from_model with a default empty list. - Added a clarifying comment in
/backend/onyx/db/persona.py
about preserving existing document_set associations. - Modified
/web/src/app/admin/assistants/AssistantEditor.tsx
to set knowledge_source based on existing persona data.
3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
* update * update * update * k
* update * update * update * k
* update * update * update * k
Description
Fixes https://linear.app/danswer/issue/DAN-1780/document-sets-issue
How Has This Been Tested?
[Describe the tests you ran to verify your changes]
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.