-
- Downloads

feat: Add CI configuration, testing setup, and initial test cases (#130)

*feat: Add CI configuration, testing setup, and initial test cases * feat: Add 'dummy' vector store mode for testing and development * feat: Update CI configuration and remove dummy vector store mode * feat: Improve error handling for invalid mode in store_factory.py * feat: Refactor project structure and implement new vector store services * feat: Add request validation error handling and implement main application logic * fix: Ensure newline at end of file in main.py * feat: Implement main application logic with FastAPI and document handling endpoints * refactor: Clean up and organize imports in main.py; enhance document routes with improved error handling * refactor: Streamline health check logic and improve document deletion handling; add health utility module * feat: Add initial test suite for application components; include tests for configuration, database, document loading, health checks, middleware, and models * test: Add configuration for testing environment and implement dummy vector store for unit tests * test: Add configuration for testing environment and implement dummy vector store for unit tests * refactor: Remove redundant health check test; streamline test suite * feat: Implement asynchronous vector store classes for PostgreSQL and MongoDB; enhance document handling and retrieval
Showing
- .github/workflows/ci.yml 45 additions, 0 deletions.github/workflows/ci.yml
- app/__init__.py 0 additions, 0 deletionsapp/__init__.py
- app/config.py 3 additions, 2 deletionsapp/config.py
- app/constants.py 1 addition, 0 deletionsapp/constants.py
- app/middleware.py 5 additions, 5 deletionsapp/middleware.py
- app/models.py 1 addition, 0 deletionsapp/models.py
- app/routes/__init__.py 0 additions, 0 deletionsapp/routes/__init__.py
- app/routes/document_routes.py 585 additions, 0 deletionsapp/routes/document_routes.py
- app/routes/pgvector_routes.py 15 additions, 8 deletionsapp/routes/pgvector_routes.py
- app/services/__init__.py 0 additions, 0 deletionsapp/services/__init__.py
- app/services/database.py 3 additions, 5 deletionsapp/services/database.py
- app/services/mongo_client.py 3 additions, 3 deletionsapp/services/mongo_client.py
- app/services/vector_store/__init__.py 0 additions, 0 deletionsapp/services/vector_store/__init__.py
- app/services/vector_store/async_pg_vector.py 16 additions, 0 deletionsapp/services/vector_store/async_pg_vector.py
- app/services/vector_store/atlas_mongo_vector.py 67 additions, 0 deletionsapp/services/vector_store/atlas_mongo_vector.py
- app/services/vector_store/extended_pg_vector.py 45 additions, 0 deletionsapp/services/vector_store/extended_pg_vector.py
- app/services/vector_store/factory.py 36 additions, 0 deletionsapp/services/vector_store/factory.py
- app/utils/__init__.py 0 additions, 0 deletionsapp/utils/__init__.py
- app/utils/document_loader.py 94 additions, 0 deletionsapp/utils/document_loader.py
- app/utils/health.py 13 additions, 0 deletionsapp/utils/health.py
Loading
Please register or sign in to comment