ollama/examples/ask-the-mentors
Matt Williams a92fdff620 add the example for ask the mentors
Signed-off-by: Matt Williams <m@technovangelist.com>
2023-09-24 15:58:32 -07:00
..
.gitignore add the example for ask the mentors 2023-09-24 15:58:32 -07:00
character-generator.ts add the example for ask the mentors 2023-09-24 15:58:32 -07:00
mentors.ts add the example for ask the mentors 2023-09-24 15:58:32 -07:00
package.json add the example for ask the mentors 2023-09-24 15:58:32 -07:00
README.md add the example for ask the mentors 2023-09-24 15:58:32 -07:00

Ask the Mentors

This example demonstrates how one would create a set of 'mentors' you can have a conversation with. The mentors are generated using the character-generator.ts file. This will use Stable Beluga 70b to create a bio and list of verbal ticks and common phrases used by each person. Then mentors.ts will take a question, and choose three of the 'mentors' and start a conversation with them. Occasionally, they will talk to each other, and other times they will just deliver a set of monologues. It's fun to see what they do and say.

Usage

ts-node ./character-generator.ts "Lorne Greene"

This will create lornegreene/Modelfile. Now you can create a model with this command:

ollama create lornegreene -f lornegreene/Modelfile

If you want to add your own mentors, you will have to update the code to look at your namespace instead of mattw. Also set the list of mentors to include yours.

ts-node ./mentors.ts "What is a Jackalope?"