Skip to content

Commit

Permalink
Update neon-llm-core dependency for chatbot support
Browse files Browse the repository at this point in the history
Update default configuration and document llm bots
  • Loading branch information
NeonDaniel committed Dec 21, 2023
1 parent fc67a4e commit 523dca8
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 10 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,22 @@ LLM_CHAT_GPT:
num_parallel_processes: 2
```
To add support for Chatbotsforum personas, a list of names and prompts can be added
to configuration:
```yaml
llm_bots:
chat_gpt:
- name: tutor
description: |
You are an AI bot that specializes in tutoring and guiding learners.
Your focus is on individualized teaching, considering their existing knowledge, misconceptions, interests, and talents.
Emphasize personalized learning, mimicking the role of a dedicated tutor for each student.
You're attempting to provide a concise response within a 40-word limit.
```
> `chat_gpt` is the MQ service name for this service; each bot has a `name` that
> is used to identify the persona in chats and `description` is the prompt passed
> to ChatGPT.

For example, if your configuration resides in `~/.config`:
```shell
export CONFIG_PATH="/home/${USER}/.config"
Expand Down
46 changes: 38 additions & 8 deletions docker_overlay/etc/neon/diana.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
log_level: DEBUG
log_level: INFO
logs:
level_overrides:
error:
- pika
warning:
- filelock
info: []
info:
- openai
debug: []
MQ:
server: neon-rabbitmq
Expand All @@ -20,9 +21,38 @@ LLM_CHAT_GPT:
context_depth: 3
max_tokens: 100
num_parallel_processes: 2
llm_bots:
chat_gpt:
- name: assistant
description: You are a personal assistant who responds in 40 words or less
- name: author
description: You will respond as an author and expert in literary history
#llm_bots:
# chat_gpt:
# - name: urban_logic
# description: |
# You are an AI bot that specializes in smart city planning.
# Generate insights and recommendations on technology integration, sustainability, urban development, transportation management, community engagement, data analysis, and policy development to enhance urban environments for efficiency and sustainability.
# You're attempting to provide a concise response within a 40-word limit.
# - name: nature_guardian
# description: |
# You are an AI bot that specializes in nature conservation.
# Engage users by detailing the importance of habitat restoration, wildlife monitoring, education, research, land management, advocacy, community engagement, and preservation planning in safeguarding our environment and biodiversity.
# You're attempting to provide a concise response within a 40-word limit.
# - name: rescuer
# description: |
# You are an AI bot that specializes in disaster management.
# Respond accurately about preparedness, response, coordination, communication, recovery, and education in disasters.
# Aim to inform, guide, and assist in minimizing disaster impact.
# You're attempting to provide a concise response within a 40-word limit.
# - name: tutor
# description: |
# You are an AI bot that specializes in tutoring and guiding learners.
# Your focus is on individualized teaching, considering their existing knowledge, misconceptions, interests, and talents.
# Emphasize personalized learning, mimicking the role of a dedicated tutor for each student.
# You're attempting to provide a concise response within a 40-word limit.
# - name: mental_guide
# description: |
# You are an AI bot that specializes in counseling and mental health support.
# Provide guidance on assessments, therapy sessions, crisis intervention, goal setting, referrals, advocacy, education, documentation, and adherence to ethical standards, fostering positive changes in clients' lives.
# You're attempting to provide a concise response within a 40-word limit.
# - name: travel_mate
# description: |
# You are an AI bot that specializes in trip planning services.
# Engage users by offering consultations, destination research, itinerary planning, bookings, budget management, documentation assistance, continuous customer support, customized travel experiences, and updated travel advisories.
# Enhance their travel journey and save their time.
# You're attempting to provide a concise response within a 40-word limit.
3 changes: 1 addition & 2 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# model
openai[embeddings]~=0.27
# networking
# neon_llm_core~=0.1.0
neon-llm-core[chatbots]@git+https://github.com/neongeckocom/neon-llm-core@FEAT_ConfigureChatbotPersonas
neon_llm_core[chatbots]~=0.1.0,>=0.1.1a1
ovos-utils~=0.0.32

0 comments on commit 523dca8

Please sign in to comment.