Added better prompt #80
@ -87,7 +87,7 @@ def generate_description_with_llm(text, service_title, llm_api_url, model_name,
|
|||||||
content_preview = text[:2000].replace("\n", " ")
|
content_preview = text[:2000].replace("\n", " ")
|
||||||
prompt = (
|
prompt = (
|
||||||
f"Generate a meta description (40-160 chars) for: {service_title}."
|
f"Generate a meta description (40-160 chars) for: {service_title}."
|
||||||
f"This is a service from T Cloud Public, do not mention other Cloud Providers."
|
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"Content preview: {content_preview}."
|
||||||
f"Output ONLY the description text, nothing else."
|
f"Output ONLY the description text, nothing else."
|
||||||
)
|
)
|
||||||
@ -161,6 +161,7 @@ def generate_keywords_with_llm(text, service_title, llm_api_url, model_name, api
|
|||||||
content_preview = text[:2000].replace("\n", " ")
|
content_preview = text[:2000].replace("\n", " ")
|
||||||
prompt = (
|
prompt = (
|
||||||
f"Generate up to 5 keywords (comma-separated) for: {service_title}. "
|
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"Content preview: {content_preview}. "
|
||||||
f"Output ONLY comma-separated keywords, nothing else."
|
f"Output ONLY comma-separated keywords, nothing else."
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user