mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
improve embedding index docs and setup
This commit is contained in:
parent
f6cd3c0e38
commit
fc4a9843a3
3 changed files with 29 additions and 1 deletions
3
Dockerfile.qdrant
Normal file
3
Dockerfile.qdrant
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
FROM qdrant/qdrant:latest
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
@ -80,6 +80,18 @@ By default, Rowboat uses OpenAI's `text-embedding-3-small` model for generating
|
||||||
```bash
|
```bash
|
||||||
# Override the default embedding model
|
# Override the default embedding model
|
||||||
export EMBEDDING_MODEL=your-preferred-model
|
export EMBEDDING_MODEL=your-preferred-model
|
||||||
|
export EMBEDDING_VECTOR_SIZE=1536
|
||||||
|
```
|
||||||
|
|
||||||
|
**Important NOTE**
|
||||||
|
|
||||||
|
The default size for the vectors index is 1536. If you change this value, then you must delete the index and set it up again:
|
||||||
|
```bash
|
||||||
|
docker-compose --profile delete_qdrant --profile qdrant up --build delete_qdrant qdrant
|
||||||
|
```
|
||||||
|
followed by:
|
||||||
|
```bash
|
||||||
|
./start # this will recreate the index
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also change the model provider like so:
|
You can also change the model provider like so:
|
||||||
|
|
|
||||||
|
|
@ -113,6 +113,9 @@ services:
|
||||||
dockerfile: scripts.Dockerfile
|
dockerfile: scripts.Dockerfile
|
||||||
command: ["sh", "-c", "npm run setupQdrant"]
|
command: ["sh", "-c", "npm run setupQdrant"]
|
||||||
profiles: [ "setup_qdrant" ]
|
profiles: [ "setup_qdrant" ]
|
||||||
|
depends_on:
|
||||||
|
qdrant:
|
||||||
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
- QDRANT_URL=http://qdrant:6333
|
- QDRANT_URL=http://qdrant:6333
|
||||||
- QDRANT_API_KEY=${QDRANT_API_KEY}
|
- QDRANT_API_KEY=${QDRANT_API_KEY}
|
||||||
|
|
@ -125,6 +128,9 @@ services:
|
||||||
dockerfile: scripts.Dockerfile
|
dockerfile: scripts.Dockerfile
|
||||||
command: ["sh", "-c", "npm run deleteQdrant"]
|
command: ["sh", "-c", "npm run deleteQdrant"]
|
||||||
profiles: [ "delete_qdrant" ]
|
profiles: [ "delete_qdrant" ]
|
||||||
|
depends_on:
|
||||||
|
qdrant:
|
||||||
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
- QDRANT_URL=http://qdrant:6333
|
- QDRANT_URL=http://qdrant:6333
|
||||||
- QDRANT_API_KEY=${QDRANT_API_KEY}
|
- QDRANT_API_KEY=${QDRANT_API_KEY}
|
||||||
|
|
@ -240,7 +246,9 @@ services:
|
||||||
# restart: unless-stopped
|
# restart: unless-stopped
|
||||||
|
|
||||||
qdrant:
|
qdrant:
|
||||||
image: qdrant/qdrant
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.qdrant
|
||||||
ports:
|
ports:
|
||||||
- "6333:6333"
|
- "6333:6333"
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -249,3 +257,8 @@ services:
|
||||||
profiles: [ "qdrant" ]
|
profiles: [ "qdrant" ]
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/qdrant:/data/qdrant
|
- ./data/qdrant:/data/qdrant
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:6333/healthz"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue