Collection management part 2 (#522)

* Plumb collection manager into librarian

* Test end-to-end
This commit is contained in:
cybermaggedon 2025-09-19 16:08:47 +01:00 committed by GitHub
parent d378db9370
commit fcd15d1833
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 617 additions and 434 deletions

View file

@ -67,8 +67,7 @@ class Processor(DocumentEmbeddingsQueryService):
dim = len(vec)
collection = (
"d_" + msg.user + "_" + msg.collection + "_" +
str(dim)
"d_" + msg.user + "_" + msg.collection
)
self.ensure_collection_exists(collection, dim)

View file

@ -74,8 +74,7 @@ class Processor(GraphEmbeddingsQueryService):
dim = len(vec)
collection = (
"t_" + msg.user + "_" + msg.collection + "_" +
str(dim)
"t_" + msg.user + "_" + msg.collection
)
self.ensure_collection_exists(collection, dim)