Replies: 16 comments
-
|
hey <@423095375742631936> you can't update them directly but yes Cognee can work for multiple users simultaneously. this gives each user their own private folder! then set Up your S3 storage- cognee automatically creates user-specific folders inside |
Beta Was this translation helpful? Give feedback.
-
|
let us know if this works |
Beta Was this translation helpful? Give feedback.
-
|
<@1373135538147692604> by multiple users i mean can we update the both directory on each request so it will be updated on every request or can we just create multiple instances ? |
Beta Was this translation helpful? Give feedback.
-
|
yes you can update the directories on each call using the config -
or you can try the single instance with isolation approach by setting btw what's your use case? |
Beta Was this translation helpful? Give feedback.
-
|
we are trying to isolate directory for organization_id and then project_id folders but as i can see we already use different dataset_name for different projects and my organization is asking it to update the above. now the case is if i done this i think it will be needs changed on each request like each cognee.add and each cognee.search functions which may conflict multiple requests done simultaneously. like if user a changes the env and user b also changed then whoever changed last is considered the directory and user a might be calling directory set by user b |
Beta Was this translation helpful? Give feedback.
-
|
and we want to actually isolate on based on org id and project id we provide not the user id |
Beta Was this translation helpful? Give feedback.
-
|
issue is not that it can be done or not but want to understand does it will create any new issue for live application like wrong directory check due use of asynchronous programming |
Beta Was this translation helpful? Give feedback.
-
|
what do you think does this creates an new issue instead <@1373135538147692604> |
Beta Was this translation helpful? Give feedback.
-
|
hey <@423095375742631936> yes isolating them can create issues if not implemented correctly but cognee's built-in multi-tenant system prevents these problems through async context isolation. Cognee uses
|
Beta Was this translation helpful? Give feedback.
-
|
so i just have to update the directories on every cognee.search and congnee.add and cognee.cognify functions right? |
Beta Was this translation helpful? Give feedback.
-
|
doesn't it make slower ? |
Beta Was this translation helpful? Give feedback.
-
|
no you don't need to manually update directories on every function call. |
Beta Was this translation helpful? Give feedback.
-
|
You can't just update directories on every cognee.search, cognee.add and cognee.cognify calls unfortunately. It's a global config for s3 storage |
Beta Was this translation helpful? Give feedback.
-
|
you can have separate Cognee instances running to handle different s3 storages with their own config potentially |
Beta Was this translation helpful? Give feedback.
-
|
but the documentation does not show that can we make multiple instances of cognee. in short it's like ```python3 |
Beta Was this translation helpful? Give feedback.
-
|
you can't make multiple instances of Cognee when writing python code in the SDK, but if you run it from different processes or run multiple Cognee backends you can route requests from customers to If you need to separate them on a project/org basis on S3 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
=we have implemented an cognee with help of s3 bucket now what we need is to we want to update the cognee system_root_directory and data_root_directory on each call because the cognee is unable to create an new instance.
This might be because it's similar to singleton. now the question is can we do a cognee related directories update on each call by the folders.
In Short Can we make it work for multiple users simultaneously. or it will create an new issue ?
This discussion was automatically pulled from Discord.
Beta Was this translation helpful? Give feedback.
All reactions