The data source transformer is a good sustainable alternative if you do not want to manually change specific documents or upload static files with information to the bot. By adding transformer rules to a source those rules will be applied for all future updates of the sources, no matter if it's a webscrape or API-source.
Use cases
Replace and/or remove text
Modifying text in sources can help both the embedder service and the GPT model more easily retrieve sources and provide specific answers to questions.
Add synonyms
Add example questions
Remove conflicting information
Below is an example of how to add the rule of replacing the word 'recycle' with 'recycle, throw away or discard' as a way of adding synonyms to sources giving instructions on how to recycle.
If you want to add keywords in a new field based on a document ID you can use the following logic. <field_to_look_at> in this case would be the ID-field, and <field_to_write_to> is the new field with the keywords. X should be replaced with the document's ID and Y with the keywords you want that document to have.