Repository navigation
feat(chat-assistant-service): add backend service skeleton - #3912
Xiao-zhen-Liu wants to merge 10 commits into
Conversation
|
in your code, |
|
please avoid using
please feel free to use projects and labels to add useful information. |
I restructured the project according to your suggestions. Note additional pytest settings needed to be added in |
|
|
||
| [tool.pytest.ini_options] | ||
| addopts = "-q" | ||
| pythonpath = ["src"] |
There was a problem hiding this comment.
Is pythonpath = ["src"] meant for the pytest-pythonpath plugin?
If so, I don’t see that plugin in the dependencies. Should we add it?
|
We have decided to merge another prototype instead of this one, so I will close this PR. |
Purpose
Refer to #3915 for the design and plan of adding the new chat assistant service.
This PR adds the basic project skeleton for the backend web server of chat assistant service. Within the scope of this PR, the service only provides a health check endpoint. It sets up the proper structure for subsequent PRs, which will add WebSocket communication, LLM agent orchestration, etc.
Changes
Project Configuration:
pyproject.tomlwith configurations for linter and formatter, and pytest. We use this file as a central place for tool configs.requirements.txtwith dependencies needed for this PR (FastAPI, Uvicorn, pytest). Subsequent PRs will gradually add more dependencies.Backend Service:
/api/healthcheckTesting:
CI:
chat_assistant_serviceto build pipeline.Project Structure
Testing Locally
Expected behavior: the new web server works and healtcheck is successful.
Step 1: Configure environment and dependencies
texera-chat-assistant-service) with Python version >= 3.12./chat-assistant-service, runpip install -r requirements.txtStep 2: Run Service
./chat-assistant-service/src, Executepython main.py, and the new web server will run locally on http://localhost:8001Step 3: Test Health Check
curl http://localhost:8001/api/healthcheck. You can also visithttp://localhost:8001/api/healthcheckin browser.