Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /romiluz13_Hybrid-Search-RAG /tests /benchmarks /conftest.py
| """ | |
| Benchmark configuration. | |
| Provides fixtures for performance benchmarking. The `rag` fixture is shared with | |
| the integration tests so benchmarks run against a real MongoDB (atlas-local on | |
| localhost:27018). If MongoDB is unavailable, benchmark tests are skipped. | |
| """ | |
| import pytest | |
| # Reuse the shared MongoDB-backed `rag` fixture from the integration conftest so | |
| # benchmarks and integration tests exercise the same blessed stack. Importing it | |
| # here makes the fixture resolvable from tests/benchmarks/ (conftest scope is | |
| # hierarchical upward, not across sibling dirs). | |
| from tests.integration.conftest import rag # noqa: F401 (re-exported fixture) | |
| def benchmark_queries(): | |
| """Sample queries for benchmarking.""" | |
| return [ | |
| "What is MongoDB Atlas?", | |
| "How does vector search work?", | |
| "mongodb hybrid search configuration", | |
| "atlas search full text features", | |
| "knowledge graph mongodb", | |
| ] | |
Xet Storage Details
- Size:
- 974 Bytes
- Xet hash:
- 35dacea97da8487b80d55dc0f92416cfda574ecc7e925e3394fe016567b28991
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.