Skip to content

Commit

Permalink
Merge pull request #32 from AnnaWheel/main
Browse files Browse the repository at this point in the history
Add elasticsearch
  • Loading branch information
cococo2000 authored Sep 4, 2024
2 parents 0d47697 + 025a7be commit dead400
Show file tree
Hide file tree
Showing 5 changed files with 453 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/bvb-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- qdrant
- weaviate
- redis
- elasticsearch
# - vearch # Vearch test is disabled temporarily due to disk space constraints.
# GPU support is not available in the free tier
# - milvus_gpu
Expand Down
13 changes: 13 additions & 0 deletions bigvectorbench/algorithms/elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

FROM bigvectorbench-base
ARG ELASTICSEARCH_VERSION=8.13.2

RUN python3 -m pip install elasticsearch==${ELASTICSEARCH_VERSION}
RUN python3 -c "from elasticsearch import Elasticsearch"

RUN mkdir -p /etc/docker \
&& echo '{"ip-masq": true, "iptables": true}' > /etc/docker/daemon.json

# Install milvus standalone by docker-compose.yml
COPY bigvectorbench/algorithms/elasticsearch/docker-compose.yml ./
# COPY bigvectorbench/algorithms/elasticsearch/.env ./
15 changes: 15 additions & 0 deletions bigvectorbench/algorithms/elasticsearch/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
float:
euclidean:
- base_args: ["@metric", "@dimension"]
constructor: ElasticsearchHNSW
disabled: False
docker_tag: bigvectorbench-elasticsearch
module: bigvectorbench.algorithms.elasticsearch
name: elasticsearch-hnsw
run_groups:
HNSW:
args:
M: [4, 8, 12, 16, 24, 36, 48, 64, 96]
efConstruction: [200, 500]
ef_runtime: [100, 120, 150, 200, 500, 600, 800]
query_args: [[100, 120, 150, 200, 500, 600, 800]]
10 changes: 10 additions & 0 deletions bigvectorbench/algorithms/elasticsearch/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'
services:
elasticsearch:
image: elasticsearch:8.13.4
ports:
- 9200:9200
- 9300:9300
environment:
- discovery.type=single-node
- xpack.security.enabled=false
Loading

0 comments on commit dead400

Please sign in to comment.