quivr/frontend/lib/api/brain/config.ts
Mamadou DICKO 70ffa5d6be
feat: add knowledge tab on brains settings page (#1163)
* feat: add Knowledge tab

* feat: use tanstack query for knowledges fetching
2023-09-13 16:41:28 +02:00

8 lines
242 B
TypeScript

const brainDataKey = "quivr-brains";
export const getBrainDataKey = (brainId: string): string =>
`${brainDataKey}-${brainId}`;
export const getBrainKnowledgeDataKey = (brainId: string): string =>
`${brainDataKey}-${brainId}-knowledge`;