-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add a history page (static) #967
base: master
Are you sure you want to change the base?
Conversation
Love it. I'm voting for Postgres as the default data store, since it's also supported by langchain vector stores - see PGVector But, great proof of concept :) |
@ElishaKay Yes, integrating with Postgres is certainly viable if that’s the plan. I’m using SQLite for now just for simplicity—it’s just a single file for the database, after all |
Any update on this PR? |
backend/server/database.py
Outdated
from datetime import datetime | ||
|
||
def init_db(): | ||
conn = sqlite3.connect('research_history.db') |
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.
Can you move the db name as a const at the top and reuse the same name in other functions?
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.
sure
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.
Looks good for starters.
Maintainers wdyt?
The idea is simply to add a static history page and store the generated reports in a local SQLite database. Here are some screenshots for reference:
This is more of a proposal, but I think it might be more straightforward to submit a PR. Looking forward to the feedback!