Skip to content

Commit 379664b

Browse files
committed
refine personas
1 parent bb43e96 commit 379664b

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

docs/NapthaModules/5-personas.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,45 @@
11
# Persona Modules
22

3-
Persona modules are things like:
3+
Persona modules define the character and behavior of AI agents. These modules have gained significant traction with the rise of AI agents, enabling more natural and specialized agent interactions.
44

5+
Available collections on HuggingFace:
56
- [Social personas](https://huggingface.co/datasets/NapthaAI/social_agents_personas)
67
- [Market personas](https://huggingface.co/datasets/NapthaAI/market_agents_personas)
78

8-
Personas can be synthetically generated or generated from real personal data, such as that exported from social or finance apps.
9+
Personas can be either synthetically generated using LLMs for specific use cases, or generated from real personal data (like social media and finance app exports) to preserve authentic behaviors.
910

1011
## Generate a Persona from your X Data
1112

12-
First, download an archive of your X data [here](https://help.x.com/en/managing-your-account/how-to-download-your-x-archive).
13-
14-
Then, run tweets2character directly from your command line:
13+
1. Download an archive of your X data [here](https://twitter.com/settings/download_your_data).
1514

15+
2. Run tweets2character directly from your command line:
16+
```bash
1617
npx tweets2character
17-
NOTE: You need an API key to use Claude or OpenAI.
18-
19-
If everything is correct, you'll see a loading bar as the script processes your data and generates a character file.
20-
21-
It will be output as character.json in the directory where you run npx tweets2character.
22-
23-
Finally, submit a pull request to add your persona to this dataset on HuggingFace.
24-
18+
```
19+
:::note
20+
You need an API key to use Claude or OpenAI.
21+
:::
2522

23+
3. If everything is correct, you'll see a loading bar as the script processes your data and generates a character file.
24+
:::info
25+
It will be output as `character.json` in the directory where you run `npx tweets2character`.
26+
:::
2627

27-
You can follow and request to join the Naptha organization on Hugging Face [here](https://huggingface.co/NapthaAI) (this could take 24 hours or more)
28+
4. Finally, submit a pull request to add your persona to this dataset on HuggingFace.
2829

30+
5. You can follow and request to join the Naptha organization on Hugging Face [here](https://huggingface.co/NapthaAI) (this could take 24 hours or more)
2931

3032
```bash
3133
unzip twitter-2024-08-19-7604d23503c4857295c24edc2a13ec3d6d972639076041cc58eedefa8b439e62.zip twitter-2024-08-19-7604d23503c4857295c24edc2a13ec3d6d972639076041cc58eedefa8b439e62
3234
```
33-
3435
```bash
3536
naptha write_storage -i /Users/arshath/play/tweets_to_character/twitter-2024-11-14-ebb9578b384ebab9a263b7621eb86794462f7f5fa47d51d2e33a7607ed0d8f70
3637
```
37-
3838
```bash
3939
# usage: naptha run <agent_name> <agent args>
4040
naptha run agent:tweets_to_character -p "input_dir=twitter-2024-08-19-7604d23503c4857295c24edc2a13ec3d6d972639076041cc58eedefa8b439e62"
4141
```
4242

43+
## Need Help?
44+
- Join our [Discord](https://discord.gg/naptha)
45+
- Submit issues on [GitHub](https://github.com/NapthaAI)

0 commit comments

Comments
 (0)