- Enhanced `main.go` with new types and handlers for managing collections and upserting documents, including validation and error handling. - Updated `openapi.yaml` to define new endpoints for listing collections and admin access. - Introduced `CollectionsResponse` and `CollectionItem` schemas for API responses. - Added a new migration script to include a `collection` column in the `kb_doc_chunks` table. - Expanded `README.md` with usage examples for the new collection features and environment variable configurations.
17 lines
299 B
Desktop File
17 lines
299 B
Desktop File
[Unit]
|
|
Description=pgvecter API
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/opt/pgvecterAPI
|
|
EnvironmentFile=/opt/pgvecterAPI/.env
|
|
ExecStart=/opt/pgvecterAPI/pgvecter-api
|
|
Restart=always
|
|
RestartSec=3
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|