Hi team i’m trying to use Tiger graph copilot on self-hosted TG
Tigergraph version: 3.9
pytigergraph version: 1.6.1
Error importing AI submodule. HTTPSConnectionPool(host=‘127.0.0.1’, port=9000): Max retries exceeded with url: /version (Caused by SSLError(SSLError(1, ‘[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)’)))
9000 port is also working , then what cause the issue ?
Hi @Puneet2 , a couple things - the host name should be http://127.0.0.1
Also, if you have RESTPP authentication turned on, between the conn = TigerGraphConnection() and conn.ai.configureInquiryAIHost, you should run conn.getToken()
.
Hopefully these help!
thanks @Parker_Erickson this works
I disabled the RESTPP and remove https to http
and it works
but the code which contains “conn.ai” are giving internal server error
conn.ai.query(“How many servers are there?”)
conn.ai.query(“What microservices are immediately impacted if microservice MS_61242 goes down?”)
i tried SupportAIDemo notebook too
but in this also same issue
conn.ai.initializeSupportAI()
What are the log messages in the CoPilot container? Also happy to schedule some time to debug as well. Feel free to send an email: parker.erickson@tigergraph.com
hi @Parker_Erickson
we are using “copilot:0.5.0” docker image
in this everything works perfect (Swagger Docs API and example jupyter notebooks)
except the chat interface “which is for testing purpose”
In copilot container below logs we are getting:
File “/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py”, line 877, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py”, line 807, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/code/app/routers/inquiryai.py”, line 437, in login
session_id = session_handler.create_session(conn.state.conn.username, conn)
^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/starlette/datastructures.py”, line 705, in getattr
raise AttributeError(message.format(self.class.name, key))
AttributeError: ‘State’ object has no attribute ‘conn’
Please guide.
How to get rid of this error