
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
This is a simple Tree based database to store chats logs for a large language model. to save ollama or any other llm app chat history
chatlogger is a simple Tree based database to store chats logs for a large language model. to save ollama or any other llm app chat history
Install Using
pip install chatlogger-db
DEMO
from chatlogger-db import DataBase, Message, Chat, RESPONSE, PROMPT
if __name__ == '__main__':
db = DataBase()
# db.load(r"dataset.bin")
# db.save(r"main.bin")
# print(db)
# chat = db[2]
idx = db.new_chat()
chat = db[idx]
print(chat)
chat.new_message("Hello", "World!")
chat.regenerate_last("hey")
chat.edit_last("ss", "you!")
chat.edit_last("i", "you!")
chat.new_message("Hello", "World!")
chat.new_message("Hello", "World!")
chat.edit_last("i", "you!")
chat.prev_prompt_last()
chat.regenerate_last("hey2")
chat.next_prompt_last()
chat.prev_prompt_last()
chat.edit(3, "asd", "res")
chat.regenerate(2, "res2")
chat.modify(2, "ajasd")
chat.regenerate(2, "res2")
chat.prev(2)
chat.prev(2)
chat.prev(1)
chat.set_next_idx(0, 2)
print(repr(chat))
print(chat.curr_neighbours(1))
print(chat.__len__())
print(chat[0])
print(chat[1])
FAQs
This is a simple Tree based database to store chats logs for a large language model. to save ollama or any other llm app chat history
We found that chatlogger-db demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.