https://github.com/devflowinc/royal-road-embeddings
https://github.com/devflowinc/royal-road-embeddings
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devflowinc/royal-road-embeddings
- Owner: devflowinc
- License: other
- Created: 2023-08-23T08:57:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-22T20:28:50.000Z (about 2 years ago)
- Last Synced: 2025-06-22T05:17:06.446Z (8 months ago)
- Language: Rust
- Size: 2.51 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# royal-road-embeddings
## Docker-compose file
Run docker-compose file
```
sudo docker compose up
```
## Embedding server
Setup python embeddings server locally
```
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
```
Run embedding server
```
python python_src/embeddings.py
```
## Main server
```
cp .env.dist .env # Set .env file
cargo run
```
## Envirnoment variables
```
API_KEY="key" # The key needed for most routes
EMBEDDING_SERVER_CALL="http://localhost:5000/encode" # The route to call a post to
```