Crates.io | loreweaver |
lib.rs | loreweaver |
version | 0.2.1 |
source | src |
created_at | 2023-10-19 03:41:41.356792 |
updated_at | 2023-10-27 18:07:46.855011 |
description | Managing long conversations with ChatGPT |
homepage | |
repository | https://github.com/snowmead/loreweaver |
max_upload_size | |
id | 1007447 |
size | 42,981 |
Loreweaver is a flexible out-of-the-box library designed to interact with ChatGPT, with an emphasis on managing long conversations exceeding the maximum token limit of a model, ensuring a continuous and coherent user experience.
Check out the official Loreweaver Discord Bot purpously built based on this library!
This library is a rust implementation of OpenAI's Tactic for handling long conversations with ChatGPT that span beyond a GPT model's maximum context token limit.
Once a certain threshold of context tokens is reached, the library will summarize the entire conversation and begin a new conversation with the summarized context appended to the system instructions.
The library is designed to be as flexible as possible, allowing you to easily integrate it into your own projects.
Text-Based RPGs: Crafting coherent and persistently evolving narratives and interactions in text-based role-playing games.
Customer Support Chatbots: Developing chatbots that remember past user interactions and provide personalized support.
Educational Virtual Tutors: Implementing AI tutors that remember student interactions and tailor assistance accordingly.
Healthcare Virtual Assistants: Creating healthcare assistants that provide follow-up advice and reminders based on past user health queries.
AI-Driven MMO NPC Interactions: Enhancing MMO experiences by enabling NPCs to have contextually relevant interactions with players based on past encounters.
Follow the crate level documentation for a detailed explanation of how to use the library.
If you are passioniate about this project, please feel free to fork the repository and submit pull requests for enhancements, bug fixes, or additional features.
Loreweaver is distributed under the MIT License, ensuring maximum freedom for using and sharing it in your projects.