This is the backend of the Hackathon Fulda 2024. An application for managing and sharing knowledge was created. The mono repository is SV-Hub.
The backend provides with a MariaDB for the persisteant data for the frontend.
Plan was it to have a vectorbased DB as well for advanced search with semantic similarities and a LLM.
A easy local setup with the Databases is included in the docker-compose.yml in local-dev-setup folder. A local installation of Ollama is requiered.
The project is organized as follows:
main.go: The entry point of the application. It sets up the routes for the REST-APIapi/: Contains the API related programm.middleware: Contains authentication (JWT), fail security and logginghandler/: Contains the logic for handling different API endpoints.response/: Contains the response structure and methods.
database/: Contains the SQL-Database connection and generic query methods.llama: Http client for Llama3 REST-API.weaviateVector creation and storing.