Added better prompt (#80)

Reviewed-on: #80
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
This commit is contained in:
2026-03-04 11:16:24 +00:00
committed by Gode, Sebastian
parent 2b2df92bcf
commit 9efb301f51

View File

@ -87,6 +87,7 @@ def generate_description_with_llm(text, service_title, llm_api_url, model_name,
content_preview = text[:2000].replace("\n", " ")
prompt = (
f"Generate a meta description (40-160 chars) for: {service_title}."
f"This is a service from the cloud provider called 'T Cloud Public', do not mention other Cloud Providers or services from them."
f"Content preview: {content_preview}."
f"Output ONLY the description text, nothing else."
)
@ -160,6 +161,7 @@ def generate_keywords_with_llm(text, service_title, llm_api_url, model_name, api
content_preview = text[:2000].replace("\n", " ")
prompt = (
f"Generate up to 5 keywords (comma-separated) for: {service_title}. "
f"This is a service from the cloud provider called 'T Cloud Public', do not mention other Cloud Providers or services from them."
f"Content preview: {content_preview}. "
f"Output ONLY comma-separated keywords, nothing else."
)