getmetal / motorhead

🧠 Motorhead is a memory and information retrieval server for LLMs.
https://getmetal.io
Apache License 2.0
846 stars 79 forks source link

add namespacing #58

Closed softboyjimbo closed 1 year ago

softboyjimbo commented 1 year ago

For the following endpoints you can now pass in a namespace query param for handling multi-tenant scenarios:

Create namespaced memory

POST /sessions/1/memory?namespace=my_namespace

Fetch by namespace

GET /sessions?namespace=my_namespace => [1] // will return namespace matched session

Fetch without namespace

GET /sessions?namespace=my_namespace => [] // will not return namespaced item