Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/genai-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-asyncio httpx

- name: Run Python tests
run: |
Expand All @@ -61,6 +60,9 @@ jobs:
assert response.status_code == 200
print('Health check test passed')
"

# Run pytest tests
pytest test/ -v --tb=short

build:
name: Build and Push Docker Images
Expand Down
6 changes: 3 additions & 3 deletions genai/rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,11 +701,11 @@ def get_collection_stats(self) -> Dict[str, Any]:

result = {
"collection_name": "recipes",
"total_objects": stats.total,
"total_objects": len(stats),
"status": "healthy"
}

logger.info(f"Retrieved collection statistics in {total_duration}ms: {stats.total} objects")
logger.info(f"Retrieved collection statistics in {total_duration}ms: {len(stats)} objects")
structured_logger.info(
f"Collection statistics retrieval completed",
extra={
Expand All @@ -715,7 +715,7 @@ def get_collection_stats(self) -> Dict[str, Any]:
'operation': 'get_collection_stats',
'collection_name': 'recipes',
'status': 'success',
'total_objects': stats.total,
'total_objects': len(stats),
'stats_duration_ms': stats_duration
}
}
Expand Down
3 changes: 3 additions & 0 deletions genai/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ langchain-huggingface
sentence-transformers
pytest==7.4.3
pytest-asyncio==0.23.2
pytest-cov==4.1.0
pytest-xdist==3.3.1
pytest-mock==3.12.0
httpx==0.27.0
prometheus-fastapi-instrumentator
Loading