Skip to content

Feature - Create KB#57

Merged
enzosakamoto merged 40 commits intodevfrom
feature/create-kb
Aug 18, 2025
Merged

Feature - Create KB#57
enzosakamoto merged 40 commits intodevfrom
feature/create-kb

Conversation

@enzosakamoto
Copy link
Copy Markdown
Member

This pull request introduces several new features and improvements related to the knowledge base functionality, including new domain types, UI components, and hooks for managing knowledge bases and chat interactions. The most important changes are grouped below by theme.

Knowledge Base Domain and API Integration

  • Added new types KnowledgeBase and KnowledgeBaseFile in src/domain/knowledge-base.ts to define the structure and properties of a knowledge base and its files.
  • Implemented React Query hooks in src/features/user-area/hooks/use-kb.ts for creating knowledge bases, deleting files, and fetching knowledge base data from the API.

Chat Playground Feature

  • Created a new chat playground page in src/features/playground/pages/playground.tsx that allows users to interact with a selected knowledge base using AI models, send messages, and view responses in a conversational UI.
  • Added a custom hook useChatWithKnowledgeBaseMutation in src/features/playground/hooks/use-chat.ts to handle chat requests with the knowledge base using React Query.

Knowledge Base Detail Modal

  • Added a modal component knowledge-base-detail-modal.tsx in src/features/user-area/components/ to display detailed information about a knowledge base, list files, and provide actions to add/remove files and test the knowledge base in the playground.

Dependency and Script Updates

  • Updated package.json to include new dependencies for Radix UI components and improved the dev script to automatically open the browser when running the app. [1] [2]

@enzosakamoto enzosakamoto merged commit e475a81 into dev Aug 18, 2025
1 check passed
@enzosakamoto enzosakamoto deleted the feature/create-kb branch August 18, 2025 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant