-
Notifications
You must be signed in to change notification settings - Fork 24
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 logging of queries and response to Sqlite #27
Comments
hello nathan i have a required knowledge for this one |
Awesome! Lmk if you have any questions 🤓🤓 |
do i need to be assigned on this or i can start working on this |
Just assigned ya, feel free to start whenever 🤓 @aditya0yadav |
i have one doubt |
You can use gemini with shell sage, you just need to use it via the openai api endpoint: https://ai.google.dev/gemini-api/docs/openai |
Though, tbh I have found gemini models to be quite bad when used in shell sage. Not sure if it is a prompting issue or training issue, but the outputs it gives are usually useless. The only model's I have been happy with are claude and deepseek |
If it helps, SimonW's LLM app does a nice job of logging LLM interactions and includes other useful info - see https://github.com/simonw/llm/blob/main/llm/models.py |
thanks for the reference |
I have a query: Do we need to save the data when --log is specifically used? or all the data |
It should save it whenever --log is used and there should be a config option where you can leave it turned on and the location it will be saved to @aditya0yadav |
for saving response and other in the database |
hello please help me solve this doubt of mine |
sorry doubt is solved |
I would like a flag
--log
that when provided will save the user's query and AI's response to a local sqlite database. The database should have 1 table and should have four columns:timestamp
,query
,response
, andmodel
.Timestamp will be the time the query was sent off and the model will be the model used to generate the response. We might want to add an additional column for the mode that shell sage was in such as
sassy
orcommand
.The database should be saved to the user's home directory such as at
~/.shell_sage/log_db/
.The text was updated successfully, but these errors were encountered: