10 Commits

Author SHA1 Message Date
Ozan Armağan
d126f91aa1
Refactor get_history_collection by overloading (#2090)
Some checks failed
tests / test (push) Has been cancelled
* Refactor `get_history_collection` by overloading

* Return error when model doesn't have history collection

* Refactoring

* Remove unnecessary function

* Refactor add_conversation

* Make conversation model id necessary for deleting conversation
2024-12-03 19:06:52 +05:30
Ozan Armağan
83f1cad4b9
Fix conversation not found error (#2087)
Some checks are pending
tests / test (push) Waiting to run
* Fix `conversation not found` error

* Add test and refactor

* Move getting last n messages logic to a functing
2024-12-03 15:36:25 +05:30
Ozan Armağan
21500131fd
Fix conversation expire and migration (#1895)
* Fix conversation expire and migration

* Remove unnecessary log

* Fix unused variable

* Remove unimplemented function declerations
2024-08-14 20:49:12 +05:30
Ozan Armağan
0395857601
Fix conversation and conversation model (#1869)
* Fix conversation models and conversations

* Remove unnecessary op in the test

* Fix persistence of conversations

* Fix conversaton swap

* Move TTL and conversation history logic to conversation models

* Fix conversation tests

* Fix tests
2024-08-13 14:43:16 +05:30
Ozan Armağan
7b1ed4ee79
Fix conversation model initialization (#1806)
* Fix conversation model initialization

* Rename `conversation_collection` to `history_collection`
2024-06-27 06:23:05 +05:30
Ozan Armağan
1b4e08b29d
Use collections to store conversations (#1723)
* Use collections to store conversations

* Use conversation model to select conversation history collections

* Fix multi search add conversation call

* Add support for migrating conversation models

* use same suffix for all default conversation collections

* delete `delete_models_With_conversation_collection`
2024-05-14 15:32:35 -04:00
Ozan Armağan
6e24c06e35
Add support for vLLM RAG (#1563)
* Add support for vLLM RAG

* Add `max_bytes` propety for conversation models

* Fix truncate conversation test

* Refactoring
2024-02-26 11:18:14 +05:30
ozanarmagan
f742417443 Make ``ConversationManager`` singleton & update conversation garbage collector thread 2023-12-01 23:44:36 +03:00
ozanarmagan
90f38987dd Use UUID for conversation ids 2023-11-03 00:47:40 +03:00
ozanarmagan
230308958b Add TTL for conversations 2023-09-16 18:39:06 +03:00