diff --git a/adr/adr-002-jan-composable-ai.md b/adr/adr-002-jan-ai-apps.md similarity index 82% rename from adr/adr-002-jan-composable-ai.md rename to adr/adr-002-jan-ai-apps.md index 79ae22803..61dfde847 100644 --- a/adr/adr-002-jan-composable-ai.md +++ b/adr/adr-002-jan-ai-apps.md @@ -1,7 +1,8 @@ -# ADR #002: Jan composable AI +# ADR #002: Jan AI apps ## Changelog - Oct 4th 2023: Initial draft +- Oct 6th 2023: Update sample API ## Authors - @vuonghoainam - Hiro @@ -13,7 +14,7 @@ Proposed ## Context ### Business context -Jan can be a platform and let builders build their own `composable AIs` using existing tools +Jan can be a platform and let builders build their own `AI app` using existing tools - Use-case 1: Medical AI startup uploads "case notes" to Jan, wants to ask it questions (i.e. medical audit) - Use-case 2: Legal e-discovery: very large amount of documents (~10-15k pages) are uploaded, data is very private and cannot be leaked - Use-case 3: Jan wants to use Jan to have a QnA chatbot to answer questions on docs @@ -41,8 +42,14 @@ Jan can be a platform and let builders build their own `composable AIs` using ex ### Component design ![Component design](images/adr-002-02.png "Component design") +## API +- `jan.plugin..(**args)` + +- `jan.core.db.sql.command()` -> CRUD/ query +- `jan.plugin.vectra.(**args)` -> CRUD/ query for ## Consequences -- Jan user can build their own composable AIs (and buy from others too) in an easy way +- Jan user can build their own AI apps (and buy from others too) in an easy way - Clear design for plugin and Jan platform development ## Reference +- [ADR-003](adr-003-jan-plugins.md) \ No newline at end of file