Mintplex-Labs / anything-llm

The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, and more.
https://anythingllm.com
MIT License
27.48k stars 2.77k forks source link

[FEAT]: Configuration as Code #2573

Closed Stono closed 2 weeks ago

Stono commented 2 weeks ago

What would you like to see?

A fair amount can be configured using environment variables, but ideally i'd like to be able to develop locally then export the configuration, commit it into the git repo, and then have it deploy across N environments. Even if that was just a big whopping json document of all the configuration (obviously excluding documents, chats etc).

CI/CD for the workspace config basically.

Thinking out loud, I could probably build something using the API? GET /workspaces / POST /workspaces.

timothycarambat commented 2 weeks ago

you could do this with a build script since you can use the system API in an unauthenticated mode (or Developer API methods) then once done, swap it to multi-user mode or password protected more.

This would enable you to spin up an instance, call a bunch of endpoints to get everything the way you like - then secure the instance per script run