Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected <EOF> in GraphQL request #3

Open
Davo911 opened this issue Jul 19, 2024 · 1 comment
Open

Unexpected <EOF> in GraphQL request #3

Davo911 opened this issue Jul 19, 2024 · 1 comment

Comments

@Davo911
Copy link

Davo911 commented Jul 19, 2024

When going through the Question Answer example.
with the following toml:

[stepzen.cli]
endpoint = "wxflows-genai/Name"

[wxflows.deployment]
# Example flows.
flows="""
    // myPrompt = ragAnswerInput | topNDocs | promptFromTopN | ragInfo
    myRag = ragAnswerInput | topNDocs | promptFromTopN | completion(parameters:myRag.parameters) | ragInfo
    // myRagWithGuardrails = ragAnswerInput | topNDocs | promptFromTopN | completion(parameters:myRagWithGuardrails.parameters) | ragScoreInfo | hallucinationScore | ragScoreMessage | ragInfo
"""
ai_engine = "WATSONX"

[wxflows.deployment.source.aicore]
# RAG configuration
collection="ColName"
tsv_files = ["OwnSample.tsv"]
embedding_model="ibm/slate-30m-english-rtrvr"
data_type = "md"
data_directory = "./OwnSampleMds"
chunk_size = 500
chunk_overlap = 50
documentstore.type="milvusmt"

It's throwing the following Syntax Error:

wxflows collection deploy

Found flow definition in the configuration

Provisioning the watsonx.ai flows engine environment
Published flow myRag to https://***/wxflows-genai/***/graphql in 4.154s
Deploying the wxflows-genai/OwnSample endpoint... done

Creating or updating the KubevirtDocs1 collection
Using https://***/wxflows-genai/***/graphql for uploading into search engine type: milvusmt

Error: An error occurred while uploading data: Syntax Error: Unexpected <EOF>.

GraphQL request:1:1
1 |
  | ^
@royderks
Copy link
Collaborator

Hello @Davo911 is your issue resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants