Skip to content

[doc issue] Orchestration does not work as described #71

@KaiRoesnerAtSAP

Description

@KaiRoesnerAtSAP

Issue description

I'm following the instructions in the "Consumption of GenAI models Using Orchestration - A Beginner's Guide". Step 4 "Consume LLM's in Generative AI Hub through Orchestration" does not work as described.

First of all, the UI seems to have radically changed as compared to the screenshots in the guide. But okay.

When I run the orchestration with everything configured as described I get an error message:

Unable to upload data
400 - LLM Module: [{'type': 'string_type', 'loc': ('body', 'messages', 1, 'system', 'content'), 'msg': 'Input should be a valid string', 'input': [{'text': 'You are a helpful AI assistant for HR. Summarize the following CV in 10 sentences, focusing on key qualifications, work experience, and achievements. Include personal contact information, organizational history, and personal interests.', 'type': 'text'}]}] Originally encountered status code: 400.

Here's the trace info (as displayed below the error message):

{
    "templating": [
        {
            "content": [
                {
                    "type": "text",
                    "text": "Here is a candidate's resume: John Doe \n1234 Data St, San Francisco, CA 94101 \n(123) 456-7890 \[email protected] \nLinkedIn Profile \nGitHub Profile \n\nObjective \nDetail-oriented Data Scientist with 3+ years of experience in data analysis, statistical modeling, and machine learning. Seeking to leverage expertise in predictive modeling and data visualization to help drive data-informed decision-making at [Company Name]. \n\nEducation \nMaster of Science in Data Science \nUniversity of California, Berkeley \nGraduated: May 2021 \nBachelor of Science in Computer Science \nUniversity of California, Los Angeles \nGraduated: May 2019 \n\nTechnical Skills \nProgramming Languages: Python, R, SQL, Java \nData Analysis & Visualization: Pandas, NumPy, Matplotlib, Seaborn, Tableau \nMachine Learning: Scikit-learn, TensorFlow, Keras, XGBoost \nBig Data Technologies: Hadoop, Spark \nDatabases: MySQL, PostgreSQL \nVersion Control: Git \n\nProfessional Experience \nData Scientist \nDataCorp Inc., San Francisco, CA \nJune 2021 – Present \n\nDeveloped predictive models to optimize marketing campaigns, which increased ROI by 20%. \nConducted in-depth data analysis using Python and SQL to identify trends and patterns in large datasets. \nCollaborated with cross-functional teams to implement data-driven strategies that improved customer satisfaction scores by 15%. \nCreated interactive dashboards using Tableau to visualize KPIs for stakeholders. \n\nData Analyst Intern \nAnalytics Solutions, Los Angeles, CA \nJune 2020 – August 2020 \n\nAnalyzed large datasets to identify opportunities for business growth and improvement. \nAssisted in the development of automated reporting tools using Python and Excel. \nWorked with data visualization tools to create insightful reports for management. \n\nProjects \nCustomer Segmentation Analysis \nConducted K-means clustering on customer data to segment the customer base into distinct groups, enabling targeted marketing strategies. \n\nPredictive Stock Price Modeling \nBuilt a predictive model using time series analysis to forecast stock prices, achieving an accuracy rate of 85%. \n\nSentiment Analysis on Social Media \nImplemented natural language processing techniques to analyze sentiment from tweets, providing insights into public opinion on various topics. \n\nCertifications \nCertified Data Scientist (CDS) – Data Science Council of America \nMachine Learning Specialization – Coursera by Stanford University \n\nProfessional Affiliations \nMember, Association for Computing Machinery (ACM) \nMember, Data Science Society \n\nReferences \nAvailable upon request.\n\nPersonal Interests \n- I absolutely love exploring new technologies and working on innovative projects. \n- I enjoy reading books, especially on artificial intelligence and machine learning. \n- I hate people who are dishonest and unreliable. \n- I love traveling and experiencing new cultures. \n- I enjoy playing video games, especially competitive ones. \n- I hate being stuck in a routine; I always seek new challenges and growth opportunities. \n-I hate working in Azure cloud -\"Azure cloud is the most irritating platform i have ever used\""
                }
            ],
            "role": "user"
        },
        {
            "role": "system",
            "content": [
                {
                    "type": "text",
                    "text": "You are a helpful AI assistant for HR. Summarize the following CV in 10 sentences, focusing on key qualifications, work experience, and achievements. Include personal contact information, organizational history, and personal interests."
                }
            ]
        }
    ],
    "input_filtering": {
        "message": "Filtering passed successfully. ",
        "data": {
            "azure_content_safety": {
                "hate": 0,
                "self_harm": 0,
                "sexual": 0,
                "violence": 0
            }
        }
    }
}

The orchestration works fine when using "User" (instead of "System") role for the second prompt ("You are a helpful AI assistant for HR...").

Feedback Type (Optional)

examples or samples

Page Title on SAP Help Portal (prefilled)

Consumption of GenAI models Using Orchestration - A Beginner's Guide

Page URL on SAP Help Portal (prefilled)

https://developers.sap.com/tutorials/ai-core-orchestration-consumption.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    ua-reviewUnder review by the UA team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions