Skip to content

yourself-q/friendly-potato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat App with Name Extraction

This is a chat application that uses LMSTUDIO endpoints for generating responses and extracting user information.

Setup

  1. Create a virtual environment:

    python -m venv venv
    source venv/bin/activate
  2. Install dependencies:

    pip install -r requirements.txt
  3. Make sure LMSTUDIO is running and accessible at http://localhost:54949

Running the Application

python app.py

The application will be available at http://localhost:56627

How it works

  1. When a user sends a message, the application checks if there's a name in the format %name,<name>%
  2. If found, it uses that name to load any existing information about the user
  3. The message and user info are sent to LMSTUDIO for generating a response
  4. When the chat ends, the conversation history is sent to LMSTUDIO to extract important user information
  5. The extracted information is saved in a file named after the user

Directory Structure

  • app.py: Main application file
  • templates/index.html: HTML template for the chat interface
  • users/: Directory containing user information files

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors