vesoft-inc / nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
https://nebula-graph.io
Apache License 2.0
10.73k stars 1.2k forks source link

Enhancing python-client Library Error Feedback for Smoother Backend Development #5643

Open Baavro opened 1 year ago

Baavro commented 1 year ago

We are facing a significant issue with the python-client library of your graph database products. When using the library to run queries, it does not provide any error feedback, making it challenging to identify and address problems. As a result, we are currently resorting to using the console for queries, but this is not a viable long-term solution since we need to access the database through the python-client for API calls. This issue is hindering the smooth functioning of our backend.

We would greatly appreciate it if the python-client library could be improved to provide clear and informative error messages whenever a query encounters an issue. Having descriptive error feedback would enable us to understand the problems better and quickly resolve them, ensuring a more efficient development process and a reliable backend for our LinkedIn-like platform.

As an alternative, we attempted to use GPT-4 to assist us with writing nGQL codes. However, it lacks an understanding of VIDs and schema, leading to syntax errors and inaccurate queries. While we can use the console temporarily, it does not meet our requirements for API calls, and we believe that using the python-client is crucial for the success of our platform.

wey-gu commented 1 year ago

You are seeking a nebula-console-like experience in nebula-python?

If you are tweaking Python apps talking to NebulaGraph in the ipython/jupyter notebook, try from https://github.com/wey-gu/ipython-ngql could also help.