Spaces:
Build error
Build error
Commit ·
6d08e00
1
Parent(s): a8057c1
fix: update Gemini model to gemini-2.5-flash in pipeline
Browse files- Synced pipeline model name with frontend config
- Groq stays on llama-3.3-70b-versatile (confirmed stable)
- src/rag/pipeline.py +1 -1
- test.txt +24 -487
src/rag/pipeline.py
CHANGED
|
@@ -224,7 +224,7 @@ class RAGPipeline:
|
|
| 224 |
if provider == "gemini":
|
| 225 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 226 |
llm = ChatGoogleGenerativeAI(
|
| 227 |
-
model="gemini-2.
|
| 228 |
temperature=self.temperature,
|
| 229 |
google_api_key=api_key,
|
| 230 |
convert_system_message_to_human=True,
|
|
|
|
| 224 |
if provider == "gemini":
|
| 225 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 226 |
llm = ChatGoogleGenerativeAI(
|
| 227 |
+
model="gemini-2.5-flash",
|
| 228 |
temperature=self.temperature,
|
| 229 |
google_api_key=api_key,
|
| 230 |
convert_system_message_to_human=True,
|
test.txt
CHANGED
|
@@ -1,487 +1,24 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
tests/integration/test_api.py::TestHealthEndpoints::test_liveness_check ERROR [ 5%]
|
| 26 |
-
tests/integration/test_api.py::TestQueryEndpoints::test_query_endpoint ERROR [ 6%]
|
| 27 |
-
tests/integration/test_api.py::TestQueryEndpoints::test_query_validation_error ERROR [ 8%]
|
| 28 |
-
tests/integration/test_api.py::TestQueryEndpoints::test_query_empty_question ERROR [ 9%]
|
| 29 |
-
tests/integration/test_api.py::TestIngestEndpoints::test_ingest_text ERROR [ 10%]
|
| 30 |
-
tests/integration/test_api.py::TestIngestEndpoints::test_ingest_files_no_files ERROR [ 12%]
|
| 31 |
-
tests/integration/test_api.py::TestErrorHandling::test_404_endpoint ERROR [ 13%]
|
| 32 |
-
tests/integration/test_api.py::TestErrorHandling::test_method_not_allowed ERROR [ 14%]
|
| 33 |
-
tests/integration/test_api.py::TestErrorHandling::test_internal_error_handling ERROR [ 16%]
|
| 34 |
-
tests/unit/test_async_utils.py::TestBatchResult::test_batch_result_creation PASSED [ 17%]
|
| 35 |
-
tests/unit/test_async_utils.py::TestBatchResult::test_batch_result_with_errors PASSED [ 18%]
|
| 36 |
-
tests/unit/test_async_utils.py::TestBatchResult::test_get_successful PASSED [ 20%]
|
| 37 |
-
tests/unit/test_async_utils.py::TestAsyncBatchProcessor::test_process_empty_items PASSED [ 21%]
|
| 38 |
-
tests/unit/test_async_utils.py::TestAsyncBatchProcessor::test_process_sync_function PASSED [ 22%]
|
| 39 |
-
tests/unit/test_async_utils.py::TestAsyncBatchProcessor::test_process_async_function PASSED [ 24%]
|
| 40 |
-
tests/unit/test_async_utils.py::TestAsyncBatchProcessor::test_process_with_errors PASSED [ 25%]
|
| 41 |
-
tests/unit/test_async_utils.py::TestAsyncBatchProcessor::test_progress_callback PASSED [ 27%]
|
| 42 |
-
tests/unit/test_async_utils.py::TestAsyncBatchProcessor::test_process_sync_wrapper PASSED [ 28%]
|
| 43 |
-
tests/unit/test_async_utils.py::TestRateLimiter::test_rate_limiter_allows_burst PASSED [ 29%]
|
| 44 |
-
tests/unit/test_async_utils.py::TestRateLimiter::test_rate_limiter_context_manager PASSED [ 31%]
|
| 45 |
-
tests/unit/test_async_utils.py::TestAsyncRetry::test_retry_success_first_try PASSED [ 32%]
|
| 46 |
-
tests/unit/test_async_utils.py::TestAsyncRetry::test_retry_success_after_failures PASSED [ 33%]
|
| 47 |
-
tests/unit/test_async_utils.py::TestAsyncRetry::test_retry_exhausted PASSED [ 35%]
|
| 48 |
-
tests/unit/test_async_utils.py::TestGatherWithConcurrency::test_gather_results_in_order PASSED [ 36%]
|
| 49 |
-
tests/unit/test_async_utils.py::TestGatherWithConcurrency::test_gather_respects_concurrency PASSED [ 37%]
|
| 50 |
-
tests/unit/test_caching.py::TestCacheEntry::test_cache_entry_creation PASSED [ 39%]
|
| 51 |
-
tests/unit/test_caching.py::TestCacheEntry::test_cache_entry_not_expired PASSED [ 40%]
|
| 52 |
-
tests/unit/test_caching.py::TestCacheEntry::test_cache_entry_expired PASSED [ 41%]
|
| 53 |
-
tests/unit/test_caching.py::TestCacheEntry::test_cache_entry_serialization PASSED [ 43%]
|
| 54 |
-
tests/unit/test_caching.py::TestInMemoryCache::test_set_and_get PASSED [ 44%]
|
| 55 |
-
tests/unit/test_caching.py::TestInMemoryCache::test_get_missing_key PASSED [ 45%]
|
| 56 |
-
tests/unit/test_caching.py::TestInMemoryCache::test_get_expired_entry PASSED [ 47%]
|
| 57 |
-
tests/unit/test_caching.py::TestInMemoryCache::test_delete PASSED [ 48%]
|
| 58 |
-
tests/unit/test_caching.py::TestInMemoryCache::test_clear PASSED [ 50%]
|
| 59 |
-
tests/unit/test_caching.py::TestInMemoryCache::test_max_size_eviction PASSED [ 51%]
|
| 60 |
-
tests/unit/test_caching.py::TestInMemoryCache::test_hit_count_increment PASSED [ 52%]
|
| 61 |
-
tests/unit/test_caching.py::TestInMemoryCache::test_stats PASSED [ 54%]
|
| 62 |
-
tests/unit/test_caching.py::TestQueryCache::test_get_and_set PASSED [ 55%]
|
| 63 |
-
tests/unit/test_caching.py::TestQueryCache::test_get_missing PASSED [ 56%]
|
| 64 |
-
tests/unit/test_caching.py::TestQueryCache::test_query_normalization PASSED [ 58%]
|
| 65 |
-
tests/unit/test_caching.py::TestQueryCache::test_different_collections PASSED [ 59%]
|
| 66 |
-
tests/unit/test_caching.py::TestQueryCache::test_get_or_compute_cache_hit PASSED [ 60%]
|
| 67 |
-
tests/unit/test_caching.py::TestQueryCache::test_disabled_cache PASSED [ 62%]
|
| 68 |
-
tests/unit/test_caching.py::TestQueryCache::test_custom_ttl PASSED [ 63%]
|
| 69 |
-
tests/unit/test_caching.py::TestQueryCache::test_invalidate PASSED [ 64%]
|
| 70 |
-
tests/unit/test_caching.py::TestQueryCache::test_invalidate_collection PASSED [ 66%]
|
| 71 |
-
tests/unit/test_caching.py::TestQueryCache::test_stats PASSED [ 67%]
|
| 72 |
-
tests/unit/test_caching.py::TestCreateCache::test_create_memory_cache PASSED [ 68%]
|
| 73 |
-
tests/unit/test_caching.py::TestCreateCache::test_create_cache_defaults PASSED [ 70%]
|
| 74 |
-
tests/unit/test_caching.py::TestCreateCache::test_create_cache_invalid_backend PASSED [ 71%]
|
| 75 |
-
tests/unit/test_embeddings.py::TestEmbeddings::test_embeddings_initialization PASSED [ 72%]
|
| 76 |
-
tests/unit/test_embeddings.py::TestEmbeddings::test_embed_single_text PASSED [ 74%]
|
| 77 |
-
tests/unit/test_embeddings.py::TestEmbeddings::test_embed_multiple_texts PASSED [ 75%]
|
| 78 |
-
tests/unit/test_embeddings.py::TestEmbeddings::test_similar_texts_have_similar_embeddings PASSED [ 77%]
|
| 79 |
-
tests/unit/test_embeddings.py::TestEmbeddings::test_empty_text_embedding PASSED [ 78%]
|
| 80 |
-
tests/unit/test_loaders.py::TestDocumentLoaders::test_multiformat_loader_loads_txt_file PASSED [ 79%]
|
| 81 |
-
tests/unit/test_loaders.py::TestDocumentLoaders::test_multiformat_loader_loads_md_file PASSED [ 81%]
|
| 82 |
-
tests/unit/test_loaders.py::TestDocumentLoaders::test_loader_handles_missing_file PASSED [ 82%]
|
| 83 |
-
tests/unit/test_loaders.py::TestDocumentLoaders::test_loader_get_supported_extensions PASSED [ 83%]
|
| 84 |
-
tests/unit/test_loaders.py::TestDocumentLoaders::test_load_documents_convenience_function PASSED [ 85%]
|
| 85 |
-
tests/unit/test_loaders.py::TestChunking::test_chunker_splits_document PASSED [ 86%]
|
| 86 |
-
tests/unit/test_loaders.py::TestChunking::test_chunker_preserves_metadata PASSED [ 87%]
|
| 87 |
-
tests/unit/test_loaders.py::TestChunking::test_chunker_handles_empty_document PASSED [ 89%]
|
| 88 |
-
tests/unit/test_pipeline.py::TestRAGPipeline::test_pipeline_initialization PASSED [ 90%]
|
| 89 |
-
tests/unit/test_pipeline.py::TestRAGPipeline::test_pipeline_builder_pattern PASSED [ 91%]
|
| 90 |
-
tests/unit/test_pipeline.py::TestRAGPipeline::test_format_docs PASSED [ 93%]
|
| 91 |
-
tests/unit/test_pipeline.py::TestRAGPipeline::test_get_pipeline_info PASSED [ 94%]
|
| 92 |
-
tests/unit/test_pipeline.py::TestRAGPipeline::test_query_with_mocked_components PASSED [ 95%]
|
| 93 |
-
tests/unit/test_pipeline.py::TestRAGPipeline::test_create_rag_pipeline_convenience PASSED [ 97%]
|
| 94 |
-
tests/unit/test_pipeline.py::TestRetriever::test_retrieval_result_structure PASSED [ 98%]
|
| 95 |
-
tests/unit/test_pipeline.py::TestRetriever::test_empty_retrieval_result PASSED [100%]
|
| 96 |
-
|
| 97 |
-
==================================== ERRORS ====================================
|
| 98 |
-
___________ ERROR at setup of TestHealthEndpoints.test_health_check ____________
|
| 99 |
-
|
| 100 |
-
@pytest.fixture
|
| 101 |
-
def client():
|
| 102 |
-
"""Create a test client for the API."""
|
| 103 |
-
> from src.api.main import app
|
| 104 |
-
|
| 105 |
-
tests/integration/test_api.py:15:
|
| 106 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 107 |
-
src/api/main.py:13: in <module>
|
| 108 |
-
from src.api.routes import query, ingest, health
|
| 109 |
-
src/api/routes/__init__.py:2: in <module>
|
| 110 |
-
from src.api.routes import health, query, ingest
|
| 111 |
-
src/api/routes/ingest.py:27: in <module>
|
| 112 |
-
TMP_DIR.mkdir(parents=True, exist_ok=True)
|
| 113 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 114 |
-
|
| 115 |
-
self = PosixPath('/data'), mode = 511, parents = True, exist_ok = True
|
| 116 |
-
|
| 117 |
-
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
| 118 |
-
"""
|
| 119 |
-
Create a new directory at this given path.
|
| 120 |
-
"""
|
| 121 |
-
try:
|
| 122 |
-
> os.mkdir(self, mode)
|
| 123 |
-
E PermissionError: [Errno 13] Permission denied: '/data'
|
| 124 |
-
|
| 125 |
-
/opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/pathlib/_local.py:722: PermissionError
|
| 126 |
-
__________ ERROR at setup of TestHealthEndpoints.test_health_detailed __________
|
| 127 |
-
|
| 128 |
-
@pytest.fixture
|
| 129 |
-
def client():
|
| 130 |
-
"""Create a test client for the API."""
|
| 131 |
-
> from src.api.main import app
|
| 132 |
-
|
| 133 |
-
tests/integration/test_api.py:15:
|
| 134 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 135 |
-
src/api/main.py:13: in <module>
|
| 136 |
-
from src.api.routes import query, ingest, health
|
| 137 |
-
src/api/routes/__init__.py:2: in <module>
|
| 138 |
-
from src.api.routes import health, query, ingest
|
| 139 |
-
src/api/routes/ingest.py:27: in <module>
|
| 140 |
-
TMP_DIR.mkdir(parents=True, exist_ok=True)
|
| 141 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 142 |
-
|
| 143 |
-
self = PosixPath('/data'), mode = 511, parents = True, exist_ok = True
|
| 144 |
-
|
| 145 |
-
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
| 146 |
-
"""
|
| 147 |
-
Create a new directory at this given path.
|
| 148 |
-
"""
|
| 149 |
-
try:
|
| 150 |
-
> os.mkdir(self, mode)
|
| 151 |
-
E PermissionError: [Errno 13] Permission denied: '/data'
|
| 152 |
-
|
| 153 |
-
/opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/pathlib/_local.py:722: PermissionError
|
| 154 |
-
__________ ERROR at setup of TestHealthEndpoints.test_readiness_check __________
|
| 155 |
-
|
| 156 |
-
@pytest.fixture
|
| 157 |
-
def client():
|
| 158 |
-
"""Create a test client for the API."""
|
| 159 |
-
> from src.api.main import app
|
| 160 |
-
|
| 161 |
-
tests/integration/test_api.py:15:
|
| 162 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 163 |
-
src/api/main.py:13: in <module>
|
| 164 |
-
from src.api.routes import query, ingest, health
|
| 165 |
-
src/api/routes/__init__.py:2: in <module>
|
| 166 |
-
from src.api.routes import health, query, ingest
|
| 167 |
-
src/api/routes/ingest.py:27: in <module>
|
| 168 |
-
TMP_DIR.mkdir(parents=True, exist_ok=True)
|
| 169 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 170 |
-
|
| 171 |
-
self = PosixPath('/data'), mode = 511, parents = True, exist_ok = True
|
| 172 |
-
|
| 173 |
-
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
| 174 |
-
"""
|
| 175 |
-
Create a new directory at this given path.
|
| 176 |
-
"""
|
| 177 |
-
try:
|
| 178 |
-
> os.mkdir(self, mode)
|
| 179 |
-
E PermissionError: [Errno 13] Permission denied: '/data'
|
| 180 |
-
|
| 181 |
-
/opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/pathlib/_local.py:722: PermissionError
|
| 182 |
-
__________ ERROR at setup of TestHealthEndpoints.test_liveness_check ___________
|
| 183 |
-
|
| 184 |
-
@pytest.fixture
|
| 185 |
-
def client():
|
| 186 |
-
"""Create a test client for the API."""
|
| 187 |
-
> from src.api.main import app
|
| 188 |
-
|
| 189 |
-
tests/integration/test_api.py:15:
|
| 190 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 191 |
-
src/api/main.py:13: in <module>
|
| 192 |
-
from src.api.routes import query, ingest, health
|
| 193 |
-
src/api/routes/__init__.py:2: in <module>
|
| 194 |
-
from src.api.routes import health, query, ingest
|
| 195 |
-
src/api/routes/ingest.py:27: in <module>
|
| 196 |
-
TMP_DIR.mkdir(parents=True, exist_ok=True)
|
| 197 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 198 |
-
|
| 199 |
-
self = PosixPath('/data'), mode = 511, parents = True, exist_ok = True
|
| 200 |
-
|
| 201 |
-
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
| 202 |
-
"""
|
| 203 |
-
Create a new directory at this given path.
|
| 204 |
-
"""
|
| 205 |
-
try:
|
| 206 |
-
> os.mkdir(self, mode)
|
| 207 |
-
E PermissionError: [Errno 13] Permission denied: '/data'
|
| 208 |
-
|
| 209 |
-
/opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/pathlib/_local.py:722: PermissionError
|
| 210 |
-
___________ ERROR at setup of TestQueryEndpoints.test_query_endpoint ___________
|
| 211 |
-
|
| 212 |
-
@pytest.fixture
|
| 213 |
-
def client():
|
| 214 |
-
"""Create a test client for the API."""
|
| 215 |
-
> from src.api.main import app
|
| 216 |
-
|
| 217 |
-
tests/integration/test_api.py:15:
|
| 218 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 219 |
-
src/api/main.py:13: in <module>
|
| 220 |
-
from src.api.routes import query, ingest, health
|
| 221 |
-
src/api/routes/__init__.py:2: in <module>
|
| 222 |
-
from src.api.routes import health, query, ingest
|
| 223 |
-
src/api/routes/ingest.py:27: in <module>
|
| 224 |
-
TMP_DIR.mkdir(parents=True, exist_ok=True)
|
| 225 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 226 |
-
|
| 227 |
-
self = PosixPath('/data'), mode = 511, parents = True, exist_ok = True
|
| 228 |
-
|
| 229 |
-
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
| 230 |
-
"""
|
| 231 |
-
Create a new directory at this given path.
|
| 232 |
-
"""
|
| 233 |
-
try:
|
| 234 |
-
> os.mkdir(self, mode)
|
| 235 |
-
E PermissionError: [Errno 13] Permission denied: '/data'
|
| 236 |
-
|
| 237 |
-
/opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/pathlib/_local.py:722: PermissionError
|
| 238 |
-
_______ ERROR at setup of TestQueryEndpoints.test_query_validation_error _______
|
| 239 |
-
|
| 240 |
-
@pytest.fixture
|
| 241 |
-
def client():
|
| 242 |
-
"""Create a test client for the API."""
|
| 243 |
-
> from src.api.main import app
|
| 244 |
-
|
| 245 |
-
tests/integration/test_api.py:15:
|
| 246 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 247 |
-
src/api/main.py:13: in <module>
|
| 248 |
-
from src.api.routes import query, ingest, health
|
| 249 |
-
src/api/routes/__init__.py:2: in <module>
|
| 250 |
-
from src.api.routes import health, query, ingest
|
| 251 |
-
src/api/routes/ingest.py:27: in <module>
|
| 252 |
-
TMP_DIR.mkdir(parents=True, exist_ok=True)
|
| 253 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 254 |
-
|
| 255 |
-
self = PosixPath('/data'), mode = 511, parents = True, exist_ok = True
|
| 256 |
-
|
| 257 |
-
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
| 258 |
-
"""
|
| 259 |
-
Create a new directory at this given path.
|
| 260 |
-
"""
|
| 261 |
-
try:
|
| 262 |
-
> os.mkdir(self, mode)
|
| 263 |
-
E PermissionError: [Errno 13] Permission denied: '/data'
|
| 264 |
-
|
| 265 |
-
/opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/pathlib/_local.py:722: PermissionError
|
| 266 |
-
________ ERROR at setup of TestQueryEndpoints.test_query_empty_question ________
|
| 267 |
-
|
| 268 |
-
@pytest.fixture
|
| 269 |
-
def client():
|
| 270 |
-
"""Create a test client for the API."""
|
| 271 |
-
> from src.api.main import app
|
| 272 |
-
|
| 273 |
-
tests/integration/test_api.py:15:
|
| 274 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 275 |
-
src/api/main.py:13: in <module>
|
| 276 |
-
from src.api.routes import query, ingest, health
|
| 277 |
-
src/api/routes/__init__.py:2: in <module>
|
| 278 |
-
from src.api.routes import health, query, ingest
|
| 279 |
-
src/api/routes/ingest.py:27: in <module>
|
| 280 |
-
TMP_DIR.mkdir(parents=True, exist_ok=True)
|
| 281 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 282 |
-
|
| 283 |
-
self = PosixPath('/data'), mode = 511, parents = True, exist_ok = True
|
| 284 |
-
|
| 285 |
-
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
| 286 |
-
"""
|
| 287 |
-
Create a new directory at this given path.
|
| 288 |
-
"""
|
| 289 |
-
try:
|
| 290 |
-
> os.mkdir(self, mode)
|
| 291 |
-
E PermissionError: [Errno 13] Permission denied: '/data'
|
| 292 |
-
|
| 293 |
-
/opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/pathlib/_local.py:722: PermissionError
|
| 294 |
-
____________ ERROR at setup of TestIngestEndpoints.test_ingest_text ____________
|
| 295 |
-
|
| 296 |
-
@pytest.fixture
|
| 297 |
-
def client():
|
| 298 |
-
"""Create a test client for the API."""
|
| 299 |
-
> from src.api.main import app
|
| 300 |
-
|
| 301 |
-
tests/integration/test_api.py:15:
|
| 302 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 303 |
-
src/api/main.py:13: in <module>
|
| 304 |
-
from src.api.routes import query, ingest, health
|
| 305 |
-
src/api/routes/__init__.py:2: in <module>
|
| 306 |
-
from src.api.routes import health, query, ingest
|
| 307 |
-
src/api/routes/ingest.py:27: in <module>
|
| 308 |
-
TMP_DIR.mkdir(parents=True, exist_ok=True)
|
| 309 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 310 |
-
|
| 311 |
-
self = PosixPath('/data'), mode = 511, parents = True, exist_ok = True
|
| 312 |
-
|
| 313 |
-
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
| 314 |
-
"""
|
| 315 |
-
Create a new directory at this given path.
|
| 316 |
-
"""
|
| 317 |
-
try:
|
| 318 |
-
> os.mkdir(self, mode)
|
| 319 |
-
E PermissionError: [Errno 13] Permission denied: '/data'
|
| 320 |
-
|
| 321 |
-
/opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/pathlib/_local.py:722: PermissionError
|
| 322 |
-
_______ ERROR at setup of TestIngestEndpoints.test_ingest_files_no_files _______
|
| 323 |
-
|
| 324 |
-
@pytest.fixture
|
| 325 |
-
def client():
|
| 326 |
-
"""Create a test client for the API."""
|
| 327 |
-
> from src.api.main import app
|
| 328 |
-
|
| 329 |
-
tests/integration/test_api.py:15:
|
| 330 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 331 |
-
src/api/main.py:13: in <module>
|
| 332 |
-
from src.api.routes import query, ingest, health
|
| 333 |
-
src/api/routes/__init__.py:2: in <module>
|
| 334 |
-
from src.api.routes import health, query, ingest
|
| 335 |
-
src/api/routes/ingest.py:27: in <module>
|
| 336 |
-
TMP_DIR.mkdir(parents=True, exist_ok=True)
|
| 337 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 338 |
-
|
| 339 |
-
self = PosixPath('/data'), mode = 511, parents = True, exist_ok = True
|
| 340 |
-
|
| 341 |
-
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
| 342 |
-
"""
|
| 343 |
-
Create a new directory at this given path.
|
| 344 |
-
"""
|
| 345 |
-
try:
|
| 346 |
-
> os.mkdir(self, mode)
|
| 347 |
-
E PermissionError: [Errno 13] Permission denied: '/data'
|
| 348 |
-
|
| 349 |
-
/opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/pathlib/_local.py:722: PermissionError
|
| 350 |
-
____________ ERROR at setup of TestErrorHandling.test_404_endpoint _____________
|
| 351 |
-
|
| 352 |
-
@pytest.fixture
|
| 353 |
-
def client():
|
| 354 |
-
"""Create a test client for the API."""
|
| 355 |
-
> from src.api.main import app
|
| 356 |
-
|
| 357 |
-
tests/integration/test_api.py:15:
|
| 358 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 359 |
-
src/api/main.py:13: in <module>
|
| 360 |
-
from src.api.routes import query, ingest, health
|
| 361 |
-
src/api/routes/__init__.py:2: in <module>
|
| 362 |
-
from src.api.routes import health, query, ingest
|
| 363 |
-
src/api/routes/ingest.py:27: in <module>
|
| 364 |
-
TMP_DIR.mkdir(parents=True, exist_ok=True)
|
| 365 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 366 |
-
|
| 367 |
-
self = PosixPath('/data'), mode = 511, parents = True, exist_ok = True
|
| 368 |
-
|
| 369 |
-
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
| 370 |
-
"""
|
| 371 |
-
Create a new directory at this given path.
|
| 372 |
-
"""
|
| 373 |
-
try:
|
| 374 |
-
> os.mkdir(self, mode)
|
| 375 |
-
E PermissionError: [Errno 13] Permission denied: '/data'
|
| 376 |
-
|
| 377 |
-
/opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/pathlib/_local.py:722: PermissionError
|
| 378 |
-
_________ ERROR at setup of TestErrorHandling.test_method_not_allowed __________
|
| 379 |
-
|
| 380 |
-
@pytest.fixture
|
| 381 |
-
def client():
|
| 382 |
-
"""Create a test client for the API."""
|
| 383 |
-
> from src.api.main import app
|
| 384 |
-
|
| 385 |
-
tests/integration/test_api.py:15:
|
| 386 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 387 |
-
src/api/main.py:13: in <module>
|
| 388 |
-
from src.api.routes import query, ingest, health
|
| 389 |
-
src/api/routes/__init__.py:2: in <module>
|
| 390 |
-
from src.api.routes import health, query, ingest
|
| 391 |
-
src/api/routes/ingest.py:27: in <module>
|
| 392 |
-
TMP_DIR.mkdir(parents=True, exist_ok=True)
|
| 393 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 394 |
-
|
| 395 |
-
self = PosixPath('/data'), mode = 511, parents = True, exist_ok = True
|
| 396 |
-
|
| 397 |
-
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
| 398 |
-
"""
|
| 399 |
-
Create a new directory at this given path.
|
| 400 |
-
"""
|
| 401 |
-
try:
|
| 402 |
-
> os.mkdir(self, mode)
|
| 403 |
-
E PermissionError: [Errno 13] Permission denied: '/data'
|
| 404 |
-
|
| 405 |
-
/opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/pathlib/_local.py:722: PermissionError
|
| 406 |
-
_______ ERROR at setup of TestErrorHandling.test_internal_error_handling _______
|
| 407 |
-
|
| 408 |
-
@pytest.fixture
|
| 409 |
-
def client():
|
| 410 |
-
"""Create a test client for the API."""
|
| 411 |
-
> from src.api.main import app
|
| 412 |
-
|
| 413 |
-
tests/integration/test_api.py:15:
|
| 414 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 415 |
-
src/api/main.py:13: in <module>
|
| 416 |
-
from src.api.routes import query, ingest, health
|
| 417 |
-
src/api/routes/__init__.py:2: in <module>
|
| 418 |
-
from src.api.routes import health, query, ingest
|
| 419 |
-
src/api/routes/ingest.py:27: in <module>
|
| 420 |
-
TMP_DIR.mkdir(parents=True, exist_ok=True)
|
| 421 |
-
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| 422 |
-
|
| 423 |
-
self = PosixPath('/data'), mode = 511, parents = True, exist_ok = True
|
| 424 |
-
|
| 425 |
-
def mkdir(self, mode=0o777, parents=False, exist_ok=False):
|
| 426 |
-
"""
|
| 427 |
-
Create a new directory at this given path.
|
| 428 |
-
"""
|
| 429 |
-
try:
|
| 430 |
-
> os.mkdir(self, mode)
|
| 431 |
-
E PermissionError: [Errno 13] Permission denied: '/data'
|
| 432 |
-
|
| 433 |
-
/opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/pathlib/_local.py:722: PermissionError
|
| 434 |
-
=============================== warnings summary ===============================
|
| 435 |
-
config/settings.py:15
|
| 436 |
-
/home/runner/work/RAG-docs-assistant/RAG-docs-assistant/config/settings.py:15: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.12/migration/
|
| 437 |
-
class Settings(BaseSettings):
|
| 438 |
-
|
| 439 |
-
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
| 440 |
-
================================ tests coverage ================================
|
| 441 |
-
_______________ coverage: platform linux, python 3.13.11-final-0 _______________
|
| 442 |
-
|
| 443 |
-
Name Stmts Miss Cover Missing
|
| 444 |
-
--------------------------------------------------------------
|
| 445 |
-
src/__init__.py 0 0 100%
|
| 446 |
-
src/api/__init__.py 0 0 100%
|
| 447 |
-
src/api/main.py 29 24 17% 14-88
|
| 448 |
-
src/api/middleware/__init__.py 2 2 0% 2-8
|
| 449 |
-
src/api/middleware/errors.py 44 44 0% 7-130
|
| 450 |
-
src/api/models.py 46 0 100%
|
| 451 |
-
src/api/routes/__init__.py 2 1 50% 4
|
| 452 |
-
src/api/routes/health.py 52 38 27% 25, 42-113, 127, 137
|
| 453 |
-
src/api/routes/ingest.py 76 61 20% 30-219
|
| 454 |
-
src/api/routes/query.py 43 30 30% 25-31, 53-86, 100-129
|
| 455 |
-
src/frontend/__init__.py 0 0 100%
|
| 456 |
-
src/frontend/app.py 134 134 0% 8-364
|
| 457 |
-
src/llmops/__init__.py 2 2 0% 2-11
|
| 458 |
-
src/llmops/langfuse_tracer.py 117 117 0% 8-319
|
| 459 |
-
src/rag/__init__.py 11 0 100%
|
| 460 |
-
src/rag/async_utils.py 172 52 70% 120-121, 219-223, 240-303, 347-355, 398-400
|
| 461 |
-
src/rag/caching.py 194 63 68% 51, 56, 61, 66, 71, 129, 179-181, 192-217, 221, 225-243, 247-254, 258-262, 266-272, 276-288, 482, 516
|
| 462 |
-
src/rag/chunking.py 54 15 72% 90-115, 160-165, 183-194, 223-231
|
| 463 |
-
src/rag/embeddings.py 50 11 78% 80-81, 118, 137-138, 150-151, 160-169, 216
|
| 464 |
-
src/rag/llm.py 65 42 35% 83-98, 110-112, 116-118, 141-153, 172-186, 195-207, 234-240, 261-264, 274-280
|
| 465 |
-
src/rag/loaders.py 82 41 50% 83, 88, 113-115, 137-174, 189-199, 227-230
|
| 466 |
-
src/rag/pipeline.py 101 31 69% 89-95, 100-105, 115-117, 122-144, 220-235, 278-279, 298-299
|
| 467 |
-
src/rag/reranking.py 92 68 26% 46-49, 54-65, 84-117, 136-138, 143-147, 166-197, 219-227, 238-255, 272-281
|
| 468 |
-
src/rag/retrieval.py 80 50 38% 64-75, 114-120, 145-193, 215-216, 228-233, 255-257, 261-267, 284-285, 311-315
|
| 469 |
-
src/rag/vectorstore.py 78 56 28% 58-73, 80, 101-120, 139-153, 172-188, 192-201, 210-222, 236, 251, 271
|
| 470 |
-
--------------------------------------------------------------
|
| 471 |
-
TOTAL 1526 882 42%
|
| 472 |
-
Coverage XML written to file coverage.xml
|
| 473 |
-
=========================== short test summary info ============================
|
| 474 |
-
ERROR tests/integration/test_api.py::TestHealthEndpoints::test_health_check - PermissionError: [Errno 13] Permission denied: '/data'
|
| 475 |
-
ERROR tests/integration/test_api.py::TestHealthEndpoints::test_health_detailed - PermissionError: [Errno 13] Permission denied: '/data'
|
| 476 |
-
ERROR tests/integration/test_api.py::TestHealthEndpoints::test_readiness_check - PermissionError: [Errno 13] Permission denied: '/data'
|
| 477 |
-
ERROR tests/integration/test_api.py::TestHealthEndpoints::test_liveness_check - PermissionError: [Errno 13] Permission denied: '/data'
|
| 478 |
-
ERROR tests/integration/test_api.py::TestQueryEndpoints::test_query_endpoint - PermissionError: [Errno 13] Permission denied: '/data'
|
| 479 |
-
ERROR tests/integration/test_api.py::TestQueryEndpoints::test_query_validation_error - PermissionError: [Errno 13] Permission denied: '/data'
|
| 480 |
-
ERROR tests/integration/test_api.py::TestQueryEndpoints::test_query_empty_question - PermissionError: [Errno 13] Permission denied: '/data'
|
| 481 |
-
ERROR tests/integration/test_api.py::TestIngestEndpoints::test_ingest_text - PermissionError: [Errno 13] Permission denied: '/data'
|
| 482 |
-
ERROR tests/integration/test_api.py::TestIngestEndpoints::test_ingest_files_no_files - PermissionError: [Errno 13] Permission denied: '/data'
|
| 483 |
-
ERROR tests/integration/test_api.py::TestErrorHandling::test_404_endpoint - PermissionError: [Errno 13] Permission denied: '/data'
|
| 484 |
-
ERROR tests/integration/test_api.py::TestErrorHandling::test_method_not_allowed - PermissionError: [Errno 13] Permission denied: '/data'
|
| 485 |
-
ERROR tests/integration/test_api.py::TestErrorHandling::test_internal_error_handling - PermissionError: [Errno 13] Permission denied: '/data'
|
| 486 |
-
================== 62 passed, 1 warning, 12 errors in 21.43s ===================
|
| 487 |
-
Error: Process completed with exit code 1.
|
|
|
|
| 1 |
+
2026-02-20 19:43:11,851 - src.api.middleware.errors - INFO - Request: POST /api/query
|
| 2 |
+
2026-02-20 19:43:11,853 - src.api.routes.query - INFO - Query received: According to the Llama 2 paper, what specific tech...
|
| 3 |
+
2026-02-20 19:43:11,853 - src.rag.pipeline - INFO - Initialized RAGPipeline: collection=9305b822a975_default, model=gemini-2.5-flash, k=5
|
| 4 |
+
2026-02-20 19:43:11,853 - src.rag.pipeline - INFO - Processing query: According to the Llama 2 paper, what specific tech...
|
| 5 |
+
2026-02-20 19:43:11,857 - src.rag.vectorstore - INFO - Initialized VectorStore: collection='9305b822a975_default', persist_dir='/chroma_db'
|
| 6 |
+
2026-02-20 19:43:11,858 - src.rag.retrieval - INFO - Initialized Retriever with k=5, threshold=None, reranker=disabled
|
| 7 |
+
2026-02-20 19:43:11,933 - src.rag.retrieval - INFO - Retrieved 5 documents for query
|
| 8 |
+
2026-02-20 19:43:11,933 - src.rag.pipeline - INFO - Using provider: gemini
|
| 9 |
+
2026-02-20 19:43:12,021 - google_genai.models - INFO - AFC is enabled with max remote calls: 10.
|
| 10 |
+
2026-02-20 19:43:12,102 - httpx - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent "HTTP/1.1 429 Too Many Requests"
|
| 11 |
+
2026-02-20 19:43:12,104 - google_genai._api_client - INFO - Retrying google.genai._api_client.BaseApiClient._request_once in 1.19 seconds as it raised ClientError: 429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit. \n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_input_token_count, limit: 0, model: gemini-2.0-flash\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\nPlease retry in 47.914888024s.', 'status': 'RESOURCE_EXHAUSTED', 'details': [{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Learn more about Gemini API quotas', 'url': 'https://ai.google.dev/gemini-api/docs/rate-limits'}]}, {'@type': 'type.googleapis.com/google.rpc.QuotaFailure', 'violations': [{'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_input_token_count', 'quotaId': 'GenerateContentInputTokensPerModelPerMinute-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerMinutePerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerDayPerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '47s'}]}}.
|
| 12 |
+
2026-02-20 19:43:13,359 - httpx - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent "HTTP/1.1 429 Too Many Requests"
|
| 13 |
+
2026-02-20 19:43:13,361 - google_genai._api_client - INFO - Retrying google.genai._api_client.BaseApiClient._request_once in 2.25 seconds as it raised ClientError: 429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit. \n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_input_token_count, limit: 0, model: gemini-2.0-flash\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\nPlease retry in 46.657361994s.', 'status': 'RESOURCE_EXHAUSTED', 'details': [{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Learn more about Gemini API quotas', 'url': 'https://ai.google.dev/gemini-api/docs/rate-limits'}]}, {'@type': 'type.googleapis.com/google.rpc.QuotaFailure', 'violations': [{'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_input_token_count', 'quotaId': 'GenerateContentInputTokensPerModelPerMinute-FreeTier', 'quotaDimensions': {'model': 'gemini-2.0-flash', 'location': 'global'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerMinutePerProjectPerModel-FreeTier', 'quotaDimensions': {'model': 'gemini-2.0-flash', 'location': 'global'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerDayPerProjectPerModel-FreeTier', 'quotaDimensions': {'model': 'gemini-2.0-flash', 'location': 'global'}}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '46s'}]}}.
|
| 14 |
+
2026-02-20 19:43:15,668 - httpx - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent "HTTP/1.1 429 Too Many Requests"
|
| 15 |
+
2026-02-20 19:43:15,669 - google_genai._api_client - INFO - Retrying google.genai._api_client.BaseApiClient._request_once in 4.26 seconds as it raised ClientError: 429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit. \n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_input_token_count, limit: 0, model: gemini-2.0-flash\nPlease retry in 44.34733506s.', 'status': 'RESOURCE_EXHAUSTED', 'details': [{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Learn more about Gemini API quotas', 'url': 'https://ai.google.dev/gemini-api/docs/rate-limits'}]}, {'@type': 'type.googleapis.com/google.rpc.QuotaFailure', 'violations': [{'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerDayPerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerMinutePerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_input_token_count', 'quotaId': 'GenerateContentInputTokensPerModelPerMinute-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '44s'}]}}.
|
| 16 |
+
2026-02-20 19:43:19,992 - httpx - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent "HTTP/1.1 429 Too Many Requests"
|
| 17 |
+
2026-02-20 19:43:19,993 - google_genai._api_client - INFO - Retrying google.genai._api_client.BaseApiClient._request_once in 8.83 seconds as it raised ClientError: 429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit. \n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_input_token_count, limit: 0, model: gemini-2.0-flash\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\nPlease retry in 40.023788178s.', 'status': 'RESOURCE_EXHAUSTED', 'details': [{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Learn more about Gemini API quotas', 'url': 'https://ai.google.dev/gemini-api/docs/rate-limits'}]}, {'@type': 'type.googleapis.com/google.rpc.QuotaFailure', 'violations': [{'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_input_token_count', 'quotaId': 'GenerateContentInputTokensPerModelPerMinute-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerMinutePerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerDayPerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '40s'}]}}.
|
| 18 |
+
2026-02-20 19:43:28,904 - httpx - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent "HTTP/1.1 429 Too Many Requests"
|
| 19 |
+
2026-02-20 19:43:28,905 - google_genai._api_client - INFO - Retrying google.genai._api_client.BaseApiClient._request_once in 16.9 seconds as it raised ClientError: 429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit. \n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_input_token_count, limit: 0, model: gemini-2.0-flash\nPlease retry in 31.110696615s.', 'status': 'RESOURCE_EXHAUSTED', 'details': [{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Learn more about Gemini API quotas', 'url': 'https://ai.google.dev/gemini-api/docs/rate-limits'}]}, {'@type': 'type.googleapis.com/google.rpc.QuotaFailure', 'violations': [{'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerDayPerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerMinutePerProjectPerModel-FreeTier', 'quotaDimensions': {'model': 'gemini-2.0-flash', 'location': 'global'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_input_token_count', 'quotaId': 'GenerateContentInputTokensPerModelPerMinute-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '31s'}]}}.
|
| 20 |
+
2026-02-20 19:43:45,844 - httpx - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent "HTTP/1.1 429 Too Many Requests"
|
| 21 |
+
2026-02-20 19:43:45,845 - src.api.routes.query - ERROR - Query failed: Error calling model 'gemini-2.0-flash' (RESOURCE_EXHAUSTED): 429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit. \n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_input_token_count, limit: 0, model: gemini-2.0-flash\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0, model: gemini-2.0-flash\nPlease retry in 14.170980622s.', 'status': 'RESOURCE_EXHAUSTED', 'details': [{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Learn more about Gemini API quotas', 'url': 'https://ai.google.dev/gemini-api/docs/rate-limits'}]}, {'@type': 'type.googleapis.com/google.rpc.QuotaFailure', 'violations': [{'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_input_token_count', 'quotaId': 'GenerateContentInputTokensPerModelPerMinute-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerMinutePerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}, {'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerDayPerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-2.0-flash'}}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '14s'}]}}
|
| 22 |
+
2026-02-20 19:43:45,846 - src.api.middleware.errors - INFO - Response: POST /api/query status=500 duration=33.994s
|
| 23 |
+
INFO: 127.0.0.1:46044 - "POST /api/query HTTP/1.1" 500 Internal Server Error
|
| 24 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|