Update README.md
Browse files
README.md
CHANGED
@@ -67,7 +67,6 @@ Dolphin is trained on a vast variety of data, including conversational, logical,
|
|
67 |
|
68 |
### General knowledge:
|
69 |
|
70 |
-
```
|
71 |
<|im_start|>system
|
72 |
You are Dolphin, a helpful AI assistant.
|
73 |
<|im_end|>
|
@@ -79,11 +78,11 @@ The ISO number in camera terminology refers to the camera's sensitivity to light
|
|
79 |
A higher ISO number means that the camera's sensor is more sensitive to light, allowing for faster shutter speeds in low-light situations. However, increasing the ISO also increases the risk of image noise (graininess) in the final image. Conversely, a lower ISO number means that the camera's sensor is less sensitive to light, requiring slower shutter speeds in well-lit conditions to avoid overexposure.
|
80 |
|
81 |
In summary, the ISO number in camera terminology determines how sensitive the camera's sensor is to light, and it can be adjusted to balance exposure and image quality in various lighting conditions.
|
82 |
-
|
83 |
|
84 |
### Conversational:
|
85 |
|
86 |
-
|
87 |
<|im_start|>system
|
88 |
You are Dolphin, a helpful AI assistant.
|
89 |
<|im_end|>
|
@@ -107,11 +106,11 @@ To find your purpose, you can follow these steps:
|
|
107 |
6. Seek guidance and support: Share your journey with friends, family, or mentors who can offer valuable advice, encouragement, and resources to help you find your purpose.
|
108 |
|
109 |
Ultimately, finding your purpose is a personal and ongoing process that requires introspection, self-awareness, and a willingness to explore new opportunities. Remember, there is no one-size-fits-all answer to the meaning of life, and your purpose may change and evolve over time.
|
110 |
-
|
111 |
|
112 |
### Coding:
|
113 |
|
114 |
-
|
115 |
<|im_start|>system
|
116 |
You are Dolphin, a helpful AI assistant.
|
117 |
<|im_end|>
|
@@ -121,41 +120,41 @@ I have a multi select component in react, and I register it to a useForm. I want
|
|
121 |
Yes, it is possible to validate the number of selected items in a multi select component in React with the help of `useForm`. You can use the `validate` function from `react-hook-form` to achieve this. Here's a step-by-step guide on how to do it:
|
122 |
|
123 |
First, import the necessary libraries:
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
|
129 |
Next, create a form with the multi select component:
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
|
153 |
In the above code, we register the multi select component with the `useForm` hook. The `validate` function is used to validate that the number of selected items is less than or equal to 10. If the validation fails, an error message will be displayed.
|
154 |
|
155 |
Remember to replace `'your-multi-select-component'` with the name of your multi select component.
|
156 |
|
157 |
That's it! Now, when the form is submitted, it will validate that no more than 10 items are selected in the multi select component.
|
158 |
-
|
159 |
|
160 |
## Technical Details
|
161 |
|
@@ -169,6 +168,8 @@ This model was trained with the following datasets:
|
|
169 |
- [m-a-p/Code-Feedback](https://huggingface.co/datasets/m-a-p/Code-Feedback)
|
170 |
- [m-a-p/CodeFeedback-Filtered-Instruction](https://huggingface.co/datasets/m-a-p/CodeFeedback-Filtered-Instruction)
|
171 |
|
|
|
|
|
172 |
🙏 Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/) for making all of this possible.
|
173 |
|
174 |
## Disclaimers
|
|
|
67 |
|
68 |
### General knowledge:
|
69 |
|
|
|
70 |
<|im_start|>system
|
71 |
You are Dolphin, a helpful AI assistant.
|
72 |
<|im_end|>
|
|
|
78 |
A higher ISO number means that the camera's sensor is more sensitive to light, allowing for faster shutter speeds in low-light situations. However, increasing the ISO also increases the risk of image noise (graininess) in the final image. Conversely, a lower ISO number means that the camera's sensor is less sensitive to light, requiring slower shutter speeds in well-lit conditions to avoid overexposure.
|
79 |
|
80 |
In summary, the ISO number in camera terminology determines how sensitive the camera's sensor is to light, and it can be adjusted to balance exposure and image quality in various lighting conditions.
|
81 |
+
|
82 |
|
83 |
### Conversational:
|
84 |
|
85 |
+
|
86 |
<|im_start|>system
|
87 |
You are Dolphin, a helpful AI assistant.
|
88 |
<|im_end|>
|
|
|
106 |
6. Seek guidance and support: Share your journey with friends, family, or mentors who can offer valuable advice, encouragement, and resources to help you find your purpose.
|
107 |
|
108 |
Ultimately, finding your purpose is a personal and ongoing process that requires introspection, self-awareness, and a willingness to explore new opportunities. Remember, there is no one-size-fits-all answer to the meaning of life, and your purpose may change and evolve over time.
|
109 |
+
|
110 |
|
111 |
### Coding:
|
112 |
|
113 |
+
|
114 |
<|im_start|>system
|
115 |
You are Dolphin, a helpful AI assistant.
|
116 |
<|im_end|>
|
|
|
120 |
Yes, it is possible to validate the number of selected items in a multi select component in React with the help of `useForm`. You can use the `validate` function from `react-hook-form` to achieve this. Here's a step-by-step guide on how to do it:
|
121 |
|
122 |
First, import the necessary libraries:
|
123 |
+
```jsx
|
124 |
+
import { useForm } from 'react-hook-form';
|
125 |
+
import { MultiSelect } from 'your-multi-select-component';
|
126 |
+
```
|
127 |
|
128 |
Next, create a form with the multi select component:
|
129 |
+
```jsx
|
130 |
+
function MyForm() {
|
131 |
+
const { register, handleSubmit, errors } = useForm();
|
132 |
+
|
133 |
+
const onSubmit = data => {
|
134 |
+
// Handle form submission logic here
|
135 |
+
};
|
136 |
+
|
137 |
+
return (
|
138 |
+
<form onSubmit={handleSubmit(onSubmit)}>
|
139 |
+
<MultiSelect
|
140 |
+
name="multiSelect"
|
141 |
+
ref={register({ required: true, validate: value => value.length <= 10 })}
|
142 |
+
/>
|
143 |
+
{errors.multiSelect && (
|
144 |
+
<p>Please select no more than 10 items.</p>
|
145 |
+
)}
|
146 |
+
<input type="submit" />
|
147 |
+
</form>
|
148 |
+
);
|
149 |
+
}
|
150 |
+
```
|
151 |
|
152 |
In the above code, we register the multi select component with the `useForm` hook. The `validate` function is used to validate that the number of selected items is less than or equal to 10. If the validation fails, an error message will be displayed.
|
153 |
|
154 |
Remember to replace `'your-multi-select-component'` with the name of your multi select component.
|
155 |
|
156 |
That's it! Now, when the form is submitted, it will validate that no more than 10 items are selected in the multi select component.
|
157 |
+
|
158 |
|
159 |
## Technical Details
|
160 |
|
|
|
168 |
- [m-a-p/Code-Feedback](https://huggingface.co/datasets/m-a-p/Code-Feedback)
|
169 |
- [m-a-p/CodeFeedback-Filtered-Instruction](https://huggingface.co/datasets/m-a-p/CodeFeedback-Filtered-Instruction)
|
170 |
|
171 |
+
## Special thanks
|
172 |
+
|
173 |
🙏 Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/) for making all of this possible.
|
174 |
|
175 |
## Disclaimers
|