in web-backend/backendUtils/db.py [0:0]
def get_all_prompts():
"""
Retrieve all prompt documents from the prompts container.
"""
try:
query = "SELECT * FROM c"
items = list(prompts_container.query_items(
query=query,
enable_cross_partition_query=True
))
return items
except exceptions.CosmosHttpResponseError as e:
logging.error(f"Error retrieving prompts: {str(e)}")
return []