Skip to content

yiwen-ai/jarvis

Repository files navigation

Jarvis

Development

Running Scylla in docker

start Scylla:

docker run -d -p 9042:9042 --name scylla scylladb/scylla:5.2 --smp 2

check Scylla status:

docker exec -it scylla nodetool status

start cqlsh and then run cql schemas:

docker exec -it scylla cqlsh

restart Scylla:

docker exec -it scylla supervisorctl restart scylla

Running Qdrant vector search engine in docker

start Qdrant:

docker run -d -p 6333:6333 -p 6334:6334 --name qdrant qdrant/qdrant:latest
curl -X PUT 'http://localhost:6333/collections/jarvis' \
    -H 'Content-Type: application/json' \
    --data-raw '{
        "vectors": {
            "size": 1536,
            "distance": "Cosine",
            "on_disk_payload": true,
            "on_disk": true
        }
    }'
curl -X PUT 'http://localhost:6333/collections/jarvis_pub' \
    -H 'Content-Type: application/json' \
    --data-raw '{
        "vectors": {
            "size": 1536,
            "distance": "Cosine",
            "on_disk_payload": true,
            "on_disk": true
        }
    }'
curl -X PUT 'http://localhost:6333/collections/jarvis/index' \
    -H 'Content-Type: application/json' \
    --data-raw '{
        "field_name": "gid",
        "field_schema": "keyword"
    }'
curl 'http://localhost:6333/collections/jarvis'

Create a config.toml file

cp config/default.toml config.toml

then update it with your own configuration.

Run Jarvis

make run-dev