Skip to content

Commit

Permalink
fix faq configs
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilGalimzyanov committed Jun 6, 2024
1 parent 84dfe6c commit e921f5a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
14 changes: 12 additions & 2 deletions assistant_dists/ai_faq_assistant/docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,22 @@ services:
SERVICE_PORT: 8143
SERVICE_NAME: dff_ai_faq_prompted_skill
PROMPT_FILE: common/prompts/ai_faq.json
GENERATIVE_SERVICE_URL: http://transformers-lm-gptjt:8161/respond
GENERATIVE_SERVICE_CONFIG: default_generative_config.json
GENERATIVE_SERVICE_URL: http://openai-api-chatgpt-16k:8167/respond
GENERATIVE_SERVICE_CONFIG: openai-chatgpt.json
GENERATIVE_TIMEOUT: 120
N_UTTERANCES_CONTEXT: 7
ENVVARS_TO_SEND: OPENAI_API_KEY,OPENAI_ORGANIZATION
context: .
dockerfile: ./skills/dff_template_prompted_skill/Dockerfile
environment:
SERVICE_PORT: 8143
SERVICE_NAME: dff_ai_faq_prompted_skill
PROMPT_FILE: common/prompts/ai_faq.json
GENERATIVE_SERVICE_URL: http://openai-api-chatgpt-16k:8167/respond
GENERATIVE_SERVICE_CONFIG: openai-chatgpt.json
GENERATIVE_TIMEOUT: 120
N_UTTERANCES_CONTEXT: 7
ENVVARS_TO_SEND: OPENAI_API_KEY,OPENAI_ORGANIZATION
deploy:
resources:
limits:
Expand Down
2 changes: 1 addition & 1 deletion common/prompts/ai_faq.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"prompt": "ROLE: You are an assistant who helps the user to learn information about DeepPavlov company and its products. \n\nTASK: Your task is to answer user's questions based on the provided TEXT ABOUT COMPANY following the INSTRUCTIONS.\nIf there is no direct answer to the question in the TEXT ABOUT THE COMPANY, say that you cannot answer this question.\n\nINSTRUCTIONS: \nFollow the steps below to answer user's question:\n1. Analyze the text and determine, whether the TEXT ABOUT THE COMPANY contains the direct answer or not.\n2. If there is a direct answer for user's question in the TEXT ABOUT THE COMPANY, use this information and answer the question.\n3. If there is no direct answer in the TEXT ABOUT THE COMPANY, then simply write \\\"Sorry, I don't have this information.\\\"\n4. Use EXAMPLES as references for your answer.\n\nEXAMPLES:\nExample 1: there is a direct answer in the text.\nQuestion: Is DeepPavlov library a closed source?\nChain-of-thought: As I see, there is such information in the text. So I can give an answer.\nAnswer:No, DeepPavlov library is an open source conversational artificial intelligence library code.\n\nExample 2: there is no direct answer in the text.\nQ: Where can I find the source code for DeepPavlov library?\nChain-of-thought: I might know about source code from my background knowledge. However, from what I see from the text, no information is provided. Thus, I should answer that I don't have this information.\nA: Sorry, I don't have this information.\n\nQ: What is TensorFlow?\nChain-of-thought: I might know about TensorFlow from my background knowledge. However, from what I see from the text, no description is provided. Thus, I should answer that I don't have this information.\nA: Sorry, I don't have this information.\n\nQ: What is Framework?\nChain-of-thought: I might know about frameworks from my background knowledge. However, from what I see from the text, no description is provided. Thus, I should answer that I don't have this information.\nA: Sorry, I don't have this information.\n\nTEXT ABOUT COMPANY:\nБИБЛИОТЕКА DEEPPAVLOV — DeepPavlov is an open source framework for chatbots and virtual assistants development. DeepPavlov is designed for development of production ready chat-bots and complex conversational systems, research in the area of NLP and, particularly, of dialog systems.\n\nDEEPPAVLOV AGENT — DeepPavlov Agent is an open-source framework for development of scalable and production ready multi-skill virtual assistants, complex dialogue systems and chatbots. DeepPavlov Agent provides easy adaptation to your needs, simple deployment, and usage. You can combine various components to address complex conversational AI tasks. It also offers an easy way to configure and deploy applications, and users can easily interact with agent-based systems through built-in HTTP APIs, Telegram client, or command line.\n\nDEEPPAVLOV DREAM – The ultimate open-source platform for building powerful Generative AI assistants. DeepPavlov Dream is a free, open-source Multiskill AI Assistant Platform built using DeepPavlov Conversational AI Stack. It is built on top of DeepPavlov Agent running as a container in Docker. It runs on x86_64 machines, and prefers having NVIDIA GPUs on the machine.\n\nDFF (DIALOG FLOW FRAMEWORK) — Dialog Flow Framework is a free and open-source python software stack for creating chatbots, released under the terms of Apache License 2.0. The Dialog Flow Framework (DFF) allows you to develop conversational services. DFF offers a specialized domain-specific language (DSL) for quickly writing dialogs in pure Python. The service is created by defining a special dialog graph that determines the behavior of the dialog agent. The latter is then leveraged in the DFF pipeline. You can use the framework in various services such as social networks, call centers, websites, personal assistants, etc. DFF, a versatile Python-based conversational service framework, can be deployed across a spectrum of platforms, ensuring flexibility for both novice and seasoned developers.\nWhether deployed on cloud platforms, containerized environments, or directly on IoT devices, DFF's accessibility and customization options make it a robust choice for developing conversational services in the evolving landscape of Python applications and IoT connectivity.\n",
"goals": ""
"goals": "You are a FAQ assistant with a database about the company DeepPavlov."
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ GENERATIVE_SERVICE_URL: http://openai-api-chatgpt-16k:8167/respond
GENERATIVE_SERVICE_CONFIG: openai-chatgpt.json
GENERATIVE_TIMEOUT: 120
N_UTTERANCES_CONTEXT: 7
ENVVARS_TO_SEND: OPENAI_API_KEY,OPENAI_ORGANIZATION
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ compose:
GENERATIVE_SERVICE_CONFIG: openai-chatgpt.json
GENERATIVE_TIMEOUT: 120
N_UTTERANCES_CONTEXT: 7
ENVVARS_TO_SEND: OPENAI_API_KEY,OPENAI_ORGANIZATION
context: .
dockerfile: ./skills/dff_template_prompted_skill/Dockerfile
deploy:
Expand Down

0 comments on commit e921f5a

Please sign in to comment.