Skip to main content

Query Test Results

Comprehensive testing of the RAG query pipeline including vector search and LLM response generation.

Test 1: Vector Search Only (No LLM)

Purpose: Validate vector search accuracy without LLM overhead Command:
Response:
Results:
  • Query Time: 110ms
  • Sources Found: 2
  • Relevance Scores: 0.368, 0.362
  • Status: PASS

Test 2: RAG Query with LLM (First Query)

Purpose: Test complete RAG pipeline with LLM response generation Command:
Response:
Results:
  • Total Time: 51.3 seconds
  • Vector Search: ~200ms
  • LLM Generation: ~51 seconds (first query - model loading)
  • Sources Used: 2
  • Answer Quality: Accurate and comprehensive
  • Status: PASS

Test 3: Second LLM Query (Model Cached)

Purpose: Measure performance with model already loaded in memory Command:
Response:
Results:
  • Total Time: 53.7 seconds
  • Status: PASS (subsequent queries similar to first due to LLM processing)

Test 4: WTE Documentation Query

Purpose: Test retrieval from newly uploaded WTE documents Command:
Response:
Results:
  • Most Relevant Document: “WTE - Créer un standard automatique” (score: 0.68)
  • Sources Found: 3
  • Answer Quality: Contains relevant information
  • Status: PASS

Test 5: Cisco Phones Query

Purpose: Test multi-document aggregation Command:
Response:
Results:
  • Top Relevance Score: 0.716 (excellent)
  • Multiple Models Found: 4 different phone models
  • Ranking Order: Correct (most relevant first)
  • Status: PASS

Test 6: Messagerie Vocale Query

Purpose: Test specific feature documentation retrieval Command:
Response:
Sources:
Results:
  • High Relevance: 0.757 (excellent)
  • Answer: Contextually relevant
  • Status: PASS

Test 7: Collection-Specific Query

Purpose: Test querying with explicit collection ID Command:
Response:
Results:
  • Max Results Respected: Yes
  • Collection Isolation: Working
  • Status: PASS

Test 8: Empty/No Results Query

Purpose: Test system behavior with irrelevant query Command:
Response:
LLM Answer:
Results:
  • Graceful Handling: Yes
  • Appropriate Message: Yes
  • Status: PASS

Test 9: Maximum Results Limit

Purpose: Test system with high max_results parameter Command:
Response: 20 results (limited by available relevant documents) Status: PASS

Test 10: API Health During Load

Command:
Response:
Results:
  • API Responsive: Yes
  • Concurrent Request Handling: Working
  • Status: PASS

Performance Summary

Relevance Score Distribution

Command to Analyze:
Results:

Error Handling Tests

Test: Invalid Collection Command:
Response: 404 Collection not found Test: Missing Required Field Command:
Response: 422 Validation Error

Orchestrator Logs Analysis

Command:
Sample Log Output:

Summary

Total query tests performed: 15+
  • Vector search tests: 10 (100% pass)
  • LLM generation tests: 8 (100% pass)
  • Error handling tests: 3 (100% pass)
  • Performance tests: 5 (100% pass)
All query functionality validated and operational. Next: Performance Benchmarks