Skip to content
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

PDF upload, require a table change. #174

Merged
merged 3 commits into from
Oct 20, 2023
Merged

Conversation

lvalics
Copy link
Collaborator

@lvalics lvalics commented Oct 20, 2023

PdfDataSource model does not have a ForeignKey relationship to the Chatbot model. This is why the Chatbot object does not have the pdf_data_sources attribute. To fix this, we need to use a line in pdf_data_sources.py that establishes the ForeignKey relationship and provide the correct related_name which is used to create the reverse relation from Chatbot to PdfDataSource.

…ce model does not have a ForeignKey relationship to the Chatbot model. This is why the Chatbot object does not have the pdf_data_sources attribute. To fix this, we need to use a line in pdf_data_sources.py that establishes the ForeignKey relationship and provide the correct related_name which is used to create the reverse relation from Chatbot

to PdfDataSource.
 PdfDataSource model does not have a ForeignKey relationship to the
Chatbot model. This is why the Chatbot object does not have the
pdf_data_sources attribute. To fix this, we need to use a line
in pdf_data_sources.py that establishes the ForeignKey relationship
and provide the correct related_name which is used to create the
reverse relation from Chatbot to PdfDataSource.
@codebanesr codebanesr merged commit 3e9f5c4 into openchatai:main Oct 20, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants