Add README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: llama2
|
3 |
---
|
|
|
1 |
+
# Model Card for Inkbot
|
2 |
+
|
3 |
+
## Model Details
|
4 |
+
Inkbot is a conversational AI model designed to interpret and respond to structured prompts with or without contextual information. Built on the latest advancements in natural language processing (NLP) and understanding (NLU), Inkbot provides users with accurate and meaningful interactions, addressing a wide range of queries and topics. Its unique feature lies in the structured prompt system, allowing users to engage in dynamic dialogues that can evolve based on context, metadata, and user input.
|
5 |
+
|
6 |
+
## How to Use
|
7 |
+
Inkbot uses a structured prompt template system. Depending on the information you have or want to give, you can use templates 'with context' or 'without context'.
|
8 |
+
|
9 |
+
### Prompt Template Structure
|
10 |
+
|
11 |
+
#### With Context:
|
12 |
+
```
|
13 |
+
<#meta#>
|
14 |
+
- Date: [DATE]
|
15 |
+
- Task: [TASK TYPE]
|
16 |
+
<#system#>
|
17 |
+
[SYSTEM PROMPT/DESCRIPTION OF THE INTERACTION]
|
18 |
+
<#chat#>
|
19 |
+
<#user#>
|
20 |
+
[USER QUESTION]
|
21 |
+
<#bot#>
|
22 |
+
[BOT RESPONSE]
|
23 |
+
<#user#>
|
24 |
+
[USER FOLLOW-UP QUESTION]
|
25 |
+
<#user_context#>
|
26 |
+
[ADDITIONAL CONTEXT FOR THE BOT]
|
27 |
+
<#bot#>
|
28 |
+
[BOT RESPONSE BASED ON CONTEXT]
|
29 |
+
```
|
30 |
+
|
31 |
+
#### Without Context:
|
32 |
+
```
|
33 |
+
<#meta#>
|
34 |
+
- Date: [DATE]
|
35 |
+
- Task: [TASK TYPE]
|
36 |
+
<#system#>
|
37 |
+
[SYSTEM PROMPT/DESCRIPTION OF THE INTERACTION]
|
38 |
+
<#chat#>
|
39 |
+
<#user#>
|
40 |
+
[USER QUESTION]
|
41 |
+
<#bot#>
|
42 |
+
[BOT RESPONSE]
|
43 |
+
<#user#>
|
44 |
+
[USER FOLLOW-UP QUESTION]
|
45 |
+
<#bot#>
|
46 |
+
[BOT RESPONSE]
|
47 |
+
```
|
48 |
+
|
49 |
+
### Examples
|
50 |
+
|
51 |
+
#### With Context:
|
52 |
+
```
|
53 |
+
<#meta#>
|
54 |
+
- Date: 2023-07-20
|
55 |
+
- Task: general
|
56 |
+
<#system#>
|
57 |
+
A dialogue focused on determining dates based on context clues.
|
58 |
+
<#chat#>
|
59 |
+
<#user#>
|
60 |
+
What is today's date?
|
61 |
+
<#bot#>
|
62 |
+
The date is: 2023-07-20
|
63 |
+
<#user#>
|
64 |
+
When did the event in the provided context take place?
|
65 |
+
<#user_context#>
|
66 |
+
It's the day after new years eve, and I'm starting 2018 with a headache.
|
67 |
+
<#bot#>
|
68 |
+
The event in the context took place on: 2018-01-01
|
69 |
+
```
|
70 |
+
|
71 |
+
#### Without Context:
|
72 |
+
```
|
73 |
+
<#meta#>
|
74 |
+
- Date: 2023-07-20
|
75 |
+
- Task: general
|
76 |
+
<#system#>
|
77 |
+
A simple dialogue about daily queries.
|
78 |
+
<#chat#>
|
79 |
+
<#user#>
|
80 |
+
Will it rain today?
|
81 |
+
<#bot#>
|
82 |
+
I am not sure, without knowing your location I am unable to determine the weather.
|
83 |
+
<#user#>
|
84 |
+
Can you compose a haiku for me?
|
85 |
+
<#bot#>
|
86 |
+
Whispers of the breeze,
|
87 |
+
Nature's melodies unfold,
|
88 |
+
Dawn dispels the night.
|
89 |
+
```
|
90 |
+
|
91 |
+
## Task Options
|
92 |
+
|
93 |
+
Inkbot has been trained for a variety of tasks. Below are some of the key task options you can utilize:
|
94 |
+
|
95 |
+
1. **general**: This is the default task and is designed for a broad range of general questions and interactions.
|
96 |
+
|
97 |
+
- Usage: Suitable for most day-to-day interactions and queries.
|
98 |
+
|
99 |
+
2. **knowledge_graph**: This task involves extracting, understanding, and representing information in a structured way.
|
100 |
+
|
101 |
+
- Usage: When you want to extract relationships between entities or desire structured representations of data.
|
102 |
+
|
103 |
+
3. **question_answer**: Explicitly trained for answering questions in a straightforward manner.
|
104 |
+
|
105 |
+
- Usage: Best used when you have direct questions and expect concise answers.
|
106 |
+
|
107 |
+
4. **reasoning**: Allows Inkbot to showcase its logical and deductive reasoning capabilities.
|
108 |
+
|
109 |
+
- Usage: Ideal for puzzles, riddles, or scenarios where logical analysis is required.
|
110 |
+
|
111 |
+
5. **translation**: Use this for language translation tasks.
|
112 |
+
|
113 |
+
- Usage: Provide a sentence or paragraph in one language, and specify the desired target language for translation.
|
114 |
+
|
115 |
+
6. **summarization**: Trained for condensing large texts into shorter, coherent summaries.
|
116 |
+
|
117 |
+
- Usage: When you have a lengthy text or article that you want to be summarized to its key points.
|
118 |
+
|
119 |
+
7. **creative_writing**: Engage Inkbot in composing stories, poetry, and other creative content.
|
120 |
+
|
121 |
+
- Usage: For tasks that require imaginative and original content generation.
|
122 |
+
|
123 |
+
### How to Use Task Options
|
124 |
+
|
125 |
+
In the prompt template structure, the `Task` metadata field is where you specify the task option. Here's an example of how to structure a prompt using the `reasoning` task:
|
126 |
+
|
127 |
+
|
128 |
+
## Limitations
|
129 |
+
- Ensure you adhere to the prompt structure for best results.
|
130 |
+
- When providing contextual details, clarity is essential for Inkbot to derive accurate and meaningful responses.
|
131 |
+
|
132 |
+
## Additional Notes
|
133 |
+
- The 'date', 'task', and 'system' are crucial metadata components that need to be provided outside the core dialogue.
|
134 |
+
- Use the 'user_context' key when you want to offer supplementary context that guides Inkbot's response.
|
135 |
+
|
136 |
+
|
137 |
---
|
138 |
license: llama2
|
139 |
---
|