def load_prompts_from_cosmos()

in pipeline/pipelineUtils/prompts.py [0:0]


def load_prompts_from_cosmos():
    """Fetch prompts from Cosmos DB and return as a dictionary."""
    # Placeholder for Cosmos DB fetching logic
    # Replace with actual implementation

    logging.info("Fetching prompts from Cosmos DB")
    prompts = get_prompt_by_id("prompts")  # Example ID, replace with actual logic
    if not prompts:
        raise ValueError("No prompts found in Cosmos DB.")
    prompts_json = json.dumps(prompts, indent=4)

    return prompts_json