src/app/__init__.py |
0 |
0 |
0 |
0 |
0 |
100% |
src/app/adapters/__init__.py |
0 |
0 |
0 |
0 |
0 |
100% |
src/app/adapters/conversation_postgres_adapter.py |
36 |
0 |
0 |
0 |
0 |
100% |
src/app/adapters/faiss_adapter.py |
35 |
0 |
0 |
8 |
0 |
100% |
src/app/adapters/langChain_adapter.py |
35 |
0 |
0 |
4 |
0 |
100% |
src/app/adapters/message_postgres_adapter.py |
42 |
0 |
0 |
0 |
0 |
100% |
src/app/adapters/support_message_postgres_adapter.py |
35 |
0 |
0 |
0 |
0 |
100% |
src/app/adapters/template_postgres_adapter.py |
35 |
0 |
0 |
0 |
0 |
100% |
src/app/adapters/user_postgres_adapter.py |
34 |
0 |
0 |
2 |
0 |
100% |
src/app/config/db_config.py |
4 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/__init__.py |
0 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/add_file_controller.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/authentication_controller.py |
13 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/chat_controller.py |
16 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/delete_conversation_controller.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/delete_template_controller.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/get_conversation_controller.py |
13 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/get_conversations_controller.py |
13 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/get_dashboard_metrics_controller.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/get_message_controller.py |
15 |
0 |
0 |
2 |
0 |
100% |
src/app/controllers/get_messages_by_conversation_controller.py |
15 |
0 |
0 |
2 |
0 |
100% |
src/app/controllers/get_support_message_controller.py |
15 |
0 |
0 |
2 |
0 |
100% |
src/app/controllers/get_support_messages_controller.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/get_template_controller.py |
15 |
0 |
0 |
2 |
0 |
100% |
src/app/controllers/get_template_list_controller.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/mark_done_support_message_contoller.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/registration_controller.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/save_conversation_title_controller.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/save_message_controller.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/save_support_message_controller.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/save_template_controller.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/controllers/update_message_rating_controller.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/dependencies/__init__.py |
0 |
0 |
0 |
0 |
0 |
100% |
src/app/dependencies/dependency_inj.py |
214 |
16 |
0 |
6 |
3 |
91% |
src/app/dependencies/encoding.py |
6 |
0 |
0 |
0 |
0 |
100% |
src/app/dependencies/init_vector_store.py |
16 |
0 |
0 |
0 |
0 |
100% |
src/app/dto/__init__.py |
0 |
0 |
0 |
0 |
0 |
100% |
src/app/dto/answer_dto.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/dto/conversation_dto.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/dto/file_dto.py |
8 |
0 |
0 |
0 |
0 |
100% |
src/app/dto/message_dto.py |
21 |
0 |
0 |
0 |
0 |
100% |
src/app/dto/metrics_dto.py |
14 |
0 |
0 |
0 |
0 |
100% |
src/app/dto/question_dto.py |
8 |
0 |
0 |
0 |
0 |
100% |
src/app/dto/support_message_dto.py |
24 |
0 |
0 |
0 |
0 |
100% |
src/app/dto/template_dto.py |
18 |
0 |
0 |
0 |
0 |
100% |
src/app/dto/user_dto.py |
28 |
0 |
0 |
0 |
0 |
100% |
src/app/entities/__init__.py |
0 |
0 |
0 |
0 |
0 |
100% |
src/app/entities/answer_entity.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/entities/conversation_entity.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/entities/document_context_entity.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/entities/file_chunk_entity.py |
8 |
0 |
0 |
0 |
0 |
100% |
src/app/entities/file_entity.py |
8 |
0 |
0 |
0 |
0 |
100% |
src/app/entities/message_entity.py |
21 |
0 |
0 |
0 |
0 |
100% |
src/app/entities/query_entity.py |
8 |
0 |
0 |
0 |
0 |
100% |
src/app/entities/support_message_entity.py |
24 |
0 |
0 |
0 |
0 |
100% |
src/app/entities/template_entity.py |
18 |
0 |
0 |
0 |
0 |
100% |
src/app/entities/user_entity.py |
26 |
0 |
0 |
0 |
0 |
100% |
src/app/main.py |
296 |
146 |
0 |
18 |
1 |
48% |
src/app/models/__init__.py |
0 |
0 |
0 |
0 |
0 |
100% |
src/app/models/answer_model.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/models/context_model.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/models/conversation_model.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/models/file_chunk_model.py |
8 |
0 |
0 |
0 |
0 |
100% |
src/app/models/file_model.py |
8 |
0 |
0 |
0 |
0 |
100% |
src/app/models/message_model.py |
21 |
0 |
0 |
0 |
0 |
100% |
src/app/models/metrics_model.py |
14 |
0 |
0 |
0 |
0 |
100% |
src/app/models/prompt_template_model.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/models/question_model.py |
8 |
0 |
0 |
0 |
0 |
100% |
src/app/models/support_message_model.py |
24 |
0 |
0 |
0 |
0 |
100% |
src/app/models/template_model.py |
18 |
0 |
0 |
0 |
0 |
100% |
src/app/models/user_model.py |
28 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/__init__.py |
0 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/add_chunks_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/authentication_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/delete_conversation_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/delete_template_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/generate_answer_port.py |
8 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/get_all_messages_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/get_conversation_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/get_conversations_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/get_message_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/get_messages_by_conversation_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/get_support_message_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/get_support_messages_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/get_template_list_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/get_template_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/mark_done_support_messages_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/registration_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/save_conversation_title_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/save_message_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/save_support_message_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/save_template_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/similarity_search_port.py |
6 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/split_file_port.py |
6 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/update_message_rating_port.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/ports/validation_port.py |
6 |
0 |
0 |
0 |
0 |
100% |
src/app/repositories/__init__.py |
0 |
0 |
0 |
0 |
0 |
100% |
src/app/repositories/conversation_postgres_repository.py |
40 |
0 |
0 |
2 |
0 |
100% |
src/app/repositories/faiss_repository.py |
32 |
0 |
0 |
8 |
0 |
100% |
src/app/repositories/langChain_repository.py |
48 |
0 |
0 |
6 |
0 |
100% |
src/app/repositories/message_postgres_repository.py |
60 |
0 |
0 |
6 |
0 |
100% |
src/app/repositories/support_message_postgres_repository.py |
44 |
0 |
0 |
2 |
0 |
100% |
src/app/repositories/template_postgres_repository.py |
39 |
0 |
0 |
4 |
0 |
100% |
src/app/repositories/user_postgres_repository.py |
41 |
16 |
0 |
6 |
2 |
57% |
src/app/services/__init__.py |
0 |
0 |
0 |
0 |
0 |
100% |
src/app/services/add_chunks_service.py |
10 |
0 |
0 |
0 |
0 |
100% |
src/app/services/add_file_service.py |
24 |
0 |
0 |
0 |
0 |
100% |
src/app/services/authentication_service.py |
18 |
0 |
0 |
4 |
0 |
100% |
src/app/services/chat_service.py |
16 |
0 |
0 |
0 |
0 |
100% |
src/app/services/delete_conversation_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/delete_template_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/generate_answer_service.py |
14 |
0 |
0 |
0 |
0 |
100% |
src/app/services/get_conversation_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/get_conversations_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/get_dashboard_metrics_services.py |
28 |
0 |
0 |
10 |
1 |
97% |
src/app/services/get_message_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/get_messages_by_conversation_service.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/services/get_support_message_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/get_support_messages_service.py |
13 |
0 |
0 |
0 |
0 |
100% |
src/app/services/get_template_list_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/get_template_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/mark_done_support_message_services.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/registration_service.py |
17 |
0 |
0 |
0 |
0 |
100% |
src/app/services/save_conversation_title_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/save_message_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/save_support_message_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/save_template_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/similarity_search_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/split_file_service.py |
12 |
0 |
0 |
0 |
0 |
100% |
src/app/services/update_message_rating_service.py |
11 |
0 |
0 |
0 |
0 |
100% |
src/app/services/validation_service.py |
10 |
0 |
0 |
4 |
0 |
100% |
src/app/usecases/__init__.py |
0 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/add_file_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/authentication_useCase.py |
4 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/chat_useCase.py |
6 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/delete_conversation_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/delete_template_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/get_conversation_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/get_conversations_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/get_dashboard_metrics_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/get_message_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/get_messages_by_conversation_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/get_support_message_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/get_support_messages_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/get_template_list_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/get_template_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/mark_done_support_messages_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/registration_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/save_conversation_title_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/save_message_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/save_support_message_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/save_template_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/usecases/update_message_rating_useCase.py |
5 |
0 |
0 |
0 |
0 |
100% |
src/app/utils/__init__.py |
0 |
0 |
0 |
0 |
0 |
100% |
src/app/utils/midleware_admin.py |
12 |
1 |
0 |
2 |
1 |
86% |