How trang3205/ai-assistant works
AI-Assistant is a local chat application: a user enters a message in the React interface, which sends it to a Spring Boot chat endpoint and displays the reply. The frontend also keeps conversation history and supports clearing the chat. The tree identifies RAG and LM Studio services, and the build declares local embedding and document-parser dependencies, but the README and sampled backend source do not show how these are wired. Those uncertain connections are therefore omitted.
Main entry points: ChatBox.jsx Chat state · chatApi.js Chat API client · MessageInput.jsx Message input · ChatController.java Chat endpoint
Components 10
Chat interface
- Message input
frontend/src/components/MessageInput.jsx - Chat state
frontend/src/components/ChatBox.jsx - Message display
frontend/src/components/MessageList.jsx - Chat API client
frontend/src/api/chatApi.js
Chat backend
- Chat endpoint
src/main/java/com/example/aiassistant/controller/ChatController.java
AI services
- RAG service
src/main/java/com/example/aiassistant/service/RagService.java - LM Studio service
src/main/java/com/example/aiassistant/service/LmStudioService.java
Other components
- User
- LM Studio
- Project documents
data
Connections 8
- User → Message input: enters message
- Message input → Chat state: sends text
- Chat state → Chat API client: sends message and history
- Chat API client → Chat endpoint: POSTs chat request
- Chat endpoint → Chat API client: returns reply
- Chat API client → Chat state: returns reply
- Chat state → Message display: renders conversation
- LM Studio service → LM Studio: calls model