feat: Add OpenAPI configuration for API documentation with security scheme
feat: Create KnowledgeTreeController for file and video uploads with enhanced metadata handling
feat: Define DTOs for agent search requests and responses, including metadata filtering
feat: Implement DeleteDocumentResponse DTO for document deletion responses
feat: Create KnowledgeSystemNode DTO for representing knowledge tree structure
chore: Add startup script for ChromaDB instance with Docker integration
Refactor the getDocument method in KsDocumentController to return a single KSDocument object instead of a list. This improves the efficiency and readability of the code. The method now uses the findById method of ksDocumentRepository to retrieve the document with the specified id.
The code changes include adding a new endpoint `/files` to the `KSFileController` class. This endpoint uses the `GetMapping` annotation to handle GET requests and returns a list of uploaded files (`KSDocument`) from the `ksDocumentRepository`.
This commit message suggests that a new feature has been added to the codebase, specifically an endpoint to list uploaded files.