https://github.com/alertedcoffee/archive-manager
FullStak web application. File system with context search
https://github.com/alertedcoffee/archive-manager
deeppavlov java search-engine spring-boot web
Last synced: about 2 months ago
JSON representation
FullStak web application. File system with context search
- Host: GitHub
- URL: https://github.com/alertedcoffee/archive-manager
- Owner: AlertedCoffee
- Created: 2024-02-22T20:20:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-06T10:27:06.000Z (almost 2 years ago)
- Last Synced: 2025-06-01T10:44:03.093Z (about 1 year ago)
- Topics: deeppavlov, java, search-engine, spring-boot, web
- Language: Java
- Homepage:
- Size: 5.71 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Archive Manager
The application serves as a [cloud storage](https://i.imgur.com/XXlISiE.png) where users can upload documents in pdf, odt, and docx formats.
**The main function of the system** is to provide convenient access to files. To achieve this, the following context search systems are implemented:
+ **Apache Lucene** - full-text search.


+ **DeepPavlov Context Question Answering** - neural context search based on the squad_ru_bert model. This neural system finds the answer to the user's question within the provided context. The answer is a text fragment that answers the question.


**Additional features:**
+ Storage management functions are implemented in the file system. File management panel:

+ Secure deletion to the recycle bin.

+ Authorization system using SpringSecurity (Don't forget to configure access through SecurityConfig.java. In the repository, it is commented out)

Admin user initialization:
```
curl -X POST http://localhost:8080/api/add_user -H 'Content-Type: application/json' -d '
{
"name" : "admin",
"password" : "admin",
"roles" : "ROLE_ADMIN"
}'
```
____________________
**Build:**
+ Postgres
```
docker run -d \
--name postgres_container \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=admin \
-e POSTGRES_DB=archive-users \
-p 5432:5432 \
-v :/var/lib/postgresql/data \
--restart always \
postgres:16
```
+ [DeepPavlov](https://docs.deeppavlov.ai/en/master/features/models/SQuAD.html#2.-Get-started-with-the-model)
Example of launching [Rest API](https://docs.deeppavlov.ai/en/master/integrations/rest_api.html#rest-api-usage-example)
server_config.json for this
```
{
"common_defaults": {
"host": "127.0.0.1",
"port": 5088,
"model_args_names": [],
"https": false,
"https_cert_path": "",
"https_key_path": "",
"socket_type": "TCP",
"unix_socket_file": "/tmp/deeppavlov_socket.s",
"socket_launch_message": "launching socket server at"
}
}
```
**Futures:**
+ Docker container