├── .dockerignore ├── .env.example ├── .eslintrc.json ├── .gitignore ├── .vscode └── launch.json ├── Dockerfile ├── README.md ├── app └── layout.tsx ├── components ├── Chat.tsx ├── ChatMessage.tsx ├── ModeButtons.tsx ├── OutsideAlerter.tsx ├── ProfileSwitcher.tsx ├── SettingsModal.tsx └── Tooltip.tsx ├── docker-compose.yml ├── images ├── active.png ├── arch.png ├── entity.png └── search.png ├── lib ├── consts.ts ├── profiles.ts └── scheduled.ts ├── next.config.js ├── package.json ├── pages ├── _app.tsx ├── api │ ├── delete.ts │ ├── history.ts │ ├── message.ts │ ├── profiles │ │ ├── create.ts │ │ ├── delete.ts │ │ ├── index.ts │ │ └── rename.ts │ ├── scheduled.ts │ └── search │ │ ├── index.ts │ │ └── result.ts └── index.tsx ├── postcss.config.js ├── prompts ├── entity.ts ├── memory.ts └── scheduled.ts ├── public ├── claire.png └── favicon.ico ├── services ├── ChromaChatMessageHistory.ts ├── ChromaEntityStore.ts ├── ClaireMemory.ts ├── InMemoryEntityStore.ts ├── VectorStoreChatMemory.ts └── utils.ts ├── styles └── globals.css ├── tailwind.config.js ├── tsconfig.json ├── types └── types.ts └── utils └── utils.ts /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | OPENAI_API_KEY=sk-yourkeyhere 2 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/README.md -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /components/Chat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/components/Chat.tsx -------------------------------------------------------------------------------- /components/ChatMessage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/components/ChatMessage.tsx -------------------------------------------------------------------------------- /components/ModeButtons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/components/ModeButtons.tsx -------------------------------------------------------------------------------- /components/OutsideAlerter.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/components/OutsideAlerter.tsx -------------------------------------------------------------------------------- /components/ProfileSwitcher.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/components/ProfileSwitcher.tsx -------------------------------------------------------------------------------- /components/SettingsModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/components/SettingsModal.tsx -------------------------------------------------------------------------------- /components/Tooltip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/components/Tooltip.tsx -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /images/active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/images/active.png -------------------------------------------------------------------------------- /images/arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/images/arch.png -------------------------------------------------------------------------------- /images/entity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/images/entity.png -------------------------------------------------------------------------------- /images/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/images/search.png -------------------------------------------------------------------------------- /lib/consts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/lib/consts.ts -------------------------------------------------------------------------------- /lib/profiles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/lib/profiles.ts -------------------------------------------------------------------------------- /lib/scheduled.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/lib/scheduled.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/api/delete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/pages/api/delete.ts -------------------------------------------------------------------------------- /pages/api/history.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/pages/api/history.ts -------------------------------------------------------------------------------- /pages/api/message.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/pages/api/message.ts -------------------------------------------------------------------------------- /pages/api/profiles/create.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/pages/api/profiles/create.ts -------------------------------------------------------------------------------- /pages/api/profiles/delete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/pages/api/profiles/delete.ts -------------------------------------------------------------------------------- /pages/api/profiles/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/pages/api/profiles/index.ts -------------------------------------------------------------------------------- /pages/api/profiles/rename.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/pages/api/profiles/rename.ts -------------------------------------------------------------------------------- /pages/api/scheduled.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/pages/api/scheduled.ts -------------------------------------------------------------------------------- /pages/api/search/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/pages/api/search/index.ts -------------------------------------------------------------------------------- /pages/api/search/result.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/pages/api/search/result.ts -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/postcss.config.js -------------------------------------------------------------------------------- /prompts/entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/prompts/entity.ts -------------------------------------------------------------------------------- /prompts/memory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/prompts/memory.ts -------------------------------------------------------------------------------- /prompts/scheduled.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/prompts/scheduled.ts -------------------------------------------------------------------------------- /public/claire.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/public/claire.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /services/ChromaChatMessageHistory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/services/ChromaChatMessageHistory.ts -------------------------------------------------------------------------------- /services/ChromaEntityStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/services/ChromaEntityStore.ts -------------------------------------------------------------------------------- /services/ClaireMemory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/services/ClaireMemory.ts -------------------------------------------------------------------------------- /services/InMemoryEntityStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/services/InMemoryEntityStore.ts -------------------------------------------------------------------------------- /services/VectorStoreChatMemory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/services/VectorStoreChatMemory.ts -------------------------------------------------------------------------------- /services/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/services/utils.ts -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/styles/globals.css -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/types/types.ts -------------------------------------------------------------------------------- /utils/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suvansh/CLAIRe/HEAD/utils/utils.ts --------------------------------------------------------------------------------