Spaces:
Sleeping
Sleeping
justalphie
commited on
Commit
·
ba29d95
1
Parent(s):
1e4dce5
Improve README
Browse files
README.md
CHANGED
@@ -11,6 +11,36 @@ pinned: true
|
|
11 |
---
|
12 |
|
13 |
# ChatbotCV
|
14 |
-
You can ask this chatbot questions about my resume.
|
15 |
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
|
13 |
# ChatbotCV
|
14 |
+
You can ask this chatbot questions about my resume. Use this [link!](https://huggingface.co/spaces/justalphie/ChatbotCV)
|
15 |
|
16 |
+
The chatbot is built using Cohere Chat, and the data comes from the `prompt.md` file.
|
17 |
+
|
18 |
+
## Description
|
19 |
+
The chatbot uses [Cohere's Command model](https://cohere.com/command) and displays the results using [Gradio interface](https://www.gradio.app/guides/creating-a-chatbot-fast).
|
20 |
+
|
21 |
+
## Development steps
|
22 |
+
The chatbot uses the ```prompt.md``` file as a prompt. It contains the instructions to the model as well as the resume of the candidate.
|
23 |
+
|
24 |
+
The ```convert_history``` function takes a prompt and adds it to history. It also converts Gradio's input message and chat history structure into the structure accepted by Cohere's model.
|
25 |
+
|
26 |
+
The ```reply``` function takes the chat history and user's input as arguments, and streams the answer of the model.
|
27 |
+
|
28 |
+
Finally, the chatbot is launched.
|
29 |
+
```
|
30 |
+
gr.ChatInterface(reply,
|
31 |
+
title="Alfiya's Curriculum Vitae",
|
32 |
+
description=description
|
33 |
+
).launch()
|
34 |
+
```
|
35 |
+
|
36 |
+
To host the ChatbotCV [HuggingFace Spaces](https://huggingface.co/spaces) were used.
|
37 |
+
|
38 |
+
|
39 |
+
## Configuration
|
40 |
+
If you would like to create a similar chatbot for your own CV, you will need to make an account on Cohere and HuggingFace, define the Key for your Cohere Client as a system variable on your own computer. Please, do not forget to mention the author [Alfiya Khabibullina](https://github.com/justalphie).
|
41 |
+
|
42 |
+
|
43 |
+
## Contact
|
44 |
+
The author of the project is Alfiya Khabibullina.
|
45 |
+
To reach out for support or further information, ideas or suggestions, please contact [Alfiya Khabibullina](https://github.com/justalphie).
|
46 |
+
[My LinkedIn profile](https://www.linkedin.com/in/alfiya-khabibullina-7b13131b8/)
|