Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup and Run the Project

1. Clone the Repository

git clone <your-repo-url>
cd acm2k26backend

2. Create a Virtual Environment

python -m venv .venv

3. Activate the Virtual Environment

Windows:

.venv\Scripts\activate

Linux / Mac:

source .venv/bin/activate

4. Install Dependencies

pip install -r requirements.txt

5. Configure Environment Variables

Create a .env file in the project root if your LLM provider or agent requires API keys or configuration.

Example:

API_KEY=your_api_key_here

6. Run the FastAPI Server

From the project root directory:

uvicorn main:app --reload --host 0.0.0.0 --port 8000

The server will start at:

http://127.0.0.1:8000

API Endpoints

1. Health Check

GET /

Returns basic status of the service.

2. Recommend Resources

POST /api/v1/recommend-resources

This endpoint accepts user responses and a list of available resources, then returns the most relevant recommended resources.

Example Request Body

{
  "responses": [
    {
      "question": "How often do you feel anxious?",
      "answer": "Daily, especially at work."
    },
    {
      "question": "Do you have trouble sleeping?",
      "answer": "Sometimes I wake up and can't fall back asleep."
    }
  ],
  "resources": [
    {
      "title": "Breathing Exercise",
      "type": "exercise",
      "description": "Short guided breathing practice for acute anxiety.",
      "tags": ["anxiety", "stress"]
    },
    {
      "title": "Sleep Hygiene Guide",
      "type": "guide",
      "description": "Practical tips to improve sleep habits.",
      "tags": ["sleep"]
    }
  ]
}

Example Response

{
  "success": true,
  "total_responses": 2,
  "total_available_resources": 2,
  "recommended_resources": []
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages