This is a chat application that uses LMSTUDIO endpoints for generating responses and extracting user information.
-
Create a virtual environment:
python -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Make sure LMSTUDIO is running and accessible at http://localhost:54949
python app.pyThe application will be available at http://localhost:56627
- When a user sends a message, the application checks if there's a name in the format
%name,<name>% - If found, it uses that name to load any existing information about the user
- The message and user info are sent to LMSTUDIO for generating a response
- When the chat ends, the conversation history is sent to LMSTUDIO to extract important user information
- The extracted information is saved in a file named after the user
app.py: Main application filetemplates/index.html: HTML template for the chat interfaceusers/: Directory containing user information files