-
Notifications
You must be signed in to change notification settings - Fork 104
feat(chat-assistant-service): add backend service skeleton #3912
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
base: main
Are you sure you want to change the base?
feat(chat-assistant-service): add backend service skeleton #3912
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 |
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.toml
with configurations for linter and formatter, and pytest. We use this file as a central place for tool configs.requirements.txt
with dependencies needed for this PR (FastAPI, Uvicorn, pytest). Subsequent PRs will gradually add more dependencies.Backend Service:
/api/healthcheck
Testing:
CI:
chat_assistant_service
to 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.txt
Step 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/healthcheck
in browser.