-
Notifications
You must be signed in to change notification settings - Fork 728
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
Support SQLite for custom data layer #832
base: main
Are you sure you want to change the base?
Conversation
Hi @tjroamer |
With the current chainlit data layer, user-specific sqlite database might not be straightforward to implement. One solution I can think of is that you create views for different users, and select only rows that relevant to that user. This would require some post-processing steps once you have the database as a single file. |
@tjroamer |
Will these users use the same chatbot based on the same server? If this is the case, you cannot send custom database url for each user, since the database url is a server-side setting, and it is done only once when the server starts. |
okay let me figure another way for that. |
@tjroamer But I am not sure how I can put data in that tables for specific user. |
- hide the protocol sqlite+aiosqlite:/// under the hood - user can use relative or absolute file path as input
Overview
How to configure
Test
A simple sanity check is implemented in
cypress/e2e/data_layer_sqlite
, which is a simplified copy ofcypress/e2e/data_layer
.Limitation
no file blob support, so chat history will not show attachments