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

[BUG] [VSCode Extension] JSONDecodeError: Expecting value: line 1 column 1 (char 0) #3874

Closed
valentincve opened this issue Nov 27, 2024 · 2 comments
Labels
bug Something isn't working no-recent-activity There has been no recent activity on this issue/pull request

Comments

@valentincve
Copy link

I am having an issue with Visual Studio Code: I cannot execute my script. None of my queries work, and they fail, saying that a value is incorrect.
It seems like no request is being executed or able to connect to the server.

The module causing the issue is: "Index lookup".

I use Python 3.10.15 (/isr/local/bin/python)
"promptflow": "1.16.1",
"promptflow-azure": "1.16.1",
"promptflow-core": "1.16.1",
"promptflow-devkit": "1.16.1",
"promptflow-tracing": "1.16.1"

Everything works perfectly (Python scripts, queries, etc.) on the web.
However, it is slow, so I want to switch to Visual Studio Code.
I have therefore used this feature: Image

My flow.dag.yaml file is exactly the same between the Web and Visual Studio Code; there is no issue with code differences.

But when I use this feature, after installing all dependencies and prerequisites, I encounter an error with all my queries:

When working from the web, everything functions properly, and I can see traffic in the usage of the index in question. However, via Visual Studio Code, there’s nothing, no traffic at all, even though the authentication is correct.

Here is the error:JSONDecodeError: Expecting value: line 1 column 1 (char 0)

INPUT:
{"mlindex_content":"embeddings:\n api_base: **********/\n api_type: azure\n api_version: 2023-07-01-preview\n batch_size: '1'\n connection:\n id: /subscriptions/**\n connection_type: workspace_connection\n deployment: text-embedding-ada-002\n dimension: 1536\n kind: open_ai\n model: text-embedding-ada-002\n schema_version: '2'\nindex:\n api_version: 2024-05-01-preview\n connection:\n id: /subscriptions\n connection_type: workspace_connection\n endpoint: *****\n engine: azure-sdk\n field_mapping:\n content: content\n embedding: contentVector\n metadata: meta_json_string\n index: index-proc\n kind: acs\n semantic_configuration_name: azureml-default\n",
"queries":["how to install PDF Creator"],
"query_type":"Hybrid (vector + keyword)",
"top_k":40}

OUTPUT:
""

@valentincve valentincve added the bug Something isn't working label Nov 27, 2024
@vsantele
Copy link

vsantele commented Dec 13, 2024

If you use a tool from promptflow_vectordb. There has been a bug for several weeks inside a tracing method.

See: #3837

You need to add an environment variable BUILD_INFO with a string like '{"build_number" : 0}' in the same session where you launch your flow.

If you want to use the UI to run your code.
Try to add the env in a terminal and launch vscode with the command code (path to your project).

Copy link

Hi, we're sending this friendly reminder because we haven't heard back from you in 30 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 7 days of this comment, the issue will be automatically closed. Thank you!

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue/pull request label Jan 12, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-recent-activity There has been no recent activity on this issue/pull request
Projects
None yet
Development

No branches or pull requests

2 participants