(Get-Content D:\research_agent\streamlit_app.py) -replace 'API_BASE = .*', 'API_BASE = "http://127.0.0.1:8000"' | Set-Content D:\research_agent\streamlit_app.pycd D:\research_agent
docker compose up -dcd D:\research_agent
.venv\Scripts\activate
python -m uvicorn main:app --reload --reload-exclude "streamlit_app.py"cd D:\research_agent
.venv\Scripts\activate
streamlit run streamlit_app.pyhttp://localhost:8501
(Get-Content D:\research_agent\streamlit_app.py) -replace 'API_BASE = .*', 'API_BASE = "https://24w35xlb2a.execute-api.ap-south-1.amazonaws.com"' | Set-Content D:\research_agent\streamlit_app.pycd D:\research_agent
.venv\Scripts\activate
streamlit run streamlit_app.pyhttp://localhost:8501
(Get-Content D:\research_agent\streamlit_app.py) -replace 'API_BASE = .*', 'API_BASE = "http://127.0.0.1:8000"' | Set-Content D:\research_agent\streamlit_app.py(Get-Content D:\research_agent\streamlit_app.py) -replace 'API_BASE = .*', 'API_BASE = "https://24w35xlb2a.execute-api.ap-south-1.amazonaws.com"' | Set-Content D:\research_agent\streamlit_app.pySelect-String "API_BASE" D:\research_agent\streamlit_app.py# Press Ctrl+C then:
streamlit run streamlit_app.pydocker ps
docker exec research_agent_redis redis-cli pingInvoke-RestMethod -Uri "http://127.0.0.1:8000/health" -Method GETInvoke-RestMethod -Uri "https://24w35xlb2a.execute-api.ap-south-1.amazonaws.com/health" -Method GET$body = '{"query": "Your research question here"}'
Invoke-RestMethod -Uri "http://127.0.0.1:8000/research" -Method POST -ContentType "application/json" -Body $body$body = '{"query": "Your research question here"}'
Invoke-RestMethod -Uri "https://24w35xlb2a.execute-api.ap-south-1.amazonaws.com/research" -Method POST -ContentType "application/json" -Body $body$body = '{"query": "Your query here"}'
Invoke-RestMethod -Uri "http://127.0.0.1:8000/research/cache" -Method DELETE -ContentType "application/json" -Body $bodydocker compose down
``
### Update Lambda with new code
```powershell
cd D:\research_agent
docker buildx build --platform linux/amd64 --provenance=false -t 259732629822.dkr.ecr.ap-south-1.amazonaws.com/research-agent:latest --push .
aws lambda update-function-code --function-name research-agent --image-uri 259732629822.dkr.ecr.ap-south-1.amazonaws.com/research-agent:latest --region ap-south-1| Service | Free Limit | Per Run Usage |
|---|---|---|
| Groq | 1,000 req/day | ~4 requests |
| Tavily | 1,000 searches/month | ~15 searches |
| AWS Lambda | 1M requests/month | 1 request |
| Upstash Redis | 10,000 commands/day | ~5 commands |
| LangSmith | 5,000 traces/month | 1 trace |
Estimated free queries: ~66/month (limited by Tavily)