Skip to content

codeproject/CodeProject.AI-LlamaChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Llama LLM Chat Module for CodeProject.AI Server

This is an LLM Chat module using the for CodeProject.AI Server. The actual module itself is downloadable via the CodeProject.AI Server's dashboard.

To develop and debug this code

  1. Clone the main server repo into a directory such as CodeProject/CodeProject.AI-Server

  2. Clone this LlamaChat repo into a separate folder CodeProject/CodeProject.AI-Modules

    You should now have

    CodeProject
      - CodeProject.AI-Server
         - demos
         - src
         - ... etc
      - CodeProject.AI-Modules
         - CodeProject.AI-LlamaChat (this repo)
    
  3. If you have NOT run dev setup on the server Run the server dev setup scripts by opening a terminal in CodeProject.AI-Server/src/ then, for Windows, run setup.bat, or for Linux/macOS run bash setup.sh.
    This will setup the server, and will also setup this module as long as this module sits under a folder named CodeProject.AI-Modules, with CodeProject.AI-Modules being at the same folder level as CodeProject.AI-Server.

    If you have already setup the server You can run the setup for just this module running the setup script from a terminal opened in this folder

    REM For Windows
    ..\..\CodeProject.AI-Server\src\setup.bat
    # For Linux/macOS
    bash ../../CodeProject.AI-Server/src/setup.sh
  4. Open the server repo in Visual Studio Code (or Visual Studio) and build and launch the server (Build and Launch server in the Run and Debug menu in VS Code). This will start the server, which in turn will load the settings file from this module.
    You can start this module directly from the CodeProject.AI Server dashboard, or you can run this module as a separate process via the 'Launch LlamaChat' Debug and Run option in VS Code.

To create a package for this module

Assuming the folder structure outlined above, run

REM For Windows
..\..\CodeProject.AI-Server\devops\build\create_packages.bat
# For Linux/macOS
bash ../../CodeProject.AI-Server/devops/build/create_packages.sh