-
Notifications
You must be signed in to change notification settings - Fork 3
Prompts configuration
In the /prompts/examples
directory, there are example prompt files. By default, Topic Mine will behave as if you are a retailer, so retailer-oriented prompts will be used. This can be changed by using one of the prompt files from the provided examples, or creating one of your own.
Example: If you are a university, you might want to copy the file /prompts/examples/prompts_es.py.universities
, paste it and rename to /prompts/prompts_es.py
(note the directory change from /prompts/examples
to /prompts
)
Note: If you want to use custom prompts you can do it, but beware that the return format must be explicitly and clearly specified in them.
Note 2: To add additional information to the prompts (for example, custom info related to the products), you can adapt the prompts accordingly and then you will need to adapt the part of the code that uses the prompts. That code is located in /services/content_generator_service.py
, in the method called __get_copy_generation_prompt
.
- Home
- Project setup
- API Reference
-
Content endpoint
- Query params
-
Body params
- First term source config
- Second term source config
- Output config
- Request examples
- Response examples
- Tasks endpoint
-
Content endpoint